award Does the MD5 check circumvent this issue?
DaveTheCoder It might not. I don't fully understand the security issue, but it sounds like the exploit could occur before ConfigFile has done the MD5 check.
I just did a test using Godot 4.2-dev6. I was able to duplicate the exploit described here:
https://github.com/godotengine/godot/issues/80562
But when I change the saved config file to encrypted, the loading of the file fails with the error ERR_FILE_UNRECOGNIZED or ERR_FILE_CORRUPT, depending on where I insert the text, and the "malicious code" does not run.
So it appears that the MD5 check does avoid the issue. That's assuming that the encryption password is not known. If you're able to discover the password, which is not impossible, then you could decrypt the file, add the malicious code, re-encrypt the modified file and run the app.