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

Sanitization bypass using HTML Entities in marked

متن اصلی

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

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

بهره‌برداری

CVE-2016-10531

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

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

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

Affected versions of marked are susceptible to a cross-site scripting vulnerability in link components when sanitize:true is configured.

Proof of Concept

This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted.

For example:

A link URI such as

javascript&#x58document;alert&#40;1&#41;

Renders a valid link that when clicked will execute alert(1).

Recommendation

Update to version 0.3.6 or later.

پیوندها