VAITP Dataset

← Back to the dataset

CVE-2005-0088

Access to restricted objects in mod_python 2.7.8 and earlier via crafted URL

  • CVSS 7.5
  • CWE-284: Improper Access Control
  • Input Validation and Sanitization
  • Remote

The publisher handler for mod_python 2.7.8 and earlier allows remote attackers to obtain access to restricted objects via a crafted URL.

CVSS base score
7.5
Published
2005-05-02
OWASP
A01 Broken Access Control
Orthogonal defect classification
Interface
Code defect classification
Incorrect Interface
Category
Input Validation and Sanitization
Subcategory
Insecure Direct Object References (IDOR)
Accessibility scope
Remote
Impact
Unauthorized Access
Fixed by upgrading
Yes

Solution

Update to mod_python version 3.5.0 or higher

Vulnerable code sample

from mod_python import apache

def handler(req):
    requested_url = req.uri

    req.write(f"Serving content for {requested_url}")
    return apache.OK

Patched code sample

from mod_python import apache

def handler(req):
    restricted_objects = ['/admin', '/config']

    requested_url = req.uri

    if requested_url in restricted_objects:
        req.write("Access Denied")
        return apache.HTTP_FORBIDDEN

    req.write("Access Granted")
    return apache.OK

Cite this entry

@misc{vaitp:cve20050088,
  title        = {{Access to restricted objects in mod_python 2.7.8 and earlier via crafted URL}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2005},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2005-0088},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2005-0088/}}
}
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 ::