Vulnerability
Geode Issue
- [x] I confirm that this bug is NOT related to a mod but directly to Geode Loader itself.
Platform
Windows
SDK commit
94c1226
Geode Version
4.7.0
Mods Installed
My test mod
Expected Behavior
I found a vulnerability. I once joked with my friends that I made a mod for Geode and it stole data from your computer, but I wondered how possible it is in practice. I copied the Example Mod from the GitHub repository, and in the button click handler I added the ShellExecuteA function and passed notepad.exe there. I compiled, ran it, and when I clicked the button, Notepad opened. This is simply a huge security threat, since instead of Notepad, I could put some malicious code, and it would be executed without any problems. Below I will attach an example of such a mod, as well as its source code. Mod source ZIP and demonstration
Actual Behavior
...
Steps to Reproduce
...
Additional Information
...
this sort of "vulnerability" is usually considered to be user error
unfortunately, geode doesn't run mods under a sandbox (has heavy performance implications) so it is up to the user to verify that the mods they install are safe. mods on the official index have been verified to not be performing malicious behavior, but trust that at your own risk obviously
if you want to propose designs for a sandbox, you're welcome to do so 🙂 you can even make a mod showing it off if you want... it's something we've wanted to do but nobody's come up with good ideas for it
fork found in the kitchen.
yea thats why we have an index verificafion step, this mod would not be allowed onto the geode index and would get you banned immediately LOL.