Skip to content

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

Closed
cmb69 wants to merge 1 commit intophp:PHP-7.2from
cmb69:fix-78814
Closed

Fix #78814: strip_tags allows / in tag name => whitelist bypass#4923
cmb69 wants to merge 1 commit intophp:PHP-7.2from
cmb69:fix-78814

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