Sonatype Nexus Repository Manager 提供了一个用于存储构建产物的集中式平台
CVE-2024-4956 是 Sonatype Nexus Repository Manager 中的一个路径遍历漏洞,攻击者无需任何身份验证即可构造 URL,将任意文件(包括 Nexus Repository 应用范围之外的系统文件)作为下载返回。
受影响版本:所有 3.68.0 及之前的 Sonatype Nexus Repository 3.x OSS/Pro 版本
Python3 漏洞利用脚本用法:python3 exploitPython.py -u -p -f
Python3 漏洞利用脚本用法示例:python3 exploitPython.py -u http://127.0.0.1 -p 8081 -f /etc/passwd
Bash 漏洞利用脚本用法:./exploitBash.sh -u targetUrl -p targetPort -f targetFile
Bash 漏洞利用脚本用法示例:./exploitBash.sh -u https://127.0.0.1 -p 8081 -f /etc/passwd
免责声明:此漏洞利用脚本仅可用于教育和授权测试目的。禁止非法/未经授权使用此漏洞利用脚本。
参考资料: https://support.sonatype.com/hc/en-us/articles/29416509323923-CVE-2024-4956-Nexus-Repository-3-Path-Traversal-2024-05-16 https://nvd.nist.gov/vuln/detail/CVE-2024-4956 https://exp10it.io/2024/05/%E9%80%9A%E8%BF%87-java-fuzzing-%E6%8C%96%E6%8E%98-nexus-repository-3-%E7%9B%AE%E5%BD%95%E7%A9%BF%E8%B6%8A%E6%BC%8F%E6%B4%9E-cve-2024-4956/