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

Add checks to the saving and loading demo to prevent deserializing Objects #939

Closed
wants to merge 1 commit into from

Conversation

jtnicholl
Copy link
Contributor

@jtnicholl jtnicholl commented Jul 26, 2023

ConfigFile's parse/load methods and str_to_var can deserialize objects, and their _init methods execute immediately. This is something I've seen discussed online, but it's not well documented.
Checking that the text does not contain "Object(" before parsing is an easy way to prevent this and avoid malicious code.

@Calinou Calinou added the bug label Jul 26, 2023
@jtnicholl
Copy link
Contributor Author

I decided that I don't believe a check like this should be necessary and opened godotengine/godot#80562 instead.
If that issue is closed as not planned I'll reopen.

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

Successfully merging this pull request may close these issues.

3 participants