POJIA破甲
地图 / Evaluating Ruby code by injecting Rescue job on the system_hook_push queue through web hook

Evaluating Ruby code by injecting Rescue job on the system_hook_push queue through web hook

服务端请求伪造 / SSRF / #299473

厂商
GitLab
严重程度
中危 · CVSS 8.5
赏金
$750
弱点
SSRF
研究员
@jobert
披露日期
2018-04-27
资产
—
CVE
CVE-2017-0916

该报告还没有中文解读。

原文摘录

摘自原文(4807 字符中的一小部分)
The secret token field of a webhook is vulnerable to a new line injection, allowing an attacker to inject non-HTTP commands in a TCP stream. When a GitLab instance is configured with an external Redis instance, e.g. on `127.0.0.1:6379`, it may result in arbitrary code execution on a Sidekiq worker …
原文中的代码
POST /root/test/hooks HTTP/1.1
Host: gitlab-instance
...
----------1282688597
Content-Disposition: form-data; name="hook[url]"

http://127.0.0.1:6379/
----------1282688597
Content-Disposition: form-data; name="hook[token]"

A
...

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

时间线

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

同类报告

SSRF in Exchange leads to ROOT access in all instancesShopify · 2018-05-23Server Side Request Forgery (SSRF) via Analytics ReportsHackerOne · 2023-12-08 · $25,000Server-Side Request Forgery using Javascript allows to exfill data from Google MetadataSnapchat · 2020-11-30Server Side Request Forgery (SSRF) at app.hellosign.com leads to AWS private keys disclosureDropbox · — · $4,913SSRF on project import via the remote_attachment_url on a NoteGitLab · 2020-06-07 · $10,000Server Side Request Forgery mitigation bypassGitLab · 2020-04-18