中危 Rails yaml 远程代码执行漏洞(CVE-2013-0156)
CVE编号
CVE-2013-0156利用情况
POC 已公开补丁情况
官方补丁披露时间
2013-01-14漏洞描述
Ruby on Rails是一款Web应用程序框架,构建在Ruby语言之上。Ruby on Rails ActionPack解析参数存在多个安全漏洞。允许攻击者利用漏洞绕过验证机制,注入任意SQL和注入执行任意代码或对Rail应用程序进行拒绝服务攻击。Ruby on Rails XML解析代码允许应用程序自动把字符串值转换为某些数据类型。不过支持某些转换的类型转换代码不正确对用户提供的数据进行转换,可触发上述安全问题。解决建议
建议将该组件升级至最新版本。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | rubyonrails | rails | * | From (including) 3.2.0 | Up to (excluding) 3.2.11 | ||||
运行在以下环境 | |||||||||
应用 | rubyonrails | ruby_on_rails | * | Up to (excluding) 2.3.15 | |||||
运行在以下环境 | |||||||||
应用 | rubyonrails | ruby_on_rails | * | From (including) 3.0.0 | Up to (excluding) 3.0.19 | ||||
运行在以下环境 | |||||||||
应用 | rubyonrails | ruby_on_rails | * | From (including) 3.1.0 | Up to (excluding) 3.1.10 | ||||
运行在以下环境 | |||||||||
系统 | debian_10 | rails | * | Up to (excluding) 2.3.14.1 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | rails | * | Up to (excluding) 2.3.14.1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | rails | * | Up to (excluding) 2.3.14.1 | |||||
运行在以下环境 | |||||||||
系统 | debian_6 | rails | * | Up to (excluding) 2.3.5-1.2+squeeze4.1 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | rails | * | Up to (excluding) 2.3.14.1 | |||||
运行在以下环境 | |||||||||
系统 | fedora_EPEL_5 | rubygem-actionpack | * | Up to (excluding) 2.3.18-1.el5 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_11.4 | rubygem-actionpack-2_3-doc | * | Up to (excluding) 2.3.16-0.16.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_12.1 | rubygem-actionpack-2_3-doc | * | Up to (excluding) 2.3.16-3.9.3 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_12.2 | rubygem-activeresource-3_2-doc | * | Up to (excluding) 2.3.16-2.5.3 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_12.04.5_lts | libextlib-ruby | * | Up to (excluding) 0.9.13-2+deb6u1build0.12.04.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_14.04.6_lts | ruby-activesupport-3.2 | * | Up to (excluding) 3.2.6-5 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 全局影响
- EXP成熟度 POC 已公开
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 DoS
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-20 | 输入验证不恰当 |
Exp相关链接
- https://github.com/bsodmike/rails-exploit-cve-2013-0156
- https://github.com/heroku/heroku-CVE-2013-0156
- https://github.com/josal/crack-0.1.8-fixed
- https://github.com/R3dKn33/CVE-2013-0156
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_xml_yaml_code_exec.rb
- https://github.com/terracatta/name_reverser
- https://pentesterlab.com/exercises/cve-2013-0156/course
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/auxiliary/scanner/http/rails_xml_yaml_scanner.rb
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/rails_secret_deserialization.rb
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/rails_xml_yaml_code_exec.rb
- https://www.exploit-db.com/exploits/24019
- https://www.exploit-db.com/exploits/27527

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论