## https://sploitus.com/exploit?id=87EC4CB0-B28B-55D2-A896-FE34F92557F7
<h1 style="font-size:10vw" align="left">CVE-2023-32315 - Ignite Realtime Openfire Path Traversal Vulnerability</h1>
<img src="https://img.shields.io/badge/CVSS:3.1%20Score%20-7.5 HIGH-red"> [](https://www.python.org/) <img src="https://img.shields.io/badge/Maintained%3F-Yes-96c40f">
******
â ď¸ *For educational and authorized security research purposes only*
## Original Exploit Authors
Very grateful to the original PoC author [phith0n](https://github.com/phith0n) and [K3ysTr0K3R](https://github.com/K3ysTr0K3R)
## Description
Openfire is an XMPP server licensed under the Open Source Apache License. Openfire's administrative console, a web-based application, was found to be vulnerable to a path traversal attack via the setup environment. This permitted an unauthenticated user to use the unauthenticated Openfire Setup Environment in an already configured Openfire environment to access restricted pages in the Openfire Admin Console reserved for administrative users. This vulnerability affects all versions of Openfire that have been released since April 2015, starting with version 3.10.0. The problem has been patched in Openfire release 4.7.5 and 4.6.8, and further improvements will be included in the yet-to-be released first version on the 4.8 branch (which is expected to be version 4.8.0). Users are advised to upgrade. If an Openfire upgrade isnât available for a specific release, or isnât quickly actionable, users may see the linked github advisory (GHSA-gw42-f939-fhvm) for mitigation advice.
******
## Step Guides
1. First, clone the repository
```bash
git clone https://github.com/asepsaepdin/CVE-2023-32315.git
```
2. Change directory
```bash
cd CVE-2023-32315
```
3. Let the container spin up
```bash
docker compose up
```
4. Run the python script `CVE-2023-32315.py` to exploit the host `http://127.0.0.1:9090`
```bash
python3 CVE-2023-32315.py -u http://localhost:9090
```
5. Then log in to the admin console with this account, and you can see that hugme is already an administrator.
6. Go to tab plugin > upload plugin `openfire-management-tool-plugin.jar`
7. Go to tab server > server settings > Management tool
8. Access websehll with password "123"
9. Go to âsystem commandâ and utilize as if itâs the command line, only use one command at a time
******
## Credits
- https://github.com/miko550/CVE-2023-32315
- https://github.com/vulhub/vulhub/tree/master/openfire/CVE-2023-32315
- https://github.com/K3ysTr0K3R/CVE-2023-32315-EXPLOIT
- https://nvd.nist.gov/vuln/detail/cve-2023-32315