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

[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.

3la2kb Follow

Originally disclosed on HackerOne

High 7.5 View original
  • 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

The original report as published on HackerOne, by 3la2kb. 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

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

  1. Install the module globally using npm.
  2. Run the server with the http-live command.
  3. 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.

More by 3la2kb

View all

2 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.