
What is DOM-based XSS (cross-site scripting)? Tutorial
In this section, we'll describe DOM-based cross-site scripting (DOM XSS), explain how to find DOM XSS vulnerabilities, and talk about how to exploit DOM XSS with different sources and …
DOM-based vulnerabilities | Web Security Academy - PortSwigger
The following list provides a quick overview of common DOM-based vulnerabilities and an example of a sink that can lead to each one. For a more comprehensive list of relevant sinks, …
What is cross-site scripting (XSS) and how to prevent it? | Web ...
DOM-based XSS (also known as DOM XSS) arises when an application contains some client-side JavaScript that processes data from an untrusted source in an unsafe way, usually by writing …
Cross-site scripting (DOM-based) - PortSwigger
Description: Cross-site scripting (DOM-based) DOM-based vulnerabilities arise when a client-side script reads data from a controllable part of the DOM (for example, the URL) and processes …
Lab: Reflected DOM XSS | Web Security Academy - PortSwigger
Back in the lab, go to the target website and use the search bar to search for a random test string, such as "XSS". Return to the Proxy tool in Burp Suite and forward the request. On the …
Cross-site scripting (XSS) cheat sheet - PortSwigger
Interactive cross-site scripting (XSS) cheat sheet for 2025, brought to you by PortSwigger. Actively maintained, and regularly updated with new vectors.
Testing for DOM XSS with DOM Invader - PortSwigger
Dec 16, 2025 · DOM-based XSS (DOM XSS) arises when an application contains client-side JavaScript that processes data from an untrusted source in an unsafe way, usually by writing …
Lab: DOM XSS in document.write sink using source location.search …
This lab contains a DOM-based cross-site scripting vulnerability in the search query tracking functionality. It uses the JavaScript document.write function, which writes data out to the page.
Lab: DOM XSS in innerHTML sink using source location.search
This lab contains a DOM-based cross-site scripting vulnerability in the search blog functionality. It uses an innerHTML assignment, which changes the HTML contents of a div element, using …
Testing for DOM XSS - PortSwigger
Dec 16, 2025 · This information enables you to easily see the XSS context and test which characters and events you need to craft an exploit. In the following example, we've …