Skip to content

block &newline; entity in attribute filter to stop javascript: bypass - #89

Open
arib06 wants to merge 1 commit into
joomla-framework:3.x-devfrom
arib06:newline-entity-attr-filter
Open

block &newline; entity in attribute filter to stop javascript: bypass#89
arib06 wants to merge 1 commit into
joomla-framework:3.x-devfrom
arib06:newline-entity-attr-filter

Conversation

@arib06

@arib06 arib06 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

cleanAttributes strips the raw tab/newline/cr chars and the &tab;/:/&column; entities before checkAttribute tests a value for a javascript: scheme, but it never removes the html5 &newline; entity, so java&newline;script: passes unflagged and a browser decodes &newline; back to a newline that the url parser then drops to leave javascript:; adding &newline; to blockedChars removes it so the collapsed scheme is detected and stripped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant