🇰🇷 한글 설명
Postiz AI 소셜 미디어 스케줄링 도구의 2.21.3 미만 버전에서 SSRF 취약점이 발견되었습니다. POST /public/v1/upload-from-url 엔드포인트가 URL 검증 시 파일 확장자만 확인하여, 공격자가 내부 네트워크 자원이나 클라우드 메타데이터에 접근할 수 있습니다.
💡 쉬운 설명
공격자가 가짜 이미지 주소를 이용해 서버가 내부의 중요한 정보나 비밀번호를 스스로 가져오게 만드는 공격입니다. 이를 통해 서버 내부의 민감한 데이터가 외부로 유출될 수 있습니다.
🇺🇸 원문 (English)
Postiz is an AI social media scheduling tool. Prior to version 2.21.3, the POST /public/v1/upload-from-url endpoint accepts a user-supplied URL and fetches it server-side using axios.get() with no SSRF protections. The only validation is a file extension check (.png, .jpg, etc.) which is trivially bypassed by appending an image extension to any URL path. An authenticated API user can fetch internal network resources, cloud instance metadata, and other internal services, with the response data uploaded to storage and returned to the attacker. This issue has been patched in version 2.21.3.
📍 영향받는 시스템
Postiz version < 2.21.3
⚔️ 공격 벡터
인증된 API 사용자가 파일 확장자를 조작한 URL을 전송하여 서버 측에서 내부 리소스를 요청하도록 유도
🛡️ 대응 방법
Postiz를 최신 버전인 2.21.3 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 버전이 나타나면 취약한 버전이 설치되어 있는 것이며, 아무 결과도 나오지 않으면 안전합니다.
npm list postiz | grep -E 'postiz@([0-1]\.|2\.[0-1]\.[0-2])'