[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.
Originally disclosed on HackerOne
- 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 takeapeeknode node_modules/takeapeek/dist/bin.jscurl --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

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
- Install the takeapeek package using npm.
- Run the server binary.
- 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.