gun
Affected
- introduced
0, fixed0.2019.416(semver)
Fixed versions
0.2019.416
Fix
- Fixed version
0.2019.416npm install [email protected]
Advisory
Also known as: None
High severity vulnerability that affects gun
Urgent Upgrade
The static file server module included with GUN had a serious vulnerability:
curl --path-as-is allowed reads on any parent directory or files.This did not work via the browser or via curl without as-is option.
### Fixed
This has been fixed since version 0.2019.416 and higher.
### Who Was Effected?
Most NodeJS users who use the default setup, such as:
npm startnode examples/http.jsHeroku 1-click-deployDockerNowIf you have a custom NodeJS code then you are probably safe *unless* you have something like require('http').createServer(Gun.serve(__dirname)) in it.
If you have not upgraded, it is mandatory or else it is highly likely your environment variables and AWS (or other) keys could be leaked.
### Credit
It was reported and fixed by JK0N, but I did not understand the --path-as-is condition.
Joonas Loppi from function61 rediscovered it and explained the urgency to me to fix it.
High Basis: The source's own band: HIGH
0, fixed 0.2019.416 (semver)0.2019.416
0.2019.416npm install [email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0