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

Regular Expression Denial of Service #139

Open
thomasbird opened this issue Jul 15, 2022 · 0 comments
Open

Regular Expression Denial of Service #139

thomasbird opened this issue Jul 15, 2022 · 0 comments

Comments

@thomasbird
Copy link
Member

We found that your repository scrubadub may contain a security vulnerability in the form of a regular expression that could result in a Denial of Service attack: Regular Expression Denial of Service (ReDoS). (If you’re curious, you can read more about this kind of problem from Cloudflare’s postmortem about a ReDoS-based outage they experienced.)

These are the regexes that we found might be vulnerable in 'scrubadub/detectors/drivers_licence.py', 'scrubadub/detectors/en_GB/tax_reference_number.py':

Regex: '''([a-zA-Z9]{5}\s?)((?:\s*\d\s*){6}[a-zA-Z9]{2}\w{3})\s?(\d{2})''' on Line 20 in drivers_licence.py and
'''\d{2}\s?[a-zA-Z]{1}(?:\s*\d\s*){5}''' on Line 19 in tax_reference_number.py

Commit ID: d254d1f
82a7493

Date: Dec 3, 2020
Sep 27, 2021

Thanks to Zainab and Adnan for reporting this.

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

No branches or pull requests

1 participant