The issue
The Apache Olingo client library did not validate that a URL in the Location header of a 202 response belonged to the OData server. A malicious server could therefore trick the client into sending GET or DELETE requests to arbitrary URLs, potentially reaching internal resources.
medium.com
Published on medium.com
Some time ago I wrote about unsafe deserialization and DoS vulnerabilities I’ve discovered in Apache Olingo. This post describes one more issue in the library.
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 client library trusted the Location header from the server and used it to build requests without verifying that the scheme, host and port matched the original server.
Impact
A malicious or compromised OData server could cause the client to send GET or DELETE requests to arbitrary URLs, possibly reaching private resources accessible to the client but not the server; the author notes exploitation may be difficult.
What the attacker needed
Application uses AsyncRequestWrapperImpl or…; client connects to an untrusted OData server; attacker can control or modify server responses
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.
When a client asks a server to create something, the server may reply 'not ready yet' and include a web address to check later. The library followed that address without checking it was the same server, so a bad server could point it at something private. This is called server-side request forgery (SSRF): making a program fetch a URL the attacker chooses.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.