All versions of package easy-static-server are vulnerable to Directory Traversal due to missing input sanitization and sandboxes being employed to the req.url user input that is passed to the server code.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://security.snyk.io/vuln/SNYK-JS-EASYSTATICSERVER-3153539 | third party advisory exploit |
https://github.com/cunjieliu/easyServer/blob/master/index.js%23L27 | third party advisory broken link |
https://gist.github.com/lirantal/fdfbe26561788c8194a54bf6d31772c9 | third party advisory exploit |