IBM Datapower Exploit CVE-2020-5014
The IBM DataPower management WebGUI's 'Send a Test Message' feature allowed authenticated users to make requests to localhost services, enabling SSRF. Combined with HTTP request smuggling and a hardcoded Redis password, this led to remote code execution on the underlying Linux host.
Published on tomcope.com
During some personal security research I discovered a SSRF vulnerability in IBM Datapower which could then be upgraded to RCE. The practical upshot of which is with an authenticated session to the Datapower management WebGUI it was possible to execute code on the underlying Linux host inside the appliance.
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 'Send a Test Message' feature did not restrict destinations, allowing requests to localhost, and Redis used a hardcoded password.
Impact
An attacker with an authenticated session could execute code on the underlying Linux host, potentially extracting private keys or using the device as a network backdoor.
What the attacker needed
Authenticated session to DataPower WebGUI
The fix
IBM confirmed a fix and provided a security bulletin.
How it was found
- Authenticate to the DataPower management WebGUI with a standard or administrator user.
- Use the 'Send a Test Message' function to send a request to localhost.
- Combine with HTTP request smuggling to send commands to Redis.
- Use the hardcoded Redis password to authenticate.
- Exploit a pre-existing Redis RCE vulnerability to execute code.
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 management interface had a feature to test connections to other services. An attacker with a login could abuse it to reach internal services like Redis, which is a database. Because Redis had a hardcoded password and a known way to run commands, the attacker could execute code on the appliance.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.