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

Fix url sanitizing #356

Merged
merged 2 commits into from Mar 5, 2018
Merged

Fix url sanitizing #356

merged 2 commits into from Mar 5, 2018

Conversation

willkg
Copy link
Member

@willkg willkg commented Mar 5, 2018

This fixes an issue in uri sanitizing where character entities in the schema muck up the matching which allows disallowed schemes through.

Fixes a security issue where url sanitizing wouldn't work if there were
character entities breaking up the scheme. This allowed javascript urls
even when they were not explicitly allowed.
@willkg willkg requested a review from g-k March 5, 2018 21:10
Copy link
Collaborator

@g-k g-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@willkg willkg merged commit c5df578 into mozilla:master Mar 5, 2018
@willkg willkg deleted the fix-entities branch March 5, 2018 21:17
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.

None yet

2 participants