POJIA破甲
地图 / Stored XSS in Mermaid when viewing Markdown files

Stored XSS in Mermaid when viewing Markdown files

跨站脚本 / DOM 型 XSS / #1212822

厂商
GitLab
严重程度
中危 · CVSS 7.1
赏金
—
弱点
DOM 型 XSS
研究员
@saleemrashid
披露日期
2021-10-18
资产
gitlab.com
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(6647 字符中的一小部分)
GitLab's Mermaid configuration allows an attacker to inject HTML in the rendered Markdown. This can be combined with a CSP bypass using pipeline artifacts to achieve RCE.
原文中的代码
---
job:
  script:
  - "echo 'alert(parent.document.querySelector(\"meta[name=csrf-token]\").outerHTML)' > exploit.js"
  artifacts:
    paths:
    - exploit.js

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 GitLab 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @saleemrashid · 版权归作者与 GitLab 所有

同类报告

Cross-site Scripting (XSS) on HackerOne careers pageHackerOne · 2019-02-17 · $500XSS via Direct Message deeplinksX / xAI · 2019-05-09DOM Based XSS in www.hackerone.com via PostMessageHackerOne · 2019-02-21 · $500Stored XSS on TikTok AdsTikTok · 2022-08-19H1514 DOMXSS on Embedded SDK via Shopify.API.setWindowLocation abusing cookie StuffingShopify · 2019-04-17XSS on Desktop ClientKeybase · —