-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent ReDOS vuln on URI Template matching
The regular expression used to match a template against a URL is vulnerable to a regular expression denial-of-service via catastrophic backtracking. This commit includes a test that demonstrates the failure without the fix as well as updates the regexp to remove the vulnerability. The vulnerability is removed by updating the grouping to be atomic.
- Loading branch information
1 parent
f839fb2
commit b48ff03
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters