Description
HTML Purifier through 4.19.1 contains a blacklist bypass vulnerability in HTMLPurifier_URIFilter_HostBlacklist that allows attackers to evade URI.HostBlacklist using mixed-case host names. Attackers can submit HTML with link or resource URIs whose host differs in letter case from blacklist entries, defeating the case-sensitive strpos() check so blacklisted hosts remain in purified output.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| HTML Purifier | HTML Purifier | 0 ≤4.19.1 | — |
References
- https://github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/URIFilter/HostBlacklist.php#L35-L43
- https://github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/AttrDef/URI/Host.php#L84-L89
- https://www.vulncheck.com/advisories/html-purifier-through-4.19.1-uri-hostblacklist-bypass-via-mixed-case-host-names