Skip to content
RCE Write-up Intermediate

Hidden in Plain Sight: Uncovering RCE on a Forgotten Axis2 Instance

An Apache Axis2 instance was left with default administrator credentials, letting the author log in to the admin panel. From there they uploaded a crafted service archive that ran commands on the server, giving remote code execution.

Domenico Veneziano Follow

Published on medium.com

While looking for interesting assets on one of Tryber’s bug bounty programs, I identified a simple yet impactful vulnerability. The affected asset, which could not be located via other well known methods like Google Dorkingor Wayback Machinelogs, was discovered using the SecurityTrails API.

Domenico Veneziano, on medium.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 the Axis2 admin console was deployed with its default credentials unchanged and reachable from the internet.

Impact

An attacker could run arbitrary commands on the server, leading to full compromise of that host; the Akamai WAF slowed discovery but did not stop the login or the upload.

What the attacker needed

Internet-reachable Axis2 admin page; default admin credentials unchanged; ability to upload .aar service archives

The fix

The admin console should be removed from public exposure and its default credentials changed, and the text does not say whether this was fixed.

How it was found

  1. Find a hidden host through the SecurityTrails API
  2. Brute-force known paths with a Nuclei template through rotating residential proxies to avoid the WAF
  3. Open the Axis2 login page and sign in with default credentials
  4. Work around broken session handling by managing cookies manually to reach the admin panel
  5. Upload a crafted .aar file that adds a service running arbitrary commands
  6. Confirm code execution by requesting the new service with a directory-listing command

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.

Apache Axis2 is a server program that hosts web services. Its admin panel still accepted the factory-default username and password, so anyone who found the page could log in as administrator. From there the author uploaded a small package that the server ran, which let them run their own commands on the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.