🔍 CVE-2026-42879

6.3
CVSS Score
MEDIUM
2026-05-27
2026-10-26 11:10
✅ 완료

🇰🇷 한글 설명

FacturaScripts 2025.81 이하 버전에서 제품 이미지 업로드 기능의 인증된 사용자가 MIME 타입 검증을 우회하여 PHP 파일을 GIF89a 헤더로 위장해 업로드할 수 있는 취약점입니다. 업로드된 파일이 원본 확장자로 저장되므로 실행 가능한 PHP 파일이 서버에 저장되어 원격 코드 실행이 가능합니다.

💡 쉬운 설명

FacturaScripts에서 로그인한 사용자가 이미지 파일로 보이는 악성 프로그램 파일을 업로드할 수 있습니다. 업로드된 파일이 실행되면서 해커가 서버를 제어할 수 있게 됩니다.

🇺🇸 원문 (English)

FacturaScripts is an open source accounting and invoicing software. In 2025.81 and earlier, an authenticated unrestricted file upload vulnerability exists in FacturaScripts' product image upload functionality. An attacker with valid credentials can upload a PHP file disguised as a GIF image (using a GIF89a header), bypassing MIME type validation. The file is stored with its original extension, including executable extensions such as .php. The vulnerability exists the addImageAction() method of Core/Lib/ExtendedController/ProductImagesTrait.php.

📍 영향받는 시스템

FacturaScripts 2025.81 및 그 이전 버전

⚔️ 공격 벡터

인증된 사용자가 GIF89a 헤더를 가진 PHP 파일을 제품 이미지로 업로드하여 MIME 타입 검증을 우회하고 서버 실행

🛡️ 대응 방법

FacturaScripts를 2025.82 이상으로 업데이트하고, 파일 업로드 검증을 강화하여 실제 파일 타입을 확인하도록 패치 적용

🔧 검증 코드

ProductImagesTrait.php 파일이 발견되면 해당 버전이 설치되어 있으며, MIME 검증 로직 확인 필요

Shell / Script
find /path/to/facturascripts -name 'ProductImagesTrait.php' -exec grep -l 'addImageAction' {} \; 2>/dev/null | head -1

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

💻 영향받는 소프트웨어

PHP