🇰🇷 한글 설명
OsamaTaher/Java-springboot-codebase의 경로 검증 메커니즘이 부족하여 절대 경로 순회(Absolute Path Traversal)가 가능한 취약점입니다. 이를 통해 공격자가 시스템의 민감한 내부 파일에 무단 접근할 수 있습니다. 커밋 c835c6f7799eacada4c0fc77e0816f250af01ad2에서 패치되었습니다.
💡 쉬운 설명
응용 프로그램이 사용자 입력으로 받은 파일 경로를 제대로 검증하지 않아, 공격자가 시스템의 어느 파일이든 접근할 수 있는 문제입니다. 예를 들어 '/etc/passwd' 같은 민감한 시스템 파일을 읽을 수 있게 됩니다.
🇺🇸 원문 (English)
OsamaTaher/Java-springboot-codebase is a collection of Java and Spring Boot code snippets, applications, and projects. Prior to commit c835c6f7799eacada4c0fc77e0816f250af01ad2, insufficient path traversal mechanisms make absolute path traversal possible. This vulnerability allows unauthorized access to sensitive internal files. Commit c835c6f7799eacada4c0fc77e0816f250af01ad2 contains a patch for the issue.
📍 영향받는 시스템
OsamaTaher/Java-springboot-codebase (커밋 c835c6f7799eacada4c0fc77e0816f250af01ad2 이전 버전)
⚔️ 공격 벡터
HTTP 요청의 파일 경로 파라미터에 상대/절대 경로(../../ 또는 /)를 삽입하여 보호된 파일 접근
🛡️ 대응 방법
커밋 c835c6f7799eacada4c0fc77e0816f250af01ad2로 업그레이드하거나, 모든 경로 입력에 대해 정규화 및 화이트리스트 검증 구현
🔧 검증 코드
'Patched'이면 취약점이 수정된 버전, 'Vulnerable'이면 패치 전 버전입니다.
git log --oneline | grep -q 'c835c6f' && echo 'Patched' || echo 'Vulnerable'