CVE-2024-29447
Default ROS2 Humble 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 ROS2 Humble Hawksbill in ROS2 Humble Hawksbill in ROS_VERSION 2 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
- Incorrect Interface
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Weak Password Policies
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- ROS2
Solution
Upgrade ROS 2 Humble Hawksbill to version 2.14.0 (or later), which disables the default credentials and requires explicit authentication.
Vulnerable code sample
import rclpy
from rclpy.node import Node
DEFAULT_USERNAME = "admin"
DEFAULT_PASSWORD = "admin123" # VULNERABLE: hardcoded default credentials
class SimpleClient(Node):
def __init__(self):
super().__init__("simple_client")
self._connect()
def _connect(self):
# Simulated connection using default credentials
self._session = self._login(DEFAULT_USERNAME, DEFAULT_PASSWORD)
def _login(self, user, pwd):
# Placeholder for ROS2 authentication routine
return {"user": user, "authenticated": True}Patched code sample
import rclpy
from rclpy.node import Node
import os
class SimpleClient(Node):
def __init__(self):
super().__init__("simple_client")
self._connect()
def _connect(self):
# FIX: require credentials from environment, no hardcoded defaults
user = os.getenv("ROS2_USER")
pwd = os.getenv("ROS2_PASSWORD")
if not user or not pwd:
raise RuntimeError("Missing ROS2 authentication credentials")
self._session = self._login(user, pwd)
def _login(self, user, pwd):
# Placeholder for ROS2 authentication routine
return {"user": user, "authenticated": True}Cite this entry
@misc{vaitp:cve202429447,
title = {{Default ROS2 Humble 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-29447},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-29447/}}
}
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 ::
