#VU18599 Path traversal in serve


Published: 2019-05-24 | Updated: 2019-05-27

Vulnerability identifier: #VU18599

Vulnerability risk: Medium

CVSSv3.1: 6.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-22

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
serve
Web applications / JS libraries

Vendor: Zeit

Description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to improper input validation of user-supplied data passed via URI. A remote attacker can send a specially crafted HTTP request and read arbitrary files on the system.

Example:

http://[host]/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd

Mitigation
Install updates from vendor's website.

Vulnerable software versions

serve: 0.1.0 - 10.1.2


External links
http://hackerone.com/reports/510043


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability