🇰🇷 한글 설명
common-user-management Spring Boot 애플리케이션의 /api/v1/customer/profile-picture 엔드포인트에 파일 업로드 검증 기능이 부재하여 발생하는 심각한 보안 결함입니다. 공격자는 제한 없이 악성 파일을 업로드하여 서버에서 원격 코드 실행(RCE) 공격을 수행할 수 있습니다.
💡 쉬운 설명
프로필 사진을 업로드하는 기능에서 어떤 파일이든 받아들여 위험한 프로그램을 서버에 실행할 수 있습니다. 공격자가 서버를 완전히 장악할 수 있는 매우 심각한 문제입니다.
🇺🇸 원문 (English)
common-user-management is a robust Spring Boot application featuring user management services designed to control user access dynamically. There is a critical security vulnerability in the application endpoint /api/v1/customer/profile-picture. This endpoint allows file uploads without proper validation or restrictions, enabling attackers to upload malicious files that can lead to Remote Code Execution (RCE).
📍 영향받는 시스템
common-user-management Spring Boot application (모든 버전 - CVE 발표 버전부터 적용)
⚔️ 공격 벡터
HTTP POST 요청으로 /api/v1/customer/profile-picture에 실행 가능한 악성 파일(.jsp, .sh, .exe 등)을 업로드
🛡️ 대응 방법
파일 업로드 전 확장자/MIME 타입 검증, 파일 크기 제한, 업로드 디렉토리 실행 권한 제거, 안티바이러스 스캔 추가
🔧 검증 코드
파일이 성공적으로 업로드되면 취약점 존재, 업로드 거부 또는 검증 오류 메시지가 반환되면 패치된 상태
curl -s -X POST http://localhost:8080/api/v1/customer/profile-picture -F 'file=@/etc/passwd' 2>&1