Skip to content
SSRF Write-up Intermediate

Vulnerabilities in the Openfire Admin Console

Two vulnerabilities in Openfire's admin console: an unauthenticated SSRF that lets an attacker make the server send arbitrary HTTP GET requests to internal services and return their full responses, and a path traversal on Windows that requires an admin account and allows reading arbitrary files. The SSRF can expose internal web services; the file read can disclose configuration files.

swarm.ptsecurity.com

Published on swarm.ptsecurity.com

Openfire is a Jabber server supported by Ignite Realtime. It’s a cross-platform Java application, which positions itself as a platform for medium-sized enterprises to control internal communications and make instant messaging easier.

The author, on swarm.ptsecurity.com

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

Root cause

Likely missing validation of user-supplied input: the host parameter is used to build a URL without restrictions, and the path is split on '/' without blocking backslashes, allowing traversal on Windows.

Impact

An unauthenticated attacker could use the SSRF to reach internal web services and read their responses; the file-read bug could let an authenticated administrator read arbitrary files on Windows installations.

What the attacker needed

Network access to the admin console; for file read: admin account and Windows

The fix

The issues were addressed in the main code line and fixed in version 4.4.3; the author recommends validating parameters before sensitive operations and restricting access to admin interfaces.

How it was found

  1. Send a GET request to the getFavicon endpoint with a host parameter pointing at an internal address and file.
  2. Observe the server fetch that URL and return the response body.
  3. Log in to the server as administrator to obtain a session cookie.
  4. Send a GET request to the plugins/search path containing backslash traversal sequences to reach a configuration file.
  5. Observe the server return the contents of the targeted file.

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 admin page. One bug lets anyone who can reach that page tell the server to fetch a web address of their choosing, even internal ones, and show the result back to them. Another bug, only on Windows and only for someone already logged in as admin, lets them use a crafted web address to read files on the server.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.