همهٔ گزارش‌ها
متوسط

Bleach vulnerable to mutation XSS via whitelisted math or svg and raw tag

متن اصلی

نسخه‌های متأثر

بازه‌ها نیاز به بررسی دارند.

نسخه‌های متأثر
<3.1.2
نسخهٔ اصلاح‌شده
3.1.2
نسخه‌های متأثر
< 3.1.2
نسخهٔ اصلاح‌شده
3.1.2

بهره‌برداری

CVE-2020-6816

احتمال بهره‌برداری در ۳۰ روز آینده: 1.34%

FIRST EPSS · ۱۴۰۵/۰۸/۲۸

شرح آسیب‌پذیری

Impact

A mutation XSS affects users calling bleach.clean with all of:

  • the svg or math in the allowed/whitelisted tags

  • an RCDATA tag (see below) in the allowed/whitelisted tags

  • the keyword argument strip=False

Patches

Users are encouraged to upgrade to bleach v3.1.2 or greater.

Workarounds
  • modify bleach.clean calls to use strip=True, or not whitelist math or svg tags and one or more of the following tags:

script
noscript
style
noframes
xmp
noembed
iframe
References
Credits
  • Reported by Yaniv Nizry from the CxSCA AppSec group at Checkmarx

For more information

If you have any questions or comments about this advisory:

پیوندها