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

Pre-check the file path before disk access #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bhelx
Copy link

@bhelx bhelx commented Aug 12, 2024

Check that the path is valid to make sure that's it's not being manipulated.

Check that the path is valid to make sure that's it's not being
manipulated.
@bhelx bhelx requested a review from nilslice August 12, 2024 16:32
@bhelx
Copy link
Author

bhelx commented Aug 12, 2024

I tested this by running the server but not 100% sure on it. do we need to merge into other branches? Don't need this code exactly btw, I think just having a comment "don't do this" would also work.

@nilslice
Copy link
Member

I think it would need to go into the other branches... but I also don't feel too worried about this being left unchecked. Maybe we should instead add some disclaimer in the README to consider this demoware and production-readiness needs to be considered in all of the server and example wasm code used.

Your call though! Thanks for looking into this.

@nilslice
Copy link
Member

I think if we really want to do this, it needs to be applied to all the other branches (which are incremental steps through the guide)

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

Successfully merging this pull request may close these issues.

2 participants