In-depth lesson · Mutation XSS and sanitiser bypass
Reports behind this point
Use a systematic approach: fuzz the sanitiser with a wide range of HTML elements and attributes, and observe what survives. Tools like DOM Invader can help automate this. Pay special attention to attributes that can execute script, such as event handlers, and to elements that can load external resources.