vmayoral / robot_hacking_manual

Robot Hacking Manual (RHM). From robotics to cybersecurity. Papers, notes and writeups from a journey into robot cybersecurity.
https://rhm.cybersecurityrobotics.net/
Apache License 2.0
322 stars 45 forks source link

Installing Dockerfile issues #4

Open dhkstnrh opened 1 year ago

dhkstnrh commented 1 year ago

hello!

I am a student studying ROS2 vulnerabilities.

I would like to inquire about the robot_hacking_manual/1_case_studies/2_ros2/Dockerfile you shared.

CVE-2021-38445: I am trying to install a Dockerfile to analyze the 1-day vulnerability for ROS2 Node Crashing.

Dockerfile:98

97 | # Build rest 98 | >>> RUN /bin/bash -c ". /opt/ros/$DISTRO/setup.bash \ 99 | >>> && . install/local_setup.bash \ 100 | >>> && colcon build --merge-install \ 101 | >>> --packages-up-to rmw_opendds_cpp rcl_interfaces examples_rclcpp_minimal_publisher \ 102 | >>> examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_service \ 103 | >>> examples_rclcpp_minimal_client turtlebot3_teleop" 104 |

ERROR: failed to solve: process "/bin/sh -c /bin/bash -c \". /opt/ros/$DISTRO/setup.bash && . install/local_setup.bash && colcon build --merge-install --packages-up-to rmw_opendds_cpp rcl_interfaces examples_rclcpp_minimal_publisher examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_service examples_rclcpp_minimal_client turtlebot3_teleop\"" did not complete successfully: exit code: 2

The python module 'rosidl_pycommon' cannot be found with the following error.

Is it now impossible to reproduce the vulnerability in ROS2 foxy??