OSV 1.4.0 · github-reviewed · 修改于 2021-09-07 23:24
发布时间
2019-06-05 17:48
GitHub 审查时间
2020-06-17 05:24
NVD 发布时间
—
源文件
advisories/github-reviewed/2019/06/GHSA-886v-mm6p-4m66/GHSA-886v-mm6p-4m66.json
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.
This has been fixed since version 0.2019.416 and higher.
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.
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.