🇰🇷 한글 설명
curl 8.0.0 미만 버전의 SFTP 구현체에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. 물결표(~) 문자가 사용자 홈 디렉토리를 나타내는 용도 외에 경로의 첫 번째 요소로 잘못 처리되어, 공격자가 필터링을 우회하거나 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
파일 경로를 지정할 때 사용하는 물결표(~) 기호가 프로그램에서 잘못 해석되는 문제입니다. 이를 이용해 공격자가 원래 접근해서는 안 되는 서버의 다른 파일이나 시스템 영역에 접근할 수 있습니다.
🇺🇸 원문 (English)
A path traversal vulnerability exists in curl <8.0.0 SFTP implementation causes the tilde (~) character to be wrongly replaced when used as a prefix in the first path element, in addition to its intended use as the first element to indicate a path relative to the user's home directory. Attackers can exploit this flaw to bypass filtering or execute arbitrary code by crafting a path like /~2/foo while accessing a server with a specific user.
📍 영향받는 시스템
curl 8.0.0 미만 버전 (SFTP 구현체 사용 시)
⚔️ 공격 벡터
특수하게 조작된 경로(예: /~2/foo)를 사용하여 SFTP 서버에 접근함으로써 경로 필터링 우회
🛡️ 대응 방법
curl을 8.0.0 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력 결과에 curl 버전이 8.0.0 미만으로 표시되면 취약한 버전입니다.
curl --version | grep -E 'curl/[0-7]\.'