CVE-2018-1000850: Input Validation
A directory traversal vulnerability was found in retrofit that can allow for resource manipulation. An attacker can add or remove resources which should not be available to him.
References:
https://github.com/square/retrofit/blob/master/CHANGELOG.md https://github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982 https://ihacktoprotect.com/post/retrofit-path-traversal/
Other sources
A flaw was found in Retrofit, where it allowed directory traversal via its RequestBuilder class. An attacker could use this flaw to access information or commands outside of its set permissions.
Square Retrofit could allow a remote attacker to traverse directories on the system, caused by improper input validation by the RequestBuilder class. An attacker could send a specially-crafted URL request to containing "dot dot" sequences (/../) to add or delete arbitrary files on the system.
— IBM
Square Retrofit version versions from (including) 2.0 and 2.5.0 (excluding) contains a Directory Traversal vulnerability in RequestBuilder class, method addPathParameter that can result in By manipulating the URL an attacker could add or delete resources otherwise unavailable to her.. This attack appear to be exploitable via An attacker should have access to an encoded path parameter on POST, PUT or DELETE request.. This vulnerability appears to have been fixed in 2.5.0 and later.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2018-1000850?
CVE-2018-1000850 is a vulnerability in Square Retrofit that allows directory traversal via its RequestBuilder class.
What is the severity of CVE-2018-1000850?
The severity of CVE-2018-1000850 is high, with a CVSS score of 8.1.
How does CVE-2018-1000850 work?
CVE-2018-1000850 allows an attacker to manipulate the URL in Retrofit's RequestBuilder class to add or delete resources that are otherwise unavailable.
Which versions of Retrofit are affected by CVE-2018-1000850?
Retrofit versions from 2.0 to (excluding) 2.5.0 are affected by CVE-2018-1000850.
How can I fix CVE-2018-1000850?
To fix CVE-2018-1000850, update to Retrofit version 2.5.0 or later.