POJIA破甲
地图 / OS Command Injection in 'rdoc' documentation generator

OS Command Injection in 'rdoc' documentation generator

代码执行 / 操作系统命令注入 / #1161691

厂商
Ruby
严重程度
低危 · CVSS 6.4
赏金
—
弱点
操作系统命令注入
研究员
@sighook
披露日期
2021-07-13
资产
https://github.com/ruby/ruby
CVE
CVE-2021-31799

该报告还没有中文解读。

原文摘录

摘自原文(1454 字符中的一小部分)
Details: If the `remove_unparseable` function receives a list of files with a command in the name of one of them, it will be executed. Just enough the name to match the pattern. The problem code:
原文中的代码
  def remove_unparseable files
    files.reject do |file, *|
      file =~ /\.(?:class|eps|erb|scpt\.txt|svg|ttf|yml)$/i or
        (file =~ /tags$/i and
         open(file, 'rb') { |io|
           io.read(100) =~ /\A(\f\n[^,]+,\d+$|!_TAG_)/
         })
    end
  end

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

时间线

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

同类报告

Potential pre-auth RCE on Twitter VPNX / xAI · 2019-08-10 · $20,160Exposed Kubernetes API - RCE/Exposed CredsSnapchat · 2021-07-29 · $25,000Webshell via File Upload on ecjobs.starbucks.com.cnStarbucks · 2019-11-13🐞 OS Command Injection at https://sea-web.gold.razer.com/lab/ws-lookup via IP parameterRazer · — · $2,000RCE via github importGitLab · 2022-11-16RCE using bash command injection on /system/images (toimitilat.lahitapiola.fi)LocalTapiola · —