VAITP Dataset

← Back to the dataset

CVE-2014-8650

Python-requests-Kerberos 0.5 has a vulnerability lacking mutual authentication support

  • CVSS 9.8
  • CWE-287 Improper Authentication
  • Authentication, Authorization, and Session Management
  • Remote

python-requests-Kerberos through 0.5 does not handle mutual authentication

CVSS base score
9.8
Published
2019-12-15
OWASP
A07 Identification and Authentication Failures
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
Fixed by upgrading
Yes

Solution

Update python-requests-Kerberos to version 0.5.1 or higher.

Vulnerable code sample

import requests
from requests_kerberos import HTTPKerberosAuth

kerberos_auth = HTTPKerberosAuth()

response = requests.get('http://example.com', auth=kerberos_auth)

print(response.content)

Patched code sample

import requests
from requests_kerberos import HTTPKerberosAuth, OPTIONAL

kerberos_auth = HTTPKerberosAuth(mutual_authentication=OPTIONAL)

response = requests.get('http://example.com', auth=kerberos_auth)

print(response.content)

Cite this entry

@misc{vaitp:cve20148650,
  title        = {{Python-requests-Kerberos 0.5 has a vulnerability lacking mutual authentication support}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2019},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2014-8650},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2014-8650/}}
}
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 ::