🇰🇷 한글 설명
HtmlSanitizer .NET 라이브러리에서 svg 또는 math 요소가 허용된 설정 시 발생하는 XSS 취약점입니다. 공격자는 이 설정을 악용하여 HTML 살균 과정을 우회하고 임의의 자바스크립트 코드를 삽입할 수 있습니다. 기본 설정에서는 발생하지 않으나 특정 구성에서 보안 위험이 존재합니다.
💡 쉬운 설명
웹사이트에서 위험한 코드를 걸러주는 도구가 특정 설정에서 제대로 작동하지 않는 문제입니다. 이를 통해 해커가 사용자의 브라우저에서 몰래 악성 코드를 실행할 수 있습니다.
🇺🇸 원문 (English)
HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. The vulnerability occurs in configurations where foreign content is allowed, i.e. either `svg` or `math` are in the list of allowed elements. In the case an application sanitizes user input with a vulnerable configuration, an attacker could bypass the sanitization and inject arbitrary HTML, including JavaScript code. Note that in the default configuration the vulnerability is not present. The vulnerability has been fixed in versions 8.0.723 and 8.1.722-beta (preview version).
📍 영향받는 시스템
HtmlSanitizer (svg 또는 math 요소가 허용된 구성 사용 시)
⚔️ 공격 벡터
살균 설정이 허용된 svg/math 태그를 이용한 HTML 및 자바스크립트 인젝션
🛡️ 대응 방법
HtmlSanitizer를 버전 8.0.723 또는 8.1.722-beta 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 HtmlSanitizer의 버전이 8.0.723 미만인지 확인하십시오.
dotnet list package | grep HtmlSanitizer