Skip to content

Fix redos#94

Open
davisjam wants to merge 3 commits into
tgriesser:masterfrom
davisjam:FixREDOS
Open

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

Conversation

@davisjam

Copy link
Copy Markdown

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

davisjam commented Feb 23, 2018

Copy link
Copy Markdown
Author

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
Copy Markdown
Collaborator

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

@davisjam

Copy link
Copy Markdown
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