Skip to content

Fix #78814: strip_tags allows / in tag name => whitelist bypass #4923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Nov 17, 2019

When normalizing tags to check whether they are contained in the set
of allowable tags, we must not strip slashes, unless they come
immediately after the opening <, or immediately before the closing
>.

When normalizing tags to check whether they are contained in the set
of allowable tags, we must not strip slashes, unless they come
immediately after the opening `<`, or immediately before the closing
`>`.
@cmb69 cmb69 changed the base branch from master to PHP-7.2 November 17, 2019 13:23
@cmb69 cmb69 added the Bug label Nov 17, 2019
@cmb69
Copy link
Member Author

cmb69 commented Dec 2, 2019

Applied as 600f1f8. Thanks.

@cmb69 cmb69 closed this Dec 2, 2019
@cmb69 cmb69 deleted the fix-78814 branch December 2, 2019 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant