
XML ContentNegotiation을 통한 JetBrains Ktor < 2.3.5의 XXE 취약점을 시연하는 개념 증명으로, 예방 지침 및 OWASP 기반 분석을 포함합니다.
JetBrains Ktor 2.3.5 이전 버전에서 XML 형식과 함께 ContentNegotiation의 기본 구성은 XXE에 취약했습니다.
이 취약점은 2023년 9월 29일 @marychatte에 의해 패치되었으며(https://github.com/ktorio/ktor/pull/3770), 외부 라이브러리 xmlutil version 0.86.1의 잘못된 구성에 기반한 공급망 공격으로 인해 발생했습니다.

OWASP 가이드(https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#xmlinputfactory-a-stax-parser)에 따르면 수정이 충분히 포괄적이지 않습니다. 여기(https://security.stackexchange.com/questions/260956/java-xxe-vulnerability)에서 흥미로운 답변을 찾았습니다: The main objective is to disable DTDs, it basically consists of the primary defense against this attack.
