GHSL-2020-290: Regular Expression Denial of Service (ReDoS) in foundation-sites - CVE-2020-26304
The foundation-sites project contains regular expressions vulnerable to ReDoS, which can cause exponential backtracking on crafted input. An attacker could crash the browser of a victim if the attacker controls input that is validated by these regexes.
Originally disclosed on GitHub Security Lab
The project contains one or more regular expressions that are vulnerable to ReDoS (Regular Expression Denial of Service)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the regular expressions contain ambiguous or overlapping clauses that allow exponential backtracking on certain inputs.
Impact
This issue may lead to a denial of service, potentially crashing the browsers of victims if an attacker controls input that is validated by the vulnerable regexes.
What the attacker needed
Attacker controls input validated by regex; victim uses affected foundation-sites
The fix
The regular expressions should be fixed by removing ambiguity or overlap inside them.
How it was found
- Open the Abide documentation page.
- Paste the provided text into the URL form.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A regular expression is a pattern used to match text. Some patterns can become extremely slow when given a specially crafted string, causing the program to freeze. This is called a regular expression denial of service (ReDoS). Here, an attacker could make a victim's browser hang by entering a malicious URL into a form.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.