⚰️DOM-based XSS

Lab: DOM XSS in document.write sink using source location.search

We can see tha t the search input is treated as a img:

We now need to escape from this query, then onload:

"><svg onload=alert(1)>

Lab: DOM XSS in document.write sink using source location.search inside a select element

Last updated