🇰🇷 한글 설명
Apache MINA SSHD의 sshd-scp 구성 요소에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. SCP 'C' 또는 'D' 명령을 통해 수신되는 파일 이름에 대한 검증이 누락되어, 공격자가 임의의 경로에 파일을 작성할 수 있습니다.
💡 쉬운 설명
파일을 전송받을 때 파일 이름에 '상위 폴더로 이동'하는 특수 문자를 섞어 보내는 방식입니다. 이를 통해 공격자는 원래 저장되어야 할 위치가 아닌 시스템의 중요한 폴더에 악성 파일을 심을 수 있습니다.
🇺🇸 원문 (English)
Path traversal in the sshd-scp component of Apache MINA SSHD. Apache MINA SSHD is a Java library for client-side and server-side SSH.
The implementation of receiving files or directories via SCP did not validate filenames in SCP "C" or "D" commands. A malicious sender could send filenames containing paths, resulting in files to be written in attacker-controlled places.
The issue affects only
* applications that use no longer supported Apache MINA SSHD versions < 2.0.0 and use the SCP functions to receive files,
* or applications using sshd-scp in Apache MINA SSHD >= 2.0.0 to receive files.
Applications using Apache MINA SSHD >= 2.0.0 not using sshd-scp are not affected.
The issue is fixed in Apache MINA 2.19.0 and 3.0.0-M5. Affected applications are advised to upgrade to these versions.
📍 영향받는 시스템
Apache MINA SSHD 2.0.0 미만 버전(SCP 기능 사용 시) 또는 2.0.0 이상의 버전 중 sshd-scp를 사용하는 애플리케이션
⚔️ 공격 벡터
SCP 프로토콜의 C/D 명령을 사용하여 경로 조작 문자가 포함된 파일 이름을 전송
🛡️ 대응 방법
Apache MINA SSHD를 2.19.0 또는 3.0.0-M5 이상의 버전으로 업그레이드
🔧 검증 코드
출력된 라이브러리 버전이 2.19.0 또는 3.0.0-M5 미만인지 확인하십시오.
mvn dependency:list | grep 'org.apache.sshd:sshd-core'