웹 애플리케이션Web application

CWE-1321 프로토타입 오염Prototype Pollution

JS 객체 병합 시 __proto__ 등을 통해 공용 프로토타입을 수정하는 결함.Object merging modifies a shared prototype via __proto__ and similar keys.

근본 원인 패턴Root-cause pattern

재귀 병합/경로 설정 함수가 특수 키를 걸러내지 않는다.Recursive merge / path-set helpers do not filter special keys.

전형적인 패치Typical fix

특수 키 차단, Object.create(null), Map 사용.Block special keys, use Object.create(null) or Map.

0 편posts

아직 이 클래스의 글이 없습니다. 아래 패턴 요약으로 먼저 학습하세요.No posts in this class yet. Start with the pattern summary below.

✎ CWE-1321 퀴즈 풀기Quiz on CWE-1321