1. Web Security Academy
  2. DOM-based
  3. Controlling the web-message source
  4. Lab

Lab: DOM XSS using web messages and JSON.parse

PRACTITIONER

This lab uses web messaging and parses the message as JSON. To solve the lab, construct an HTML page on the exploit server that exploits this vulnerability and alerts document.cookie.

Try Burp Suite for Free

Find DOM-based vulnerabilities using Burp Suite

Try for free