CVE-2011-4954
Cobbler Privilege Escalation via PYTHON_EGG_CACHE
- CVSS 7.8
- CWE-269
- Authentication, Authorization, and Session Management
- Local
cobbler has local privilege escalation via the use of insecure location for PYTHON_EGG_CACHE
- CWE
- CWE-269
- CVSS base score
- 7.8
- Published
- 2019-11-19
- OWASP
- A05 Security Misconfiguration
- Orthogonal defect classification
- Build/Package/Merge
- Code defect classification
- Packaging Issues
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Local
- Impact
- Privilege Escalation
- Fixed by upgrading
- Yes
Solution
Update Cobbler
Vulnerable code sample
import os
egg_cache_dir = '/tmp/python_egg_cache'
if not os.path.exists(egg_cache_dir):
os.makedirs(egg_cache_dir)
os.environ['PYTHON_EGG_CACHE'] = egg_cache_dirPatched code sample
import os
import tempfile
egg_cache_dir = os.path.join(tempfile.gettempdir(), 'python_egg_cache')
if not os.path.exists(egg_cache_dir):
os.makedirs(egg_cache_dir, mode=0o700)
os.environ['PYTHON_EGG_CACHE'] = egg_cache_dirCite this entry
@misc{vaitp:cve20114954,
title = {{Cobbler Privilege Escalation via PYTHON_EGG_CACHE}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2019},
note = {VAITP Python Vulnerability Dataset, entry CVE-2011-4954},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2011-4954/}}
}
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 ::
