🔍 CVE-2020-26293

6.1
CVSS Score
MEDIUM
2021-01-04
2026-06-17 03:08
✅ 완료

🇰🇷 한글 설명

HtmlSanitizer 5.0.372 이전 버전에서 <style> 태그를 명시적으로 허용할 경우 XSS 공격을 우회할 수 있는 취약점이 존재합니다. 공격자는 스타일 태그를 이용해 악성 스크립트를 삽입하여 실행할 수 있습니다. 이 문제는 5.0.372 버전에서 수정되었습니다.

💡 쉬운 설명

웹사이트의 위험한 코드를 걸러주는 도구에서 보안 구멍이 발견되었습니다. 사용자가 스타일 설정을 허용해 두었다면, 공격자가 이를 이용해 몰래 악성 프로그램을 실행할 수 있습니다.

🇺🇸 원문 (English)

HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. In HtmlSanitizer before version 5.0.372, there is a possible XSS bypass if style tag is allowed. If you have explicitly allowed the `<style>` tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the `<style>` tag so there is no risk if you have not explicitly allowed the `<style>` tag. The problem has been fixed in version 5.0.372.

📍 영향받는 시스템

HtmlSanitizer version < 5.0.372

⚔️ 공격 벡터

허용된 <style> 태그 내에 악성 스크립트를 포함한 HTML을 삽입하여 XSS 공격 수행

🛡️ 대응 방법

HtmlSanitizer 라이브러리를 5.0.372 이상의 최신 버전으로 업데이트

🔧 검증 코드

출력된 HtmlSanitizer의 버전이 5.0.372 미만인지 확인

Shell / Script
dotnet list package | grep HtmlSanitizer

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N

💻 영향받는 소프트웨어

.NET