Broken parsing of Git diff allows an attacker to inject arbitrary Ruby scripts to Casks on official taps
该报告还没有中文解读。
原文摘录
摘自原文(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 所有