🇰🇷 한글 설명
Apache MINA SSHD의 sshd-git 번들에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. SSH를 통해 인증된 사용자가 git-upload-pack 및 git-receive-pack 등의 작업을 수행할 때 경로 검증이 누락되어, 설정된 git 서버 루트 디렉터리 외부의 파일에 접근할 수 있습니다.
💡 쉬운 설명
SSH로 접속 권한을 가진 사용자가 원래 허용된 폴더를 벗어나 서버의 다른 중요한 파일들을 몰래 훔쳐볼 수 있는 보안 약점입니다. 마치 아파트 입주민이 자기 집 문을 열고 나와 복도나 다른 집의 문까지 열 수 있는 것과 같습니다.
🇺🇸 원문 (English)
Path traversal vulnerability in Apache MINA SSHD bundle sshd-git. Lack of path validation in git-upload-pack, git-receive-pack, and other git operations allows users authenticated over SSH access to git repositories outside the configured git server root directory.
Applications are affected if they use org.apache.sshd:sshd-git. Applications not using sshd-git are not affected.
Users are advised to upgrade affected applications to Apche MINA SSHD 2.18.0, which fixes the issue.
The issue also is present in the pre-release milestones 3.0.0-M1 to 3.0.0-M3 for a new upcoming new major version 3.0.0. Again, applications are affected only if they use sshd-git. Upgrade affected applications to 3.0.0-M4.
We would like to point out that a professional git server should not rely solely on file system layout and permissions, but should implement additional security controls to govern access to git repositories and operations allowed on particular git repositories.
📍 영향받는 시스템
org.apache.sshd:sshd-git 라이브러리를 사용하는 애플리케이션 (3.0.0-M1 ~ 3.0.0-M3 포함)
⚔️ 공격 벡터
SSH 인증을 거친 사용자가 특수하게 조작된 Git 명령어를 사용하여 경로 탐색 공격 수행
🛡️ 대응 방법
Apache MINA SSHD 2.18.0 버전 또는 3.0.0-M4 버전 이상으로 업그레이드
🔧 검증 코드
출력된 결과에서 sshd-git의 버전을 확인하여 취약한 버전(2.18.0 미만 또는 3.0.0-M1~M3)인지 체크합니다.
mvn dependency:tree | grep 'org.apache.sshd:sshd-git'