Lurker News
Back to discussion

Comment by asadlionpk

asadlionpk2 replies#
Thanks for pointing this out. Fixed this particular bug!
q3k1 reply#
You also need to report this to security@npmjs.com so they post an advisory [1] and mark the existing versions as vulnerable.

[1] - https://www.npmjs.com/advisories

Sephr2 replies#
Anyone, including yourself can do that.
cat1991 reply#
or, the person who should do it should do it and not rely on others to do their job for them?

Continue this thread — 1 reply

rarecoil#
Everyone's talking about it but nobody did it, so I did.
hombre_fatal1 reply#
A simpler fix might be to canonicalize (i.e. no "..") the public folder path and the requested file path and then ensure the public path is a prefix of the other.
Kalium#
Any fix also needs to be sure to resolve any symlinks before doing a prefix check.
the_mitsuhiko#
This fix does not even work on windows. You can still request data on a different drive.