웹 애플리케이션Web application
CWE-22 경로 조작Path Traversal
../ 등으로 의도된 디렉터리 밖 파일에 접근하는 결함.Files outside the intended directory are reached via ../ and similar.
근본 원인 패턴Root-cause pattern
정규화 전에 검사하거나, 사용자 입력을 경로에 그대로 결합한다.Checks happen before canonicalization, or input is joined into paths directly.
전형적인 패치Typical fix
정규화 후 기준 디렉터리 접두어 검사, 파일 ID 매핑.Canonicalize then verify base-dir prefix; map IDs to files.