VAITP Dataset

← Back to the dataset

CVE-2024-30679

Default ROS2 Iron config lets attackers log in with default credentials (disputed).

  • CWE-798 (inferred)
  • Authentication, Authorization, and Session Management
  • Remote

An issue was discovered in the default configurations of ROS2 Iron Irwini ROS_VERSION 2 and ROS_PYTHON_VERSION 3, allows unauthenticated attackers to authenticate 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-09
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 Iron Irwini to the latest patch release (e.g., ROS 2 Iron Irwini 2.2.0 or newer), which removes the default‑credential configuration.

Vulnerable code sample

import rclpy
from rclpy.node import Node
from rclpy.security import SecurityOptions

class SimpleClient(Node):
    def __init__(self):
        super().__init__('simple_client')
        # VULNERABLE: uses default hard‑coded credentials
        self.security = SecurityOptions(
            username='admin',
            password='ros2',
            use_encryption=True
        )
        self.create_timer(1.0, self.publish)

    def publish(self):
        # placeholder for publishing logic
        pass

Patched code sample

import os
import rclpy
from rclpy.node import Node
from rclpy.security import SecurityOptions

class SimpleClient(Node):
    def __init__(self):
        super().__init__('simple_client')
        # FIX: require credentials from environment, no defaults
        username = os.getenv('ROS2_USER')
        password = os.getenv('ROS2_PASS')
        if not username or not password:
            raise RuntimeError('Authentication credentials not set')
        self.security = SecurityOptions(
            username=username,
            password=password,
            use_encryption=True
        )
        self.create_timer(1.0, self.publish)

    def publish(self):
        # placeholder for publishing logic
        pass

Cite this entry

@misc{vaitp:cve202430679,
  title        = {{Default ROS2 Iron config lets attackers log in 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-30679},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30679/}}
}

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.