一、 漏洞 CVE-2018-3760 基础信息
漏洞信息
                                        # N/A

## 漏洞概述
Sprockets 存在信息泄露漏洞。通过精心构造的请求,可以访问应用程序根目录之外的文件系统中的文件。

## 影响版本
- 4.0.0.beta7 及更低版本
- 3.7.1 及更低版本
- 2.12.4 及更低版本

## 漏洞细节
在生产环境中使用 Sprockets 服务器时,恶意用户可以利用精心构造的请求访问服务器上位于应用程序根目录外的文件。

## 影响
所有使用受影响版本的用户应立即升级到最新版本或采用相应的解决方法。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
N/A
来源:美国国家漏洞数据库 NVD
漏洞描述信息
There is an information leak vulnerability in Sprockets. Versions Affected: 4.0.0.beta7 and lower, 3.7.1 and lower, 2.12.4 and lower. Specially crafted requests can be used to access files that exists on the filesystem that is outside an application's root directory, when the Sprockets server is used in production. All users running an affected release should either upgrade or use one of the work arounds immediately.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
对路径名的限制不恰当(路径遍历)
来源:美国国家漏洞数据库 NVD
漏洞标题
Sprockets 信息泄露漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Sprockets是软件开发者Sam Stephenson和Joshua Peek共同研发的一个Ruby库,它主要用于检查JavaScript文件的相互依赖关系,以及优化网页中引入的JS文件,可避免加载不必要的JS文件,加快网页访问速度。 Sprockets 4.0.0.beta7及之前版本、3.7.1及之前版本和2.12.4及之前版本中存在信息泄露漏洞。攻击者可通过发送特制的请求利用该漏洞访问文件系统上的应用程序root目录之外的文件。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
信息泄露
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2018-3760 的公开POC
# POC 描述 源链接 神龙链接
1 Rails Asset Pipeline Directory Traversal Vulnerability https://github.com/mpgn/CVE-2018-3760 POC详情
2 None https://github.com/cyberharsh/Ruby-On-Rails-Path-Traversal-Vulnerability-CVE-2018-3760- POC详情
3 None https://github.com/wudidwo/CVE-2018-3760-poc POC详情
4 Ruby On Rails is vulnerable to local file inclusion caused by secondary decoding in Sprockets 3.7.1 and lower versions. An attacker can use %252e%252e/ to access the root directory and read or execute any file on the target server. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-3760.yaml POC详情
5 None https://github.com/Threekiii/Awesome-POC/blob/master/%E4%B8%AD%E9%97%B4%E4%BB%B6%E6%BC%8F%E6%B4%9E/Ruby%20On%20Rails%20%E8%B7%AF%E5%BE%84%E7%A9%BF%E8%B6%8A%E6%BC%8F%E6%B4%9E%20CVE-2018-3760.md POC详情
6 None https://github.com/Threekiii/Awesome-POC/blob/master/%E5%BC%80%E5%8F%91%E6%A1%86%E6%9E%B6%E6%BC%8F%E6%B4%9E/Rails%20sprockets%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E%20CVE-2018-3760.md POC详情
7 None https://github.com/chaitin/xray-plugins/blob/main/poc/manual/rails-cve-2018-3760-rce.yml POC详情
8 https://github.com/vulhub/vulhub/blob/master/rails/CVE-2018-3760/README.md POC详情
三、漏洞 CVE-2018-3760 的情报信息