Skip to content
Path traversal Disclosed report Intermediate CVE-2018-3732

Path Traversal on Resolve-Path

Orange Tsai .8361) Follow

Originally disclosed on HackerOne

High 8.6 View original
  • Triaged in 4 days
  • Fixed in 7 days
  • Disclosed after 9 days

The author of resolve-path told me that I can submit this to here. The vulnerability already reported to the author and got a fixed!

Module

module name: resolve-path version: 1.3.3 npm page: https://www.npmjs.com/package/resolve-path

Description

Resolve a relative path against a root path with validation.

This module would protect against commons attacks like GET /../file.js which reaches outside the root folder.

Module Stats

Stats [8264] downloads in the last day [48226] downloads in the last week [210556] downloads in the last month

~[2526672] estimated downloads per year

Description

The library failed to process path like C:../../ on Windows

Steps To Reproduce:

JavaScript
require('resolve-path')("C:/windows/temp/", "C:../../")

Supporting Material/References:

  • Windows 10
  • Node v8.9.4
  • NPM 5.6.0

Wrap up

  • [Y] I contacted the maintainer to let him know
  • [N] I opened an issue in the related repository

Impact

This is a high-dependency library, for example: KoaJS is suffered from this vulnerability

[21086] downloads in the last day [113573] downloads in the last week [462543] downloads in the last month ~[5550516] estimated downloads per year

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

What is known

A high-severity path traversal bug in resolve-path, rated CVSS 8.6. HackerOne made it public on 22 February 2018 as CVE-2018-3732.

About Path traversal

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

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

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 Orange Tsai .8361)

View all

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