Skip to content
XSS Write-up Intermediate

CVE-2016-0782 writeup

Apache ActiveMQ's administrator web console was vulnerable to stored cross-site scripting through queue and connection names, and an unauthenticated attacker could use the Jolokia API to dump the Java heap and extract the administrator's Basic authentication password. This allowed full access to ActiveMQ data such as queues, topics, and messages.

httpsonly Follow

Published on httpsonly.blogspot.com

The original lives on httpsonly.blogspot.com

We do not hold its text, 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 the web console failed to properly encode user-supplied names in HTML output, and the Jolokia API was exposed without authentication, allowing heap dumps to be written to web-accessible directories.

Impact

An unauthenticated attacker could obtain the administrator's password and access all ActiveMQ data, including queues, topics, and messages.

What the attacker needed

Open STOMP port; administrator visits crafted page or link; Jolokia API accessible

How it was found

  1. Create a new message queue with a malicious name containing script.
  2. Push a message into that queue.
  3. Access the message through the ActiveMQ Web Console, triggering the script.
  4. Use the script to call the Jolokia API and obtain the server's full path.
  5. Trigger a heap dump and save it into the webapps directory.
  6. Download and parse the heap dump to find the administrator's Basic authentication password.

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.

The web page used by administrators to manage ActiveMQ did not safely handle names given to queues or connections, so an attacker could insert malicious code that runs in the administrator's browser. Separately, an API allowed anyone to save a copy of the server's memory to a file, and that file contained the administrator's password. Together, an attacker could take over the management console without ever logging in.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by httpsonly

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.