CVE-2013-6491
OpenStack Oslo (before 2013.2): python-qpid client, qpid_protocol=ssl, exposes sensitive data via unsecured network sniffing
- CVSS 4.3
- CWE-310
- Cryptographic
- Remote
The python-qpid client (common/rpc/impl_qpid.py) in OpenStack Oslo before 2013.2 does not enforce SSL connections when qpid_protocol is set to ssl, which allows remote attackers to obtain sensitive information by sniffing the network.
- CWE
- CWE-310
- CVSS base score
- 4.3
- Published
- 2014-02-02
- OWASP
- A05 Security Misconfiguration
- Orthogonal defect classification
- Function
- Code defect classification
- Incorrect Functionality
- Category
- Cryptographic
- Subcategory
- Improper SSL/TLS Certificate Validation
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- python-qpid
- Fixed by upgrading
- Yes
Solution
Update OpenStack Oslo to version 2013.2 or higher.
Vulnerable code sample
import qpid.messaging
def create_connection(host, port, qpid_protocol):
# Create a connection without enforcing SSL
connection = qpid.messaging.Connection(host, port, protocol=qpid_protocol)
connection.open()
return connection
# Example usage
if __name__ == "__main__":
host = 'example.com'
port = 5671 # Standard port for SSL connections
qpid_protocol = 'ssl' # Protocol set to ssl, but not enforced
connection = create_connection(host, port, qpid_protocol)
# Use the connection for messagingPatched code sample
import ssl
import qpid.messaging
def create_ssl_connection(host, port):
# Create an SSL context
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
# Enforce SSL connections
connection = qpid.messaging.Connection(host, port, protocol='ssl', ssl_context=context)
connection.open()
return connection
# Example usage
if __name__ == "__main__":
host = 'example.com'
port = 5671 # Standard port for SSL connections
connection = create_ssl_connection(host, port)
# Use the connection for messagingCite this entry
@misc{vaitp:cve20136491,
title = {{OpenStack Oslo (before 2013.2): python-qpid client, qpid_protocol=ssl, exposes sensitive data via unsecured network sniffing}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2014},
note = {VAITP Python Vulnerability Dataset, entry CVE-2013-6491},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2013-6491/}}
}
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 ::
