🇰🇷 한글 설명
phpMoneyBooks 1.0.4의 index.php에 존재하는 디렉토리 순회 취약점으로, file 파라미터에 '..'을 입력하면 임의 파일을 읽을 수 있습니다. 이를 통해 공격자는 웹서버 접근 권한으로 읽을 수 있는 모든 파일을 탈취할 수 있습니다.
💡 쉬운 설명
웹사이트의 파일 탐색 기능에서 원치 않는 파일을 열 수 있는 결함입니다. 공격자가 '..'를 이용해 폴더를 거슬러 올라가며 비밀번호 파일, 설정 파일 등 민감한 정보를 읽을 수 있습니다.
🇺🇸 원문 (English)
Directory traversal vulnerability in index.php in phpMoneyBooks 1.0.4 allows remote attackers to read arbitrary files via a .. (dot dot) in the file parameter, a different vulnerability than CVE-2012-1669. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information. NOTE: this issue might have been fixed in 1.0.3.
📍 영향받는 시스템
phpMoneyBooks 1.0.4 (1.0.3 이전 버전도 영향받을 가능성)
⚔️ 공격 벡터
HTTP GET/POST 요청의 file 파라미터에 경로 조작 문자열(예: ../../../../etc/passwd) 삽입
🛡️ 대응 방법
phpMoneyBooks를 1.0.5 이상으로 업그레이드하거나, 불가능시 파라미터 검증 로직 추가 (화이트리스트 기반 경로 제한)
🔧 검증 코드
phpMoneyBooks 설치 경로가 출력되면 취약한 버전이 설치된 것이므로 즉시 업그레이드 필요
find / -name 'index.php' -path '*/phpMoneyBooks*' 2>/dev/null | xargs grep -l 'phpMoneyBooks' 2>/dev/null | head -1