Also referred to as client-side XSS, DOM XSS is named this way because the payload is received and processed by the DOM of the browser, which means that the injected code never reaches the server and any server-side validation or encoding is ineffective against this kind of attack.
In this recipe, we will analyze how this vulnerability can be detected and exploited in a web application.