CVE-2019–17555: DoS via Retry-After header in Apache Olingo
Apache Olingo's client code passed the value of the Retry-After header directly to Thread.sleep without any upper bound. A malicious OData server could return an extremely large value, causing the client's thread to sleep for a very long time and potentially leading to a denial-of-service condition.
medium.com
Published on medium.com
Apache Olingo is a Java library that implements the Open Data Protocol (OData). This protocol allows the creation and consumption of queryable and interoperable RESTful APIs in a simple way.
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 parsed the Retry-After header value as an integer and passed it directly to Thread.sleep without validating it against a maximum allowed delay.
Impact
A malicious OData server could cause the client's thread to sleep for an excessive time, potentially leading to a denial-of-service, though the text notes it may be difficult for an attacker to trick the client into talking to the malicious server.
What the attacker needed
Client connects to malicious OData server
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 might say 'not ready yet, check back later' and tell the client how many seconds to wait. The client trusted that number completely. A bad server could say 'wait a million seconds', and the client would freeze for that long, which is a denial-of-service: making a service unavailable by tying it up.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.