Skip to content

RVD#2401: Use of unsafe yaml load, ./src/actionlib/tools/library.py:132 #2401

Closed

Description

@rvd-bot
id: 2401
title: 'RVD#2401: Use of unsafe yaml load, ./src/actionlib/tools/library.py:132'
type: bug
description: Use of unsafe yaml load. Allows instantiation of arbitrary objects. The
  flaw itself is caused by an unsafe parsing of YAML values which happens whenever
  an action message is processed to be sent, and allows for the creation of Python
  objects. Through this flaw in the ROS core package of actionlib, an attacker with
  local or remote access can make the ROS Master, execute arbitrary code in Python
  form. Consider yaml.safe_load() instead. Located first in actionlib/tools/library.py:132.
  See links for more info on the bug.
cwe: CWE-20
cve: CVE-2020-10289
keywords:
- bandit
- bug
- static analysis
- testing
- triage
- vulnerability
- 'version: melodic'
- 'robot component: ROS'
- components software
system: 'ros'
vendor: 'Open Robotics'
severity:
  rvss-score: 10
  rvss-vector: RVSS:1.0/AV:RN/AC:L/PR:L/UI:R/Y:Z/S:U/C:H/I:H/A:H/H:H
  severity-description: 'critical'
  cvss-score: 8.0
  cvss-vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
links:
- https://github.com/aliasrobotics/RVD/issues/2401
- https://bandit.readthedocs.io/en/latest/plugins/b506_yaml_load.html
- https://github.com/ros/actionlib/pull/170
- https://github.com/ros/actionlib/pull/171
flaw:
  phase: testing
  specificity: subject-specific
  architectural-location: application-specific
  application: N/A
  subsystem: N/A
  package: N/A
  languages: None
  date-detected: 2020-06-03
  detected-by: Alias Robotics
  detected-by-method: testing static
  date-reported: 2020-06-03
  reported-by: Alias Robotics
  reported-by-relationship: automatic
  issue: https://github.com/aliasrobotics/RVD/issues/2401
  reproducibility: always
  trace: ./src/actionlib/tools/library.py:132
  reproduction: See artifacts below (if available)
  reproduction-image: ''
exploitation:
  description: A code execution PoC exploit was built confirming its exploitability.
    PoC could be delivered remotely using common ROS SSH configurations and take control
    of the remote machine.
  exploitation-image: Not disclosed
  exploitation-vector: Not disclosed
  exploitation-recipe: Not disclosed
mitigation:
  description: 'Use of yaml.safe_load() instead'
  pull-request: 'See https://github.com/ros/actionlib/pull/171 and https://github.com/ros/actionlib/pull/170'
  date-mitigation: '2020-08-21'

Activity

  1. added
    bug
    components software
    robot component: ROS
    triage
    version: melodic
    on Jun 3, 2020
  2. changed the title [-]Use of unsafe yaml load, ./src/actionlib/tools/library.py:132[/-] [+]RVD#2401: Use of unsafe yaml load, ./src/actionlib/tools/library.py:132[/+] on Jun 3, 2020
  3. self-assigned this
    on Jun 4, 2020
  4. ibaiape commented on Jun 4, 2020

    @ibaiape

    Python yaml.load allows for python object declaration, if available would be interesting to find out the limitations on this

  5. added
    ROS-Industrial
    on Aug 18, 2020
  6. vmayoral commented on Aug 20, 2020

    @vmayoral
    Member

    Similar to #2400, concentrating the discussion in here.

  7. added and removed
    bug
    on Aug 20, 2020
  8. 18 remaining items

  9. mjcarroll commented on Aug 21, 2020

    @mjcarroll

    Note that Jade and Lunar are both end of life (May 2017 and May 2019, respectively)

  10. added a commit that references this issue on Aug 21, 2020
  11. mjcarroll commented on Aug 21, 2020

    @mjcarroll
  12. vmayoral commented on Aug 21, 2020

    @vmayoral
    Member

    Note that Jade and Lunar are both end of life (May 2017 and May 2019, respectively)

    Noted. Leaving still those labels for future reference (we might find in the future Lunar and Jade-based robots whose manufacturers decided not to transition to more modern releases, in which case we want them to find this tagged).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ROS-Industrialbanditcomponents softwaremitigatedrobot component: ROSseverity: criticalstatic analysistestingvendor: Open Roboticsversion: jadeversion: kineticversion: lunarversion: melodicversion: noeticvulnerability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions