CVE-2014-7144
MITM vulnerability in OpenStack keystonemiddleware <0.11.0 and <1.2.0 via insecure "paste.ini" option
- CVSS 4.3
- CWE-310
- Authentication, Authorization, and Session Management
- Remote
OpenStack keystonemiddleware (formerly python-keystoneclient) 0.x before 0.11.0 and 1.x before 1.2.0 disables certification verification when the "insecure" option is set in a paste configuration (paste.ini) file regardless of the value, which allows remote attackers to conduct man-in-the-middle attacks via a crafted certificate.
- CWE
- CWE-310
- CVSS base score
- 4.3
- Published
- 2014-10-02
- OWASP
- A05 Security Misconfiguration
- Orthogonal defect classification
- Function
- Code defect classification
- Incorrect Functionality
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Insecure Authentication Mechanisms
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- keystonemiddleware
- Fixed by upgrading
- Yes
Solution
Update OpenStack keystonemiddleware to version 1.2.0 or higher.
Vulnerable code sample
import requests
# Example function that demonstrates the vulnerability by disabling certificate verification
def make_insecure_request(url):
# Disabling SSL certificate verification
response = requests.get(url, verify=False) # verify=False allows for insecure requests
return response.content
# Example usage
url = "https://example.com/api"
response_content = make_insecure_request(url)
print(response_content)Patched code sample
import requests
from requests.exceptions import SSLError
# Example function to make a secure request with certificate verification
def make_secure_request(url):
try:
# Ensure that certificate verification is enabled
response = requests.get(url, verify=True) # verify=True enforces SSL certificate verification
return response.content
except SSLError as e:
print(f"SSL error occurred: {e}")
except Exception as e:
print(f"An error occurred: {e}")
# Example usage
url = "https://example.com/api"
response_content = make_secure_request(url)
print(response_content)Cite this entry
@misc{vaitp:cve20147144,
title = {{MITM vulnerability in OpenStack keystonemiddleware <0.11.0 and <1.2.0 via insecure "paste.ini" option}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2014},
note = {VAITP Python Vulnerability Dataset, entry CVE-2014-7144},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2014-7144/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
