CVE-2022-32151
Unvalidated certificates in Splunk pre-9.0 (Enterprise) and pre-8.2.2203 (Cloud) libraries
- CVSS 9.1
- CWE-295 Improper Certificate Validation
- Cryptographic
- Remote
The httplib and urllib Python libraries that Splunk shipped with Splunk Enterprise did not validate certificates using the certificate authority (CA) certificate stores by default in Splunk Enterprise versions before 9.0 and Splunk Cloud Platform versions before 8.2.2203. Python 3 client libraries now verify server certificates by default and use the appropriate CA certificate stores for each library. Apps and add-ons that include their own HTTP libraries are not affected. For Splunk Enterprise, update to Splunk Enterprise version 9.0 and Configure TLS host name validation for Splunk-to-Splunk communications (https://docs.splunk.com/Documentation/Splunk/9.0.0/Security/EnableTLSCertHostnameValidation) to enable the remediation.
- CVSS base score
- 9.1
- Published
- 2022-06-15
- OWASP
- A06 Vulnerable and Outdated Components
- Orthogonal defect classification
- Function
- Code defect classification
- Incorrect Functionality
- Category
- Cryptographic
- Subcategory
- Improper SSL/TLS Certificate Validation
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- urllib
- Fixed by upgrading
- Yes
Solution
Update to Splunk Enterprise version 9.0 and Configure TLS host name validation.
Vulnerable code sample
import urllib.request
# Example of making an insecure HTTP request without certificate validation
response = urllib.request.urlopen('https://example.com')
print(response.read())Patched code sample
import requests
# Example of making a secure HTTPS request with certificate verification
response = requests.get('https://example.com', verify=True)
print(response.content)Cite this entry
@misc{vaitp:cve202232151,
title = {{Unvalidated certificates in Splunk pre-9.0 (Enterprise) and pre-8.2.2203 (Cloud) libraries}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2022},
note = {VAITP Python Vulnerability Dataset, entry CVE-2022-32151},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2022-32151/}}
}
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 ::
