Zend_Filter_StripTags vulnerable to Cross-site Scripting when comments allowed
Date: 2024-06
Affected: composer/zendframework/zendframework1, composer/zendframework/zendframework1, composer/zendframework/zendframework1
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CWE: CWE-79
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

Zend_Filter_StripTags contained an optional setting to allow whitelisting HTML comments in filtered text. Microsoft Internet Explorer and several other browsers allow developers to create conditional functionality via HTML comments, including execution of script events and rendering of additional commented markup. By allowing whitelisting of HTML comments, a malicious user could potentially include XSS exploits within HTML comments that would then be rendered in the final output.


Mitigations:

Architectural layers (MAESTRO):