Regexploit is a Python library designed to identify Regular Expression Denial of Service (ReDoS) vulnerabilities in regular expressions. It analyzes a given regex string to determine if it can be exploited by crafted input, potentially leading to excessive backtracking and application slowdowns or crashes. The current version is 1.0.0, and releases appear to be infrequent, focusing on stable major versions.
pip install regexploitVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to instantiate the Regexploit class with a regex pattern and check it for ReDoS vulnerabilities. It prints detailed findings if a vulnerability is detected, using the `to_dict()` method for structured output.
Always pass a `timeout` argument (in seconds) to the `Regexploit` constructor, e.g., `Regexploit(regex, timeout=10)`. This prevents the check from running indefinitely.
Ensure your regex string is syntactically correct and properly escaped (e.g., use raw strings `r"..."`) before passing it to `Regexploit`.
Treat Regexploit's results as strong indicators rather than definitive proofs. For critical applications, manual security review and dynamic testing are still recommended alongside automated tools.
No dependency data recorded yet.