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 redos #94

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix redos #94

wants to merge 3 commits into from

Conversation

davisjam
Copy link

Fix the REDOS security vulnerability I disclosed by email.

The regex used to evaluate URLs is vulnerable to
catastrophic backtracking to the '\w+:?\w*@' construction.

Replace the URL regex with a slightly more complex test:
1. First apply a length limit
2. Then apply the vulnerable regex
@davisjam
Copy link
Author

davisjam commented Feb 23, 2018

Suggest we update Travis to use node v6 or v8, but I can replace 'let/const' with 'var'. Let me know.

@rhys-vdw
Copy link
Collaborator

@davisjam Might as well drop the old Node dep. You can adjust the engines here.

@davisjam
Copy link
Author

Done. If you merge this, seems like a good time to cut a new major version.

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.

2 participants