CVE-2024-30728
ROS Kinetic default config allows unauthenticated access via default credentials (disputed).
- CWE-798 (inferred)
- Authentication, Authorization, and Session Management
- Remote
An issue was discovered in the default configurations of ROS (Robot Operating System) Kinetic Kame ROS_VERSION 1 and ROS_ PYTHON_VERSION 3, allows unauthenticated attackers to gain access using default credentials. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-798 (inferred)
- Published
- 2024-04-10
- OWASP
- A07 Identification and Authentication Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Missing Interface
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Weak Password Policies
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- ROS
Solution
Upgrade ROS Kinetic Kame to a newer ROS distribution (e.g., ROS Noetic 1.5.0) where the default‑credential issue is fixed.
Vulnerable code sample
import os
import rospy
from rosgraph.masterapi import Master
def connect_to_ros_master():
# VULNERABLE: uses default hardcoded credentials
username = "admin"
password = "admin"
master_uri = os.getenv("ROS_MASTER_URI", "http://localhost:11311")
master = Master(master_uri)
# Simulate authentication using default credentials
if not master.authenticate(username, password):
raise RuntimeError("Authentication failed")
return masterPatched code sample
import os
import rospy
from rosgraph.masterapi import Master
def connect_to_ros_master():
# FIX: require credentials from environment, no defaults
username = os.getenv("ROS_MASTER_USER")
password = os.getenv("ROS_MASTER_PASS")
if not username or not password:
raise RuntimeError("Missing ROS master credentials")
master_uri = os.getenv("ROS_MASTER_URI", "http://localhost:11311")
master = Master(master_uri)
if not master.authenticate(username, password):
raise RuntimeError("Authentication failed")
return masterCite this entry
@misc{vaitp:cve202430728,
title = {{ROS Kinetic default config allows unauthenticated access via default credentials (disputed).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30728},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30728/}}
}
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 ::
