Advisory

GHSA-m4vv-p6fq-jhqp

Also known as: None

Summary

Directory Traversal in @vivaxy/here

Details

The @vivaxy/here module is a small web server that serves files with the process' working directory acting as the web root.

It is vulnerable to a directory traversal attack.

This means that files on the local file system which exist outside of the web root may be disclosed to an attacker. This might include confidential files.

Mitigating Factors:
If the node process is run as a user with very limited filesystem permissions, there is significantly less risk of exposing confidential/private information.

Proof of Concept:

curl "http://${SERVER_IP}:${SERVER_PORT}/..%2f..%2fetc/passwd"

Recommendation

Run npm i @vivaxy/here to install the latest version that addresses this vulnerability.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-01 19:04 UTC
Modified
2021-09-23 21:48 UTC

Affected packages and fixes

@vivaxy/here

npm · All systems

Affected

  • introduced 0, fixed 3.2.2 (semver)

Fixed versions

3.2.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences