🇰🇷 한글 설명
Robot Operating System 2(ROS 2)의 'ros2topic' 명령줄 도구에서 코드 주입 취약점이 발견되었습니다. 'hz' 명령의 '--filter' 옵션이 사용자 입력을 검증 없이 eval() 함수로 전달하여, 로컬 사용자가 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
ROS 2 시스템을 사용하는 사람이 특정 명령어를 통해 컴퓨터에 몰래 악성 명령을 내릴 수 있는 보안 구멍이 발견되었습니다. 공격자가 입력한 코드가 시스템에서 그대로 실행될 수 있어 위험합니다.
🇺🇸 원문 (English)
A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) 'ros2topic' command-line tool, affecting all ROS 2 distributions from Crystal Clemmys up to and including Lyrical Luth and Rolling Ridley. The vulnerability lies in the 'hz' verb, which reports the publishing rate of a topic and accepts a user-provided Python expression via the --filter option. This input is passed directly to the eval() function without sanitization, allowing a local user to craft and execute arbitrary code.
📍 영향받는 시스템
ROS 2 Crystal Clemmys부터 Lyrical Luth, Rolling Ridley를 포함한 모든 배포판
⚔️ 공격 벡터
ros2topic hz 명령의 --filter 옵션에 악성 Python 표현식을 입력하여 실행
🛡️ 대응 방법
ROS 2 패키지를 최신 보안 업데이트 버전으로 업데이트하거나, 신뢰할 수 없는 사용자의 명령 실행 권한을 제한하십시오.
🔧 검증 코드
명령어 결과에 'hz'가 포함되어 있다면 해당 취약점이 존재하는 도구를 사용 중일 가능성이 높으므로 버전을 확인해야 합니다.
ros2 topic --help | grep -E 'hz'