🇰🇷 한글 설명
BrowserStack Runner 0.9.5 이하 버전의 /_log HTTP 핸들러에서 원격 코드 실행(RCE) 취약점이 발견되었습니다. 인증되지 않은 네트워크 인접 공격자가 조작된 JSON 요청을 보내 Node.js의 vm 샌드박스를 우회하고 시스템 권한으로 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
해커가 특수하게 만든 데이터를 보내면 프로그램의 보안 벽을 뚫고 컴퓨터를 마음대로 조종할 수 있는 문제입니다. 별도의 로그인 없이도 같은 네트워크에 있다면 공격이 가능합니다.
🇺🇸 원문 (English)
BrowserStack Runner through 0.9.5 contains a remote code execution vulnerability in the /_log HTTP handler that allows unauthenticated network-adjacent attackers to execute arbitrary code by submitting crafted JSON request bodies to the handler, which passes user-supplied data to vm.runInNewContext() combined with eval(). Attackers can escape the Node.js vm sandbox by leveraging a host-context Function reference through util.format to access the host process via this.constructor.constructor, achieving full remote code execution on the underlying system without any authentication.
📍 영향받는 시스템
BrowserStack Runner 0.9.5 이하 모든 버전
⚔️ 공격 벡터
조작된 JSON 본문을 포함한 HTTP 요청을 /_log 핸들러로 전송하여 Node.js vm 샌드박스 우회
🛡️ 대응 방법
BrowserStack Runner를 최신 보안 패치가 적용된 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.9.5 이하인지 확인하여 취약 여부를 판단합니다.
npm list -g browserstack-runner --depth=0 2>/dev/null | grep -E 'browserstack-runner@'