Skip to content
Path traversal Disclosed report Beginner CVE-2018-16473

[takeapeek] Path traversal allow to expose directory and files

The takeapeek static web server was vulnerable to path traversal, allowing an attacker to list directories and view files outside the intended web root. An attacker could access sensitive files on the server.

abdilahrf_ Follow

Originally disclosed on HackerOne

High 8.6 View original
  • Triaged in 6 days
  • Fixed in 2 months
  • Disclosed after 2 months

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

Module

module name: takeapeek version: 0.2.2 npm 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.

Attachments

takeapeek-pathtraversal.PNG
takeapeek-pathtraversal.PNG From the original on HackerOne

The original report as published on HackerOne, by abdilahrf_. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could list directories and read files outside the intended web root, potentially exposing sensitive information.

What the attacker needed

Takeapeek server running; network access to the server

How it was found

  1. Install the takeapeek package using npm.
  2. Run the server binary.
  3. Send a request with a path containing multiple '..' segments to the local server.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A static web server is meant to show only files inside a particular folder. Path traversal is when someone tricks the server into going up out of that folder using '..' in the address, like climbing a tree to peek into a neighbour's garden. Here the server did not stop this, so the attacker could see other folders and files on the computer.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by abdilahrf_

View all

5 more disclosed reports, best first.

More from Node.js third-party modules

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.