Can this regex be made to hang?
check_redosDetect catastrophic backtracking (ReDoS) in regex patterns to find vulnerable parts before running on untrusted input. Times execution across JavaScript, Python, PCRE2, and RE2 engines.
Instructions
Checks a regex for catastrophic backtracking (ReDoS): safe or vulnerable, exponential or polynomial, the part of the pattern to blame, an attack string, and how long each real engine (JavaScript, Python, PCRE2, RE2) takes on it. Use before a pattern runs on untrusted input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | ||
| verify | No | time the attack on the engines (default true) | |
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes |