🇰🇷 한글 설명
Undertow 웹 서버의 PathResourceManager 컴포넌트에서 심볼릭 링크 검증 로직의 결함이 발견되었습니다. 대상 경로가 특정 문자열로 시작하는지만 확인하고 전체 디렉터리 이름 일치 여부를 검증하지 않아, 허용된 디렉터리와 이름이 유사한 인접 디렉터리의 파일에 접근할 수 있습니다.
💡 쉬운 설명
웹 서버가 파일을 제공할 때 보안 구역인지 확인하는 과정에서 이름의 앞부분만 대충 확인하는 실수가 있습니다. 이로 인해 공격자가 이름이 비슷한 다른 폴더의 파일에 몰래 접근할 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
A flaw was found in the PathResourceManager component of the Undertow web server. This component is responsible for serving static files from the file system. The issue occurs because the mechanism used to verify if a symbolic link points to a safe location only checks if the target path starts with a specific string, without ensuring it matches a full directory name. This could allow an attacker to access files in a sibling directory if that directorys name starts with the same characters as an authorized safe directory.
📍 영향받는 시스템
Undertow web server (PathResourceManager 컴포넌트 사용 버전)
⚔️ 공격 벡터
허용된 디렉터리 이름과 앞부분이 일치하는 인접 디렉터리로 연결되는 심볼릭 링크를 이용한 경로 조작 공격
🛡️ 대응 방법
Undertow 웹 서버를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 심볼릭 링크 검증 로직을 강화해야 합니다.
🔧 검증 코드
명령어 결과에서 PathResourceManager 컴포넌트의 존재와 해당 라이브러리의 버전을 확인하여 취약한 버전인지 대조합니다.
grep -r "PathResourceManager" /path/to/undertow/source/or/lib 2>/dev/null
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
💻 영향받는 소프트웨어
IBM Security Verify Access