🇰🇷 한글 설명
repomix의 git clone 엔드포인트에서 로컬 파일 포함(LFI) 취약점이 발견되었습니다. isValidRemoteValue 함수가 file:// URL을 제대로 차단하지 못해, 인증되지 않은 공격자가 서버 파일 시스템의 임의의 git 저장소를 읽을 수 있습니다.
💡 쉬운 설명
공격자가 특수한 주소를 입력하면 서버에 저장된 중요한 파일들을 몰래 훔쳐볼 수 있는 보안 구멍이 있습니다. 이로 인해 서버 내의 민감한 소스 코드나 데이터가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
repomix contains a local file inclusion vulnerability in the git clone endpoint that allows unauthenticated attackers to read arbitrary local git repositories. The isValidRemoteValue function in src/core/git/gitRemoteParse.ts fails to block file:// URLs, permitting attackers to supply file:// scheme URLs that bypass validation and are passed directly to git clone, enabling unauthorized access to all tracked file contents on the server filesystem.
📍 영향받는 시스템
repomix (src/core/git/gitRemoteParse.ts 내 isValidRemoteValue 함수가 포함된 버전)
⚔️ 공격 벡터
git clone 요청 시 file:// 스킴을 사용한 URL을 전달하여 검증을 우회함
🛡️ 대응 방법
isValidRemoteValue 함수를 수정하여 file:// 스킴을 포함한 URL을 차단하도록 업데이트해야 함
🔧 검증 코드
명령어 결과에서 file:// URL에 대한 차단 로직이 누락되어 있다면 취약한 상태입니다.
grep -r "file://" src/core/git/gitRemoteParse.ts