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

path traversal vulnerability #3281

Closed
vinnitu opened this issue May 6, 2021 · 3 comments · Fixed by #3321
Closed

path traversal vulnerability #3281

vinnitu opened this issue May 6, 2021 · 3 comments · Fixed by #3321
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@vinnitu
Copy link

vinnitu commented May 6, 2021

Hi, how to prevent such behavior?

npm init @vitejs/app vite-path-traversal-vulnerability
cd vite-path-traversal-vulnerability
npm i
npm run dev

what do you see in response ?

curl http://localhost:3000/etc/passwd
@ygj6
Copy link
Member

ygj6 commented May 6, 2021

Hi @vinnitu , this URL shows the demo page.
Do you mean that 404 is not returned when there is no url path?

@vinnitu
Copy link
Author

vinnitu commented May 6, 2021

I mean it shows me contain passwd file.

underfin added a commit that referenced this issue May 9, 2021
@underfin underfin added bug p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels May 9, 2021
@antfu
Copy link
Member

antfu commented May 9, 2021

Duplicated of #2820, where it fix is merged in #2850, which will be released in next monday

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants