-
Notifications
You must be signed in to change notification settings - Fork 8
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
DataStore Dump Filename #190
Conversation
- Filename for ds dump endpoint.
- Added change log file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems useful, but do we need to worry about special characters, like if I send someone a link to a dump url with filename=../im_in_ur_homedir.lol
what will a browser do?
Also users can choose any file name they like when downloading, so what's the the original problem this is trying to solve? Is this because the default is missing a file extension? |
This was for a Recombinant feature to dump CSVs for some admin purposes and data migrations. it just allowed for Recombinant to dump the file as And yeah, probably should strip out special characters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline characters are definitely bad in the filename. That would let an attacker insert their own headers in the response from the server.
- Simple validator for filename in DS dump.
feat(views): ds dump filename;