VAITP Dataset

← Back to the dataset

CVE-2024-30711

Default ROS2 Dashing config allows unauthenticated access with default credentials (disputed).

  • CWE-798 (inferred)
  • Configuration Issues
  • Remote

An issue was discovered in the default configurations of ROS2 Dashing Diademata 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
Missing Check
Category
Configuration Issues
Subcategory
Open Redirects
Accessibility scope
Remote
Impact
Unauthorized Access
Affected component
ROS2

Solution

Upgrade ROS 2 to version 2.13.0 (or the latest ROS 2 release) where the default‑credential issue is fixed.

Vulnerable code sample

import rclpy
from rclpy.node import Node

class AuthNode(Node):
    def __init__(self):
        super().__init__('auth_node')
        # VULNERABLE: uses default ROS2 credentials
        self.username = 'admin'      # default ROS2 username
        self.password = 'admin'      # default ROS2 password
        self._connect()

    def _connect(self):
        # Simulated connection using credentials
        self.get_logger().info(f'Connecting as {self.username}')
        # placeholder for actual ROS2 security handshake
        # ros2_security_handshake(self.username, self.password)

Patched code sample

import rclpy
from rclpy.node import Node

class AuthNode(Node):
    def __init__(self):
        super().__init__('auth_node')
        # FIX: require explicit non-default credentials
        self.username = self._load_cred('ROS_USERNAME')
        self.password = self._load_cred('ROS_PASSWORD')
        self._connect()

    def _load_cred(self, env_var):
        import os
        value = os.getenv(env_var)
        if not value:
            raise RuntimeError(f'Missing required credential: {env_var}')
        return value

    def _connect(self):
        self.get_logger().info(f'Connecting as {self.username}')
        # placeholder for actual ROS2 security handshake
        # ros2_security_handshake(self.username, self.password)

Cite this entry

@misc{vaitp:cve202430711,
  title        = {{Default ROS2 Dashing config allows unauthenticated access with 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-30711},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30711/}}
}

Download this entry as JSON Download the whole dataset

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 ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.