Web Hack List

Later archive addition

Prototype Pollution and bypassing client-side HTML sanitizers

Client-side HTML sanitizers read their allow-lists from configuration objects, so a prototype pollution primitive can add tags and attributes back in. DOMPurify, sanitize-html, js-xss and Google Closure are each bypassed this way, turning pollution into XSS, and Closure can additionally be pointed at an attacker-hosted script path.

Record

Researcher
Michał Bentkowski

In the archive

Related sources

Tags

This page is the archive's own catalogue record. The research is the work of Michał Bentkowski, first published at the original source. Preserved copies are kept so the citation survives its host.