I would like to report Path Traversal in simplehttpserver. It allows to list any file in another folder of web root.
module name: simplehttpserverversion:v0.2.1npm page: https://www.npmjs.com/package/simplehttpserver
‘simpehttpserver’ is an simple imitation of python’s SimpleHTTPServer and is intended for testing, development and debugging purposes
[319] downloads in the last week
simpehttpserver is simply get the path name of url and add it to the web root.If there is a symlink file in the directory. You can access files outside the web root directory.
create symlink file
$ ln -s …/…/ symdir
install simplehttpserver
$ npm install simplehttpserver -g
start program
$ simplehttpserver ./
{F340863}
Disable symlink file access in webserver.
Configuration I’ve used to find this vulnerability:
macos 10.13.6
nodejs v10.9.0
npm 6.4.1
chrome 68.0.3440.106
This vulnerability allows malicious user to list file in the folder. This might expose vectors to attack system with Remote Code Execution, reveals files with usernames and passwords and many other possibilites.