VAITP Dataset

← Back to the dataset

CVE-2012-3533

oVirt 3.1: Python SDK < 3.1.0.6 and CLI < 3.1.0.8 skip SSL certificate verification, allowing MITM attacks

  • CVSS 5.0
  • CWE-310
  • Cryptographic
  • Remote

The python SDK before 3.1.0.6 and CLI before 3.1.0.8 for oVirt 3.1 does not check the server SSL certificate against the client keys, which allows remote attackers to spoof a server via a man-in-the-middle (MITM) attack.

CVSS base score
5.0
Published
2012-08-31
OWASP
A08 Software and Data Integrity Failures
Orthogonal defect classification
Checking
Code defect classification
Incorrect Check
Category
Cryptographic
Subcategory
Improper SSL/TLS Certificate Validation
Accessibility scope
Remote
Impact
Unauthorized Access
Affected component
ovirt-engine-sdk-python
Fixed by upgrading
Yes

Solution

Update python SDK and CLI to versions 3.1.0.6 or higher for oVirt 3.1.

Vulnerable code sample

import urllib.request

# Define the server URL
server_url = 'https://example.com/api'

# Make a request to the server without SSL certificate verification
response = urllib.request.urlopen(server_url)
data = response.read()
print(data)

Patched code sample

import ssl
import urllib.request

# Define the server URL
server_url = 'https://example.com/api'

# Create an SSL context that verifies the server's certificate
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = True
ssl_context.verify_mode = ssl.CERT_REQUIRED

# Load trusted CA certificates
ssl_context.load_default_certs()

# Make a secure request to the server
with urllib.request.urlopen(server_url, context=ssl_context) as response:
    data = response.read()
    print(data)

Cite this entry

@misc{vaitp:cve20123533,
  title        = {{oVirt 3.1: Python SDK < 3.1.0.6 and CLI < 3.1.0.8 skip SSL certificate verification, allowing MITM attacks}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2012},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2012-3533},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2012-3533/}}
}

Download this entry as JSON Download the whole dataset

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 ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.