REDHAT-BUG-2440368: SSRF
Server-Side Request Forgery (SSRF) vulnerability in the web-download import workflow of OpenStack Glance. The issue arises because validateimporturi() validates only the initial URI using string-based hostname comparison, and urllib.request.urlopen() automatically follows HTTP redirects without revalidating the redirect destination. Additionally, alternative IP encodings (decimal, hexadecimal, octal representations) are not normalized prior to blacklist checks, allowing encoded internal IP addresses (e.g., 0x7f000001 for 127.0.0.1) to bypass validation. An authenticated user can supply a crafted URI that either redirects to an internal resource or directly references an encoded internal IP address, resulting in unauthorized internal network access and potential sensitive data exfiltration.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2440368?
The severity of REDHAT-BUG-2440368 is classified as high with a score of 7.
What is the nature of the vulnerability in REDHAT-BUG-2440368?
REDHAT-BUG-2440368 is a Server-Side Request Forgery (SSRF) vulnerability in the web-download import workflow of OpenStack Glance.
How does the vulnerability in REDHAT-BUG-2440368 occur?
The vulnerability occurs because validate_import_uri() only validates the initial URI and does not properly handle HTTP redirects.
How can I mitigate the issue of REDHAT-BUG-2440368?
To mitigate REDHAT-BUG-2440368, ensure that additional validation is implemented for all URIs being imported, especially after following redirects.
Is REDHAT-BUG-2440368 present in all versions of OpenStack Glance?
The specific details regarding affected versions of OpenStack Glance related to REDHAT-BUG-2440368 should be checked in the official security advisories.