🇰🇷 한글 설명
PHPBlogger가 웹 루트 하에 관리자 비밀번호 해시를 포함한 데이터베이스 파일(pref.db)을 부족한 접근 제어로 저장하여, 원격 공격자가 직접 HTTP 요청으로 다운로드할 수 있습니다. 인증 쿠키 생성에 평문이 아닌 해시만 필요하므로, 공격자는 즉시 관리자 권한을 탈취할 수 있습니다.
💡 쉬운 설명
PHPBlogger 블로그 소프트웨어가 관리자 비밀번호 정보를 누구나 접근할 수 있는 웹 폴더에 저장했습니다. 공격자가 이 파일을 다운로드하면 관리자 계정을 탈취할 수 있습니다.
🇺🇸 원문 (English)
PHPBlogger stores sensitive information under the web root with insufficient access control, which allows remote attackers to download a database containing an admin password hash via a direct request for data/pref.db. NOTE: this can be easily leveraged for administrative access because composing the authentication cookie only requires the password hash, not the cleartext version.
📍 영향받는 시스템
PHPBlogger (패치 버전 이전의 모든 버전)
⚔️ 공격 벡터
웹 브라우저 또는 HTTP 클라이언트를 통해 /data/pref.db에 직접 접근
🛡️ 대응 방법
데이터베이스 파일을 웹 루트 외부로 이동하거나 .htaccess를 통해 접근 제한
🔧 검증 코드
'VULNERABLE'이 출력되면 pref.db 파일이 웹에서 직접 접근 가능하며, SQLite 데이터베이스 파일이 다운로드됨을 의미합니다.
curl -s http://target/data/pref.db 2>/dev/null && echo 'VULNERABLE' || echo 'Not accessible'