[augustine] Static Web Server Directory Traversal via Crafted GET Request
The augustine web server package allows directory traversal via a crafted GET request, enabling an attacker to request arbitrary files outside the web root. An attacker could read system files such as /etc/passwd.
- Triaged in 27 hours
- Fixed in 46 days
- Disclosed after 46 days
Summary by the researcher
A crafted GET request can be leveraged to traverse the directory structure of a host using the augustine web server package, and request arbitrary files outside of the specified web root.
The report
Hi,
A crafted GET request can be leveraged to traverse the directory structure of a host using the augustine web server package, and request arbitrary files outside of the specified web root.
Module specification
- Name: augustine
- Version: 0.2.3 (latest release build)
Verified conditions
- Test server: Ubuntu 16.04 LTS
- cURL package:
curl 7.55.1 (2017-08-14)
Proof of concept
Please globally install the augustine package and cd to a chosen directory (in this case, /root) on your test server. Next, run augustine --port 8081 to start serving from this location.
Substituting the <server-IP> value as appropriate, the following cURL request can be used to demonstrate this vulnerability by requesting the target /etc/passwd file. Due to the nature of this traversal, browsing to the below URL will also display the passwd file:
curl "http://<server-IP>:8081//etc/passwd"
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
[...]
Thanks,
Yasin
Impact
An adversary can leverage this vulnerability to request arbitrary files from the target host, which may include application source code or system files.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server does not properly sanitise or normalise the requested file path, allowing directory traversal sequences to escape the web root.
Impact
An adversary can leverage this vulnerability to request arbitrary files from the target host, which may include application source code or system files.
What the attacker needed
Augustine package installed and running; network access to the server
How it was found
- Install the augustine package globally and change to a chosen directory (e.g., /root).
- Start the server with augustine --port 8081.
- Send a crafted GET request to the server, such as requesting //etc/passwd.
- Observe that the contents of /etc/passwd are returned.
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 report has not been written yet. The Original tab links to the source.
A web server is supposed to only serve files from a specific folder (the web root). This one can be tricked into serving files from anywhere on the computer, like system files, by using a special URL. That means someone could read sensitive files they shouldn't have access to.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.