Skip to content
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

Remove legacy escaping #574

Merged
merged 8 commits into from
Mar 27, 2018

Conversation

aidantwoods
Copy link
Collaborator

This uses the newly added conditionally escaped HTML from #569 in combination with text-element adjacency from #511 to remove some special cased exceptions for HTML to circumvent the AST. In doing so we can get rid of the last of the old ways of escaping things.

Before merge I'm going to apply similar tests to those I did in #495 (i.e. a combination of manual testing and seeing if OWASP Zap can find any XSS with safe mode enabled).

cc: @PhrozenByte for review :)


Fixes #573

@aidantwoods
Copy link
Collaborator Author

No (actual) XSS issues found by Zap (one false-positive which is given below).

screen shot 2018-03-25 at 20 24 00

@aidantwoods aidantwoods merged commit ae13290 into erusev:master Mar 27, 2018
@aidantwoods aidantwoods deleted the fix/remove-legacy-escaping branch March 27, 2018 12:18
@aidantwoods aidantwoods added this to the 1.8.0 milestone Mar 28, 2018
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