Skip to content

Fix redos#94

Open
davisjam wants to merge 3 commits intotgriesser:masterfrom
davisjam:FixREDOS
Open

Fix redos#94
davisjam wants to merge 3 commits intotgriesser:masterfrom
davisjam:FixREDOS

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