🇰🇷 한글 설명
Node.js용 socket.io-file 패키지 2.0.31 이하 버전에서 발생하는 취약점입니다. 클라이언트 측 파일 유형 검증에 의존하기 때문에, 공격자가 JSON 이름 필드를 조작하여 실행 파일을 업로드함으로써 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
파일의 종류를 확인하는 과정이 보안이 취약한 사용자 컴퓨터 측에서만 이루어지는 문제입니다. 이를 악용하면 공격자가 가짜 파일을 올려서 서버를 해킹할 수 있습니다.
🇺🇸 원문 (English)
The socket.io-file package through 2.0.31 for Node.js relies on client-side validation of file types, which allows remote attackers to execute arbitrary code by uploading an executable file via a modified JSON name field. NOTE: This vulnerability only affects products that are no longer supported by the maintainer
📍 영향받는 시스템
socket.io-file package version <= 2.0.31
⚔️ 공격 벡터
조작된 JSON name 필드를 이용한 실행 파일 업로드
🛡️ 대응 방법
해당 패키지를 최신 버전으로 업데이트하거나, 더 이상 지원되지 않으므로 보안이 강화된 다른 라이브러리로 교체하십시오.
🔧 검증 코드
출력된 결과의 버전이 2.0.31 이하인지 확인하십시오.
npm list socket.io-file 2>/dev/null | grep -E 'socket.io-file@'