Apache Axis Vulnerability Introduction
The default StockQuoteService.jws in Apache Axis makes an HTTP request to an expired domain (www.xmltoday.com) and follows redirects, allowing an attacker who controls that domain or performs a man-in-the-middle attack to redirect the request to a localhost administrative endpoint and execute code. The vulnerability is CVE-2019-0227.
rhinosecuritylabs.com
Published on rhinosecuritylabs.com
Apache Axis™ is a Simple Object Access Protocol (SOAP) engine. During a recent red team engagement we came across an install of an old version of Apache Axis, version 1.4.
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
The default StockQuoteService.jws makes an HTTP request to a hard-coded external domain and follows redirects, and Axis treats requests from localhost as administrative, so controlling the domain or intercepting traffic allows redirecting to a localhost admin endpoint.
Impact
An attacker on the same network could perform a man-in-the-middle attack to redirect the request and execute code on the Axis server; the researchers also purchased the domain to prevent internet-based exploitation, but internal networks remain vulnerable.
What the attacker needed
Attacker on same network as Axis server; ability to ARP poison or control the expired domain
The fix
The fix is to delete the StockQuoteService.jws from the Axis root directory and ensure that libraries or services do not perform HTTP requests or allow users to initiate them; Apache applied an SSRF patch.
How it was found
- ARP poison the targeted Axis server.
- Redirect any HTTP traffic to your own web server.
- Redirect to the specially crafted localhost URL which launches a service in Axis.
- Trigger the HTTP request to redirect with a request to “StockQuoteService.jws”
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 Axis is a server program that helps different software talk to each other. A default example service on Axis fetched data from a website that no longer belonged to anyone, so the researchers bought that website and made it send the server to a special internal address that runs commands. This means an attacker could take over the server without needing a password.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.