OWASP Hunting

Config & design

ReDoS

ReDoS exploits regular expressions that backtrack exponentially or polynomially on crafted input. A single request can pin a CPU core for seconds or minutes and, on single-threaded runtimes such as Node.js, block every other request. Typical causes are nested quantifiers, overlapping alternation and unbounded repetition followed by a failing suffix.

Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.

These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.

Payload files

Folder on GitHub

Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.

redos-payloads.txt

54 payloads · 3.5 KB
Source

Loading payloads for ReDoS…

Common Attack Vectors#

  • Validation patterns for email, URL, username, date and password fields
  • WAF and routing rules, input sanitisers and Markdown/HTML parsers
  • Server-side search, filtering and log-processing patterns
  • User-supplied regular expressions (search, rule and filter features)
  • Client-side validation in the browser (impacts only the user, but can be chained)
  • Regexes inside dependencies (look at CVEs in npm, PyPI and RubyGems libraries)

Testing Approach#

Find the regex or the feature that uses one. Send increasing input lengths (for example 10, 20, 30, 40 repetitions) and measure response time; exponential growth is the signature. Always use a small cap and a unique request marker, and test only against systems you own because this class degrades availability. Use static analysers (safe-regex, rxxr2, recheck) on a regex in source you are allowed to read. Report the pattern, the input family and the measured time curve.

References#

Responsible Use

All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.

  • Systems and applications you own
  • Authorized penetration testing engagements
  • Bug bounty programs with defined scope
  • Educational lab environments (DVWA, WebGoat, HackTheBox)