[http-live-simulator] Path traversal vulnerability
The http-live-simulator module version 1.0.6 is vulnerable to path traversal, allowing an attacker to read arbitrary files on the server's disk. This is a bypass of a previous fix for the same issue in version 1.0.5.
- Triaged in 14 days
- Fixed in 3 months
- Disclosed after 3 months
Summary by the program
vulnerable_versions: <=1.0.6 patched_versions: >=1.0.7
The report
Module
module name: http-live-simulator version: 1.0.6 npm page: https://www.npmjs.com/package/http-live-simulator
Description
this vulnerability is a bypass for the one found in this report in version 1.0.5
Steps To Reproduce:
1- Install the module : npm install -g http-live-simulator
2- Run the server : http-live
3- Attempt to access a file from outside that project's directory, such as curl --path-as-is http://localhost:8080//../../../../etc/passwd
The bypass
adding an extra / after the URL like :
http://localhost:8080//../../../../etc/passwd
mention the double slashes after the port number
Impact
path traversal vulnerability leading to read access in arbitrary files on disk
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
What the attacker needed
Http-live-simulator version 1.0.6 installed; server running
The fix
The vulnerability was fixed in version 1.0.7.
How it was found
- Install the module globally using npm.
- Run the server with the http-live command.
- Attempt to access a file outside the project directory using a crafted URL with double slashes and directory traversal.
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.
This report describes a flaw in a small web server tool that lets someone trick it into showing files it should not. By putting extra slashes in the web address, an attacker can ask for files outside the folder the server is supposed to share, like system password files. This is called path traversal.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.