-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add security warning to README and lib.rs doc #40
Comments
I would accept a pull request that added a warning. |
Hi tinyfiledialogs rejects ' " ` and generate a warning accordingly. You should update to the latest version 3.15 on sourceforge. edit: I have just also added a warning at the beginning of all the files in v3.15.1 |
Have created #41
Ah you are right. But the function But I am not sure if there might be other characters which can also cause problems. Maybe also related is native-toolkit/libtinyfiledialogs#5 (not sure if that is still relevant though).
Thanks! |
quoteDetectedW is only on windows and ` has only an effect in Unix shells. |
Also @jdm and @vareille, sorry if this GitHub issue made you feel pressured to add such a security notice. That was not my intention. To me it seemed tinyfiledialogs hadn't been designed to handle arbitrary input and that as seen by the other issues it does not handle some input very well, but that this just hadn't been explicitly mentioned in the README before. If my assessment was incorrect or if you think the security warning added by my pull request is misleading or too alarmist, feel free to adjust it or let me know how I should adjust it. My intention wasn't to harm the reputation of the Rust bindings project here or tinyfiledialogs in general. |
Due to tinyfiledialogs trying to support many operating systems and environments, and due to how it is implemented (generating command line strings, generating Python code, ...) it seems to be inherently prone to command injection vulnerabilities, see for example #19.
What do you therefore think about adding a security warning to the README of this project to the documentation of the
lib.rs
file?For example something like this:
My intention here is not fearmongering, but instead to indicate to users for which use cases tinyfiledialogs is suitable, and for which it might not.
(CC @vareille; is this information correct? Should there maybe also be a warning in the README of the upstream project?)
The text was updated successfully, but these errors were encountered: