Comments (5)
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.
from untrusted.
Overriding
onExit
Should be fixed by #464 (which I wrote before seeing this issue, on general security grounds.)
from untrusted.
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
from untrusted.
#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.)
from untrusted.
from untrusted.
Related Issues (20)
- boss fight and _destroy() from a timer HOT 1
- Level 14 placeObject HOT 1
- Solve level gists give 404 error HOT 1
- ReferenceError: map is not defined on most maps
- Publishing solutions for mods' levels
- inTheDesert.js not triggering anything on exit HOT 1
- Can bypass robot mazes entirely
- Can bypass everything by HOT 1
- Map object is enumerable HOT 4
- Color changes, can't pass red gate (lvl7) HOT 1
- moveToward() does not moves "toward" HOT 1
- I can console.log by using this HOT 1
- Boss Level not clear what to do HOT 6
- Reset multiple times in short period HOT 1
- (lack of) mobile support? HOT 1
- how to reset the level? HOT 2
- Bonus level 02_theEmptyRoom.jsx Trivial Solution (spoiler?) HOT 2
- Bonus Level AB_3_BoulderMadness.jsx HOT 1
- Game won't load properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from untrusted.