
Proof-of-concept demonstrating prototype pollution in deephas <=1.0.7 (CVE-2026-25047) leading to arbitrary code execution and denial of service, with two bypass techniques.
익스플로잇 제목: deephas <= 1.0.7 - 임의 코드 실행 / DoS로 이어지는 프로토타입 오염
CVE: CVE-2026-25047
GHSA: GHSA-2733-6c58-pf27
CVSS: 9.8 (치명적)
작성자: Mohammed Idrees Banyamer
작성자 국가: 요르단
연락처: Instagram @banyamer_security
날짜: 2026년 2월 1일
테스트 환경: Node.js 16 / 18 / 20 (Linux / macOS / Windows)
deephas npm 패키지(버전 <= 1.0.7)는 set() 함수의 안전하지 않은 재귀적 속성 할당으로 인해 프로토타입 오염에 취약하며, __proto__ 및 constructor.prototype 경로에 대한 적절한 보호 장치가 없습니다.
공격자가 deephas.set(obj, path, value)에 대한 입력을 제어하면 Object.prototype을 오염시킬 수 있으며, 이로 인해 다음과 같은 결과가 발생할 수 있습니다:
process.env, require.extensions 또는 기타 민감한 전역 객체 오염hasOwnProperty, toString 등 재정의)이 저장소에는 두 가지 우회 기법을 사용하여 취약점을 입증하는 깔끔한 개념 증명(PoC) Python 스크립트가 포함되어 있습니다:
constructor.prototype 경로 + hasOwnProperty 재정의 우회__proto__ 경로 + indexOf 재정의 우회이 문제는 deephas >= 1.0.8에서 수정되었습니다.
참고 자료:
npmgit clone https://github.com/[your-username]/deephas-poc-cve-2026-25047.git
cd deephas-poc-cve-2026-25047
python3 poc-deephas-prototype-pollution.py ```