CVE-2019-3394:[Confluence]敏感信息泄露漏洞

220 篇文章 7 订阅
213 篇文章 3 订阅

这次没咋分析:
https://mp.weixin.qq.com/s/puRrvfqWFVKvQ0hOoVs8lQ
写了一个poc:
https://github.com/shadowsock5/Poc/tree/master/Confluence
在这里插入图片描述
,需要修改:
url、用户名、密码、你自己的空间名
在这里插入图片描述
然后切换payload,改一下数字就行了。
在这里插入图片描述

最后confluence是加了一个过滤函数,判断用户输入的payload的文件路径经过路径穿越之后是否是/WEB-INF/packages的子目录,这里不知道咋绕了。

import java.io.File;
import java.io.IOException;

public class Main{
    public static boolean isChildOf(File dir, File child) {
        try {
            File dirCanonical = dir.getCanonicalFile();
            File targetCanonical = child.getCanonicalFile();
            System.out.println(targetCanonical);
            for(File parent = targetCanonical.getParentFile(); parent != null; parent = parent.getParentFile()) {
                if (dirCanonical.equals(parent)) {
                    return true;
                }
            }
        } catch (IOException var5) {
            System.out.println(var5);
        }

        return false;
    }

public static void main(String[] args) {

    File a_dir = new File("/WEB-INF/packages");
    File a_child = new File("/WEB-INF/packages/../../../../../../web.xml");
    System.out.println(isChildOf(a_dir, a_child));
}


}

另外后面的限定了路径穿越的路径的代码还没有跟。

这个危害程度有一定的争议,总之实际影响依具体情况而定,最敏感的文件应该是LDAP or Crowd credentials ( crowd.properties, atlassian-user.xml),如果都没有,那么这个漏洞无法立即被攻击者利用。

To determine the impact of this vulnerability, please check your /confluence/WEB-INF directory and its subdirectories (especially /classes/) for any files that contain LDAP or Crowd credentials ( crowd.properties, atlassian-user.xml), or files that contain any other sensitive data that an administrator may have put in this directory. If nothing is found, this vulnerability is not immediately exploitable.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值