🔍 CVE-2026-40487

8.9
CVSS Score
HIGH
2026-04-18
2026-06-17 10:45
✅ 완료

🇰🇷 한글 설명

Postiz 2.21.6 이전 버전에서 Content-Type 헤더 스푸핑을 이용한 파일 업로드 검증 우회 취약점으로, 인증된 사용자가 HTML, SVG 등 실행 가능한 파일을 업로드할 수 있습니다. 업로드된 파일이 nginx에서 원본 확장자 기반으로 제공되면서 저장형 XSS(Stored XSS)가 발생하여 다른 사용자의 세션 탈취 및 계정 완전 탈취가 가능합니다.

💡 쉬운 설명

Postiz 소프트웨어에서 잘못된 파일을 서버에 업로드할 수 있는 보안 문제입니다. 이를 이용해 악의적인 웹페이지를 심어 다른 사용자가 접속할 때 정보를 빼앗을 수 있습니다.

🇺🇸 원문 (English)

Postiz is an AI social media scheduling tool. Prior to version 2.21.6, a file upload validation bypass allows any authenticated user to upload arbitrary HTML, SVG, or other executable file types to the server by spoofing the `Content-Type` header. The uploaded files are then served by nginx with a Content-Type derived from their original extension (`text/html`, `image/svg+xml`), enabling Stored Cross-Site Scripting (XSS) in the context of the application's origin. This can lead to session riding, account takeover, and full compromise of other users' accounts. Version 2.21.6 contains a fix.

📍 영향받는 시스템

Postiz 2.21.5 이하 모든 버전

⚔️ 공격 벡터

Content-Type 헤더를 조작하여 실행 가능한 HTML/SVG 파일을 업로드하고 nginx 웹서버가 이를 스크립트로 실행하도록 유도

🛡️ 대응 방법

Postiz를 2.21.6 이상으로 업그레이드

🔧 검증 코드

postiz 버전이 2.21.5 이하인 경우 'VULNERABLE' 출력되면 즉시 업그레이드 필요

Shell / Script
npm list postiz 2>/dev/null | grep -E 'postiz@[0-2]\.[0-2][0-1]\.[0-5]' && echo 'VULNERABLE' || echo 'OK'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Nginx