CVE-2014-2967
Autodesk VRED Pro 2014 (pre SR1 SP8) Python API in the integrated web server allows remote code execution via os library calls
- CVSS 10.0
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Input Validation and Sanitization
- Remote
Autodesk VRED Professional 2014 before SR1 SP8 allows remote attackers to execute arbitrary code via Python os library calls in Python API commands to the integrated web server.
- CWE
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CVSS base score
- 10.0
- Published
- 2014-07-07
- OWASP
- A10 Server-Side Request Forgery (SSRF)
- Orthogonal defect classification
- Function
- Code defect classification
- Incorrect Functionality
- Category
- Input Validation and Sanitization
- Subcategory
- Command Injection
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- os
- Fixed by upgrading
- Yes
Solution
Update Autodesk VRED Professional to version 2014 SR1 SP8 or higher.
Vulnerable code sample
import os
def execute_command(command):
# Directly executing the command without validation
os.system(command)
# Example usage
user_input = "rm -rf /" # This could be any command provided by a remote attacker
execute_command(user_input)Patched code sample
import subprocess
def safe_execute(command):
# Whitelist of allowed commands
allowed_commands = ['ls', 'pwd', 'echo']
# Split command into parts
command_parts = command.split()
# Check if the command is in the allowed list
if command_parts[0] in allowed_commands:
# Execute the command safely
result = subprocess.run(command_parts, capture_output=True, text=True)
return result.stdout
else:
raise ValueError("Unauthorized command execution attempt.")
# Example usage
try:
output = safe_execute("ls")
print(output)
except ValueError as e:
print(e)Cite this entry
@misc{vaitp:cve20142967,
title = {{Autodesk VRED Pro 2014 (pre SR1 SP8) Python API in the integrated web server allows remote code execution via os library calls}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2014},
note = {VAITP Python Vulnerability Dataset, entry CVE-2014-2967},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2014-2967/}}
}
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 ::
