Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

How do I simulate DOM based XSS?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I have been tasked to do penetration testing on an in-house web application. I have to use OWASP ZAP penetration testing tool. This tool gave a report which says there is DOM based XSS vulnerabilities.

It gave a sample attack:



I would like to simulate this attack in the web browser since it is a GET request. What I did was to do an URL decode of the string after login_error=1, which gave me this:



and I appended it after login_error=1 in the address bar and hit enter. It did not popup an alert as I have hoped for.

Can anyone tell me how I could simulate this XSS?

Thanks in advance.
 
reply
    Bookmark Topic Watch Topic
  • New Topic