Exploitation of Openfire CVE-2023-32315
A path traversal vulnerability in Openfire's admin console allows an unauthenticated attacker to reach administrative pages, such as plugin-admin.jsp, and upload a malicious plugin that provides remote code execution. The authors demonstrate a user-less exploit that avoids creating an admin account and leaves no trace in the security audit log.
Published on vulncheck.com
CVE-2023-32315 is a path traversal vulnerability affecting the Openfire admin console. Openfire is a well-known open-source chat server, and according to the current maintainers, Ignite Realtime, the server software has been downloaded almost 9 million times.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated attacker could upload a malicious plugin and execute arbitrary commands on the server, potentially pivoting inward and hiding their activity, though the exploit may leave traces in openfire.log and the plugin itself.
What the attacker needed
Openfire version 3.10.0 or later; Network access to the admin console; No authentication required
The fix
The vulnerability was fixed in Openfire versions 4.6.8, 4.7.5, and 4.8.0.
How it was found
- Extract a JSESSIONID and CSRF token from the plugin-admin.jsp page via the traversal.
- Upload a malicious plugin JAR via a POST request to plugin-admin.jsp using the traversal.
- Access the uploaded webshell through the traversal without authentication.
- Execute arbitrary commands via the webshell, which returns output in an HTTP header.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Openfire is a chat server with a web-based admin console. A path traversal flaw lets someone bypass the login and reach admin-only pages. By uploading a malicious plugin, the attacker can run commands on the server without ever creating an account.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.