BIT-python-min-2023-24329: High severity Python urllib.parse vulnerability
An issue in the urllib.parse component of Python before 3.11.4 allows attackers to bypass blocklisting methods by supplying a URL that starts with blank characters.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Python's urllib.parse to process attacker-controlled URLs and enforce a blocklist may be exposed. The issue affects Python versions before 3.11.4.
What does an attacker need to exploit it?
An attacker needs to provide a URL beginning with blank characters to a vulnerable URL-processing path. No authentication or user interaction is required according to the supplied severity vector.
What is the impact of successful exploitation?
The attacker can bypass URL blocklisting logic, which can undermine controls intended to prevent access to blocked destinations. The supplied vector indicates an integrity impact and no confidentiality or availability impact.
How can I determine whether my application is affected?
Check whether it runs Python earlier than 3.11.4 and relies on urllib.parse output to apply URL blocklists. Test the relevant validation path with URLs prefixed by blank characters.