🇰🇷 한글 설명
Piwigo 오픈소스 사진 갤러리 애플리케이션의 관리자 페이지에서 파일 확장자 검증 미흡으로 인해 발생하는 취약점입니다. 인증된 관리자가 이미지 콘텐츠를 업로드할 때 서버에서 실행 가능한 확장자를 사용하여 파일을 저장하면, 웹 서버를 통해 임의의 명령을 실행할 수 있습니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 사진 파일인 것처럼 속여서 악성 실행 파일을 서버에 올릴 수 있는 문제입니다. 이 파일이 실행되면 해커가 서버를 마음대로 조종하거나 데이터를 훔칠 수 있습니다.
🇺🇸 원문 (English)
Piwigo is a full featured open source photo gallery application for the web. Prior to 16.4.0, admin/themes_standard_pages.php validates uploaded logo content by MIME type but reuses the attacker-controlled extension from std_pgs_logo when constructing the stored filename. An authenticated administrator can upload image content with a server-executable final extension, causing the file to be placed in the web-accessible logo directory and executed when requested if the web server handles that extension. This can permit arbitrary command execution, data disclosure, modification, persistence, and service disruption. This vulnerability is fixed in 16.4.0.
📍 영향받는 시스템
Piwigo versions prior to 16.4.0
⚔️ 공격 벡터
인증된 관리자가 MIME 타입은 이미지로 위장하고 확장자는 실행 가능한 파일로 설정하여 로고를 업로드하는 방식
🛡️ 대응 방법
Piwigo를 최신 버전인 16.4.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 16.4.0 미만이면 취약한 상태입니다.
curl -s http://<target_ip>/version.php | grep -E 'Piwigo [0-9]+\.[0-9]+'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server