🇰🇷 한글 설명
SFTPGo 2.5.0부터 2.7.6 버전 사이에서 인증된 사용자가 파일 복사 권한을 이용해 접근이 제한된 파일을 허용된 경로로 복사할 수 있는 취약점이 발견되었습니다. 파일 패턴 필터가 목적지에 대해서만 검사되기 때문에, 이를 통해 차단된 파일의 내용을 읽거나 숨겨진 파일을 복제하여 접근할 수 있습니다.
💡 쉬운 설명
파일을 복사할 때 '어디로 복사하는지'만 검사하고 '무엇을 복사하는지'는 확인하지 않는 허점이 있습니다. 이를 이용하면 원래 볼 수 없어야 하는 비밀 파일이나 차단된 파일을 다른 곳으로 복사해 몰래 읽을 수 있습니다.
🇺🇸 원문 (English)
SFTPGo is an open source, event-driven file transfer solution. From 2.5.0 until 2.7.6, an authenticated user with copy permission can copy a source file denied by denied_patterns or outside allowed_patterns to an allowed destination name because file-pattern filters are evaluated only on the destination. The user can then read the denied file contents. Recursive directory copies can reproduce restricted contents under an allowed path, and the hide policy is bypassed because files that appear missing to stat and directory listings can still be copied. Home-directory boundaries, virtual-folder layout, per-directory permissions, access to other accounts, and administrative authorization remain enforced. This issue is fixed in 2.7.6.
📍 영향받는 시스템
SFTPGo 버전 2.5.0 ~ 2.7.6
⚔️ 공격 벡터
인증된 사용자가 복사 권한을 사용하여 차단된 패턴의 파일을 허용된 경로로 복사 시도
🛡️ 대응 방법
SFTPGo를 최신 보안 패치가 적용된 버전인 2.7.6 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 2.5.0에서 2.7.6 사이의 버전이 출력되면 취약한 버전이 설치된 상태입니다.
sftpgo --version 2>/dev/null | grep -E '2\.[5-7]\.[0-6]'