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

[Security] There are still various ways to escape the eval limits #465

Open
Alan-Liang opened this issue May 29, 2020 · 5 comments
Open

Comments

@Alan-Liang
Copy link

For example:

@pppery
Copy link
Contributor

pppery commented Jul 17, 2020

Overriding onExit
Should be fixed by #464 (which I wrote before seeing this issue, on general security grounds.)

@pppery
Copy link
Contributor

pppery commented Jul 17, 2020

FYI I personally think the bug you are exploiting in the "Overriding onExit" example is that you are allowed to close the startLevel function and run top level code at all, and not that you can then do nefarious things outside that function, but it's very unclear how much creativity of that sort should be allowed (this is a game focused on hacking the world after all) and how much should be forbidden.

@Alan-Liang
Copy link
Author

Overriding onExit
Should be fixed by #464 (which I wrote before seeing this issue, on general security grounds.)

Not really... it still works: https://gist.github.com/Untrusted-Game/455bb325f49ddeb5c7dccda77f2709fd

@pppery
Copy link
Contributor

pppery commented Jul 17, 2020

#464 hasn't been merged yet. I'm unable to reproduce the "Overriding onExit" trick if I apply that patch locally and test your code (note that it silently fails: the game doesn't produce a validation error of any sort, but the onExit override doesn't do anything and you still need to have the computer to exit the level.)

@Alan-Liang
Copy link
Author

Alan-Liang commented Jul 18, 2020 via email

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

No branches or pull requests

2 participants