提交 #1008105: diem-project diem 116974edfb9a5b8bd69cb13586dc62bcdbb485ad Cross Site Scripting信息

标题diem-project diem 116974edfb9a5b8bd69cb13586dc62bcdbb485ad Cross Site Scripting
描述The Link Widget accepts its `text` field as an unrestricted `sfValidatorString` in `dmFrontPlugin/lib/dmWidget/link/dmWidgetContentLinkForm.php`. Its view in `dmWidgetContentLinkView.php` applies `nl2br()` and passes the result to `dmBaseLinkTag::text()`. `dmCorePlugin/lib/view/html/link/dmBaseLinkTag.php` inserts the value directly between `<a>` tags without HTML encoding. A user with the `widget_edit_fast` or `widget_edit` credential can persist markup such as `<img src=x onerror=alert(document.domain)>`, which executes for every visitor who loads a page containing that widget.
来源⚠️ https://github.com/diem-project/diem/issues/459
用户
 cnluminous (UID 98136)
提交2026-09-30 18時07分 (18 日前)
管理2026-10-18 11時52分 (18 days later)
状态已接受
VulDB条目421690 [diem-project diem 直到 116974edfb9a5b8bd69cb13586dc62bcdbb485ad dmWidget dmBaseLinkTag.php dmBaseLinkTag::text 跨网站脚本]
积分20

Interested in the pricing of exploits?

See the underground prices here!