CVE-2023-45813 Inefficient Regular Expression Complexity in TorBot
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
Torbot is an open source tor network intelligence tool. In affected versions the torbot.modules.validators.validate_link function uses the python-validators URL validation regex. This particular regular expression has an exponential complexity which allows an attacker to cause an application crash using a well-crafted argument. An attacker can use a well-crafted URL argument to exploit the vulnerability in the regular expression and cause a Denial of Service on the system. The validators file has been removed in version 4.0.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Upgrade path
4 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi torbot(PyPI) | < 4.0.0; = 1.2; = 2.1.0; = 3.0.1 +2 more | 4.0.0 | Fixed |
| torbot project torbot | < 4.0.0 | 4.0.0 | Fixed |
| DedSecInside TorBot | = < 4.0.0 | No fix listed | Versions listed |
| validators project validators | = 0.11.0; = 0.20.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi torbot(PyPI) | < 4.0.0 | 4.0.0 |
| pypi torbot(PyPI) | = 1.2 | No fix listed |
| pypi torbot(PyPI) | = 2.1.0 | No fix listed |
| pypi torbot(PyPI) | = 3.0.1 | No fix listed |
| pypi torbot(PyPI) | = 3.1.1 | No fix listed |
| pypi torbot(PyPI) | = 3.1.2 | No fix listed |
| DedSecInside TorBot | = < 4.0.0 | No fix listed |
| torbot project torbot | < 4.0.0 | 4.0.0 |
| validators project validators | = 0.11.0 | No fix listed |
| validators project validators | = 0.20.0 | No fix listed |
References
- https://github.com/DedSecInside/TorBot/security/advisories/GHSA-72qw-p7hh-m3ff exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/DedSecInside/TorBot/commit/ef6e06bc7785355b1701d5524eb4550441086ac4 patch
- gist.github.com
- github.com product
- github.com
- github.com vendor-advisory
- pypi.org product