\
Powered by Blogger.

Blog Archive

Complete DOM based XSS Live Tutorial for Beginners

By admin → Sunday, January 5, 2014

After a short break m back with gazing hacky stuffs! I hope you've been upto my previous post :Hack Website using Local File Inclusion Vulnerability.: so today m gonna teach you DOM Based XSS with Live Vulnerable website. 

#Complete Tutorial for beginners. but, first of all it is strongly recommended you to read our previous posts of XSS
[Read it now]. So keep your Browsers ready to tuneup your advance XSS Skills. [DOM Based XSS]




What is DOM Based XSS ?
                      DOM (Document Object Module) XSS is common web vulnerability, which occurs due to bad coding in Javascript & that create a DOM XSS Vulnerability which allows Client-Side-Scripts for eg.: (Javascript), an attacker can modify webpage content, can also lead to CSS (Cascading Style Sheets) Injection, etc.

DOM XSS Vulnerability Tutorial.
So, let's start our DOM XSS Vulnerability Coding, Hunting, & Exploiting. First of all you must know Stored & Reflected XSS Vulnerability Exploitation. Actually DOM Based XSS is very advance XSS vulnerabilities, it's bit kinda hard to find DOM XSS Vulnerabilites but if you've experience in hacking web applications & programming then it's like a piece of cake for you. & here we go!!

So, today is something speciality in this post .: I'll show you live tutorial of DOM XSS with Vulnerable website. It would be easy to understand & Learn DOM XSS, So proceed to next step.


  • Click here to go on our Vulnerable Web-Page
  • Always Remember that DOM based XSS is bit different,Advance and may be HARD :D because to find DOM based XSS. Finder must scan each parameter and javascript.
  • So,here when you'll go to Vulnerable Web-page there is nothing much contents on that Page. Then also it is Vulnerable to DOM XSS.
  • Same, as always scan source code. :) Analyze Javascript.
  • Okay! Just open source code and search for Javascript Code

    Click on Image to Enlarge it

  • You must HTML and Javascript to learn DOM XSS perfectly, well - you can see there is one tag of Javascript <script> Now, just understand that complete Javascript code.
  • After analyzing the code, you'll understand that the Javascript gets value from the URL Parameter "name" and writes the value in our Page.


  • Well, now you've found URL Parameter. Just Enter ?name=w0rm After URL and Hit Enter.

  • Value will be execute by Javascript and show on WebPage Like Hello-Viv or w0rm.

    Click on Image to Enlarge it

  • DOM XSS can be found at many web-contents like Choose language, Name, etc thousands of way are there to discover XSS into Web-Pages, Just you need Knowledge, skills, and Techniques.
  • Back to Hack Guys.! - So now use some evil minds Just Enter some Javascript tag into Value Paramter.
  • Note : if you'll enter <script>alert(XSS)</script> from Chrome browser it might won't work, because Chrome have XSS filters that bypass your command and doesn't gives you pop-up.

     Click Image to enlarge it

  • Then also there is always a way you can also use <b>, <u>, <i>, eval() or Javascript tags to execute your command and get pop-up. But I'll recommend you to use Firefox, Opera or IE.
  • So, Just replace name value w0rm with any Script Tag.
  • As m using <script>alert(3)</script> in Firefox.
Click on Images to Enlarge it

This is called DOM based XSS. We Injected and Our Command executed by DOM (Document Object Module). Simply this is very simple tutorial for beginners to understand DOM Based XSS. In our more upcoming post we'll teach : Advance DOM Based XSS techniques and Methods.

Just Stay connected with us on Facebook (Hackerz and crackerz) and feel free to comment and let me know your Problem. And also Please Share it to Increase us.
Ichsan Bahri

I'm Ichsan. A full time web designer. I enjoy to make modern template. I love create blogger template and write about web design, blogger. Now I'm working with Themeforest. You can buy our templates from Themeforest.

No Comment to " Complete DOM based XSS Live Tutorial for Beginners "