🇰🇷 한글 설명
PHPOffice Math 라이브러리가 LIBXML_DTDLOAD 플래그와 함께 libxml 확장을 사용하여 XML 데이터를 파싱할 때, 외부 entity에 대한 필터링이 없어 XXE(XML External Entity) 공격에 취약합니다. 버전 0.3.0에서 수정되었습니다.
💡 쉬운 설명
PHPOffice Math 라이브러리가 악의적인 XML 파일로 공격받을 수 있습니다. 외부 파일을 읽거나 데이터를 탈취당할 위험이 있습니다.
🇺🇸 원문 (English)
PHPOffice Math is a library that provides a set of classes to manipulate different formula file formats. Prior to version 0.3.0, loading XML data using the standard `libxml` extension and the `LIBXML_DTDLOAD` flag without additional filtration, leads to XXE. Version 0.3.0 fixes the vulnerability.
📍 영향받는 시스템
PHPOffice Math < 0.3.0
⚔️ 공격 벡터
공격자가 악의적인 XML 파일을 PHPOffice Math에 로드하여 외부 entity 참조를 통해 시스템 파일 접근 또는 SSRF 공격 수행
🛡️ 대응 방법
PHPOffice Math를 0.3.0 이상으로 업그레이드
🔧 검증 코드
출력된 버전이 0.3.0 이상이면 취약점이 수정된 상태, 미만이면 업그레이드 필요
composer show phpoffice/math 2>/dev/null | grep -i version