You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Document] HWPX 업로드 실제 파일 구조 검증 (ZIP·mimetype·section0.xml) #109
Agent(문서 초안 작성) 쪽은 HWPX의 MIME만 보지 않고, 실제 ZIP 파일을 열어서
내부 mimetype=application/hwp+zip 값과 Contents/section0.xml 존재 여부를
확인합니다.
반면 Server(FileService)는 현재 요청 MIME이 application/hwp+zip이면
실제 파일 구조와 무관하게(일반 문자열이어도) 허용하고 있습니다. HWP는
OLE 시그니처까지 검증하는데, HWPX는 문자열 MIME 비교만 하고 있어
검증 수준이 불일치합니다.
완료 조건
FileService에 .hwpx 전용 분기 추가
HwpxSignatureValidator 신설 (HwpSignatureValidator와 같은 위치), 다음을 검사:
Activity