🇰🇷 한글 설명
Bharat Mediratta Gallery PHP 스크립트 1.2.1 이전 버전에서 HTTP 요청을 통해 includedir 변수를 조작할 수 있습니다. 공격자는 이를 이용해 원격 웹사이트의 파일을 포함시켜 임의의 PHP 코드를 서버에서 실행할 수 있습니다.
💡 쉬운 설명
갤러리 프로그램이 악의적인 외부 파일을 실행하도록 속을 수 있습니다. 공격자가 이를 이용해 서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Bharat Mediratta Gallery PHP script before 1.2.1 allows remote attackers to execute arbitrary code by including files from remote web sites via an HTTP request that modifies the includedir variable.
📍 영향받는 시스템
Bharat Mediratta Gallery PHP script < 1.2.1
⚔️ 공격 벡터
HTTP 요청을 통해 includedir 변수 조작으로 원격 파일 포함(Remote File Inclusion)
🛡️ 대응 방법
Bharat Mediratta Gallery를 1.2.1 이상으로 즉시 업그레이드
🔧 검증 코드
갤러리 index.php에서 버전 정보를 확인하여 1.2.1 미만이면 취약, 1.2.1 이상이면 패치됨
find /var/www -name 'index.php' -path '*gallery*' 2>/dev/null | head -1 | xargs grep -i 'version' 2>/dev/null