🇰🇷 한글 설명
bwm-ng 패키지의 bwm-ng.js 파일 내 'check' 함수에서 입력값 검증이 제대로 이루어지지 않아 명령 주입(Command Injection) 취약점이 발생합니다. 공격자가 Node.js 코드를 실행할 수 있는 환경을 확보할 경우, 시스템 명령어를 임의로 실행할 수 있습니다.
💡 쉬운 설명
프로그램이 사용자가 입력한 값을 제대로 확인하지 않고 그대로 실행하여 발생하는 보안 문제입니다. 해커가 이 틈을 타서 컴퓨터에 몰래 명령을 내려 시스템을 조작할 수 있습니다.
🇺🇸 원문 (English)
All versions of the package bwm-ng are vulnerable to Command Injection due to improper input sanitization in the 'check' function in the bwm-ng.js file.
**Note:**
To execute the code snippet and potentially exploit the vulnerability, the attacker needs to have the ability to run Node.js code within the target environment. This typically requires some level of access to the system or application hosting the Node.js environment.
📍 영향받는 시스템
bwm-ng 패키지의 모든 버전
⚔️ 공격 벡터
Node.js 환경 내에서 악의적인 입력값을 전달하여 시스템 명령어를 실행하는 방식
🛡️ 대응 방법
해당 패키지를 최신 보안 패치가 적용된 버전으로 업데이트하거나 입력값 검증 로직을 수정해야 합니다.
🔧 검증 코드
명령어 결과에 bwm-ng 패키지가 표시되면 설치된 상태이며, 설치된 버전을 확인하여 취약 여부를 판단합니다.
npm list bwm-ng 2>/dev/null