🇰🇷 한글 설명
phpPowerCards 2.10의 db/txt.inc.php에서 register_globals 활성화 시 발생하는 다중 코드 주입 취약점으로, email, name, picture, comment, sessionID 파라미터를 통해 임의의 파일을 생성 또는 덮어쓸 수 있습니다. 공격자는 이를 이용해 .php 파일을 생성하고 원격 파일 포함(RFI)으로 악성 코드를 실행할 수 있습니다.
💡 쉬운 설명
오래된 PHP 애플리케이션에서 사용자 입력을 제대로 검증하지 않아 공격자가 악의적인 파일을 만들 수 있는 문제입니다. 이를 통해 웹 서버에 악성 코드를 몰래 설치하고 실행할 수 있습니다.
🇺🇸 원문 (English)
Multiple direct static code injection vulnerabilities in db/txt.inc.php in phpPowerCards 2.10, when register_globals is enabled, allow remote attackers to create or overwrite arbitrary files via the (1) email[to], (2) email[from], (3) name[to], (4) name[from], (5) picture, (6) comment, or (7) sessionID parameter, as demonstrated by creating a new .php file that permits remote file inclusion, and then requesting this file.
📍 영향받는 시스템
phpPowerCards 2.10 (register_globals 활성화된 PHP 환경)
⚔️ 공격 벡터
email, name, picture, comment, sessionID 파라미터에 PHP 코드를 주입하여 서버에 악성 .php 파일 생성
🛡️ 대응 방법
register_globals 비활성화, phpPowerCards 업그레이드, 사용자 입력 검증 및 sanitization 구현
🔧 검증 코드
on이 표시되면 register_globals가 활성화된 취약한 상태이며, 결과가 없거나 Off로 표시되면 안전합니다.
grep -E 'register_globals\s*=\s*on' /etc/php.ini /etc/php/*/fpm/php.ini /etc/php/*/cli/php.ini 2>/dev/null