POJIA破甲
地图 / Broken parsing of Git diff allows an attacker to inject arbitrary Ruby scripts to Casks on official taps

Broken parsing of Git diff allows an attacker to inject arbitrary Ruby scripts to Casks on official taps

其他弱点 / Unlabeled / #1167608

厂商
Homebrew
严重程度
高危
赏金
—
弱点
Unlabeled
研究员
@ryotak
披露日期
2021-04-21
资产
—
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(1521 字符中的一小部分)
Description Due to improper parsing of Git diff in [Homebrew/actions/review-cask-pr](https://github.com/Homebrew/actions/tree/336bd2aae5314f8c17c66a8319adeba99f13c093/review-cask-pr), it's possible to confuse parser to ignore additional lines. Which leads injection of malicious Ruby scripts.
原文中的代码
++ "b/#{puts 'Going to report it - RyotaK (https://hackeorne.com/ryotak)';b = 1;Casks = 1;iterm2 = {};iterm2.define_singleton_method(:rb) do 1 end}"
++ b/Casks/iterm2.rb

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

时间线

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

同类报告

June 2022 Incident ReportHackerOne · 2022-07-01HTML-injection in PDF-export leads to LFIVisma Public · — · $500DOM XSS on duckduckgo.com searchDuckDuckGo · 2020-06-14An attacker can archive and unarchive any structured scope object on HackerOneHackerOne · 2022-04-18Java (Maven): Actually fix the use of insecure protocol to download/upload artifactsGitHub Security Lab · — · $4,000Handling of `tracking` command allows making arbitrary blind requests with user's cookies from Grammarly Extension's originSuperhuman (formerly Grammarly) · 2019-08-01