PyPI: torbot
CVE-2023-45813
Safety vulnerability ID: SFTY-20231018-22966
Safety legacy ID: pyup.io-61923
Torbot 4.0.0 includes a fix for CVE-2023-45813: 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. https://github.com/DedSecInside/TorBot/security/advisories/GHSA-72qw-p7hh-m3ff
Overview
TorBot vulnerable to Inefficient Regular Expression Complexity in validate_link
Advisory
Torbot 4.0.0 includes a fix for CVE-2023-45813: 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. https://github.com/DedSecInside/TorBot/security/advisories/GHSA-72qw-p7hh-m3ff
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20231018-22966/CVE-2023-45813
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45813
- https://github.com/DedSecInside/TorBot/commit/ef6e06bc7785355b1701d5524eb4550441086ac4
- https://github.com/DedSecInside/TorBot/security/advisories/GHSA-72qw-p7hh-m3ff
- https://github.com/DedSecInside/TorBot/security/advisories/GHSA-72qw-p7hh-m3ff
- https://nvd.nist.gov/vuln/detail/CVE-2023-45813
- https://github.com/DedSecInside/TorBot/commit/ef6e06bc7785355b1701d5524eb4550441086ac4
- https://gist.github.com/ikkebr/6041055314f1cfb8e65b2a1acbaae12c
- https://github.com/DedSecInside/TorBot/blob/d2b89192379ad033ffc7044efff26e16ccc02d5a/torbot/modules/validators.py#L13
- https://github.com/advisories/GHSA-72qw-p7hh-m3ff
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
