Regular Expression Denial of Service (ReDOS)
In the npm package `color-string`, there is a ReDos (Regular Expression Denial of Service) vulnerability regarding an exponential time complexity for linearly increasing input lengths for `hwb()` color strings. Strings reaching more than 5000 characters would see several milliseconds of processing time; strings reaching more than 50,000 characters began seeing 1500ms (1.5s) of processing time. The cause was due to a the regular expression that parses hwb() strings - specifically, the hue value - where the integer portion of the hue value used a 0-or-more quantifier shortly thereafter followed by a 1-or-more quantifier. This caused excessive backtracking and a cartesian scan, resulting in exponential time complexity given a linear increase in input length.
beschreibt (1)
Zugehörige CVEs.
| ID | Schweregrad | ausnutzbar | ||
|---|---|---|---|---|
| CVE-2021-29060US | medium5.3 | — | ||
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Color-String version 1.5.5 and below which occurs when the application is provided and checks a craft… | ||||
Referenzen
Externe Belege — Patches, Meldungen, Analysen.
- https://github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3WEB
- https://github.com/Qix-/color-string/releases/tag/1.5.5WEB
- https://github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.mdWEB
- https://github.com/yetingli/SaveResults/blob/main/js/color-string.jsWEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-29060ADVISORY
- https://www.npmjs.com/package/color-stringWEB
Advisories wie diese benennen die exponierten Produkte, die Angreifer auf Ihrer Angriffsfläche ins Visier nehmen. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan