Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory traversal vulnerability for static file #157

Open
leamlidara opened this issue May 9, 2022 · 1 comment
Open

Directory traversal vulnerability for static file #157

leamlidara opened this issue May 9, 2022 · 1 comment

Comments

@leamlidara
Copy link

This is my code
server.staticFiles('/pf-img/*', 'profile');

and this is my url
http://127.0.0.1:1337/pf-img/..%2Fdaplogfile.txt
http://127.0.0.1:1337/pf-img/..%2F..%2Fdatabase.sql

both files are existed and accessible on my PC.

@leamlidara leamlidara changed the title Directory traversal attack for static file Directory traversal vulnerability for static file May 9, 2022
@lexia-boris
Copy link

You do know that you specify the folder? if you don't want those files accessible remove them from that folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants