Definition of Directory Traversal
Directory traversal is a form of HTTP exploit in which a hacker uses the software on a Web server to access data in a directory other than the server's root directory. If the attempt is successful, the hacker can view restricted files or even execute commands on the server.
How Directory Traversal impacts the Android O.S
Directory Traversal within Android, allows attackers to perpetrate a path traversal attack in the context of a user application and read/write files inside internal storage.
Android Directory Traversal attack Example
App Name:
ES File Explorer v3.2.4.1 - Path Traversal Vulnerability
Product & Service Introduction:
ES File Explorer is a free all-in-one including a file manager & application & tasks, support for online storage spaces (Dropbox, Google Drive, SkyDrive, Box.net, Sugarsync, Yandex, Amazon S3),
CVE-ID:
CVE-2015-1876
References (Source):
http://www.vulnerability-lab.com/get_content.php?id=1435
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-1876
Technical Details & Description:
A Path Traveral web vulnerability has been discovered in the official in the official ES File Explorer v3.2.4.1 mobile android web-application. The security vulnerability allows a remote attacker to unauthorized request local files and device system paths to compromise the application or device.
The vulnerability is located in the content://com.estrongs.files/system/
path request with the context. The vulnerability can be exploited by
local or remote attackers without user interaction. The attacker needs to replace the sdcard path request in the com.estrongs.files/system with a
malicious path request like ./etc/passwd ./etc/hosts and continues the request. The attack vector is located on the application-side of the service
and the request is http.
My Question
Although I understand what Directory Traversal is and how Directory Traversal can take place. I don't know what factors makes a selection of Android code vulnerable to such an attack.