Lab 5

DOM XSS in innerHTML

There is a DOM XSS vulnerability in the search feature.

It uses an innerHTML assignment. The innerHTML sink doesn't accept script elements on any modern browser, nor will svg onload events fire.

We can counter this by using this payload:

Which loads an image from an invalid source and then calls the alert function when an error is triggered

Last updated