Skip to content

Instantly share code, notes, and snippets.

@iampava
Last active August 2, 2017 16:45
Show Gist options
  • Save iampava/df74827e97610e8e8d1e94f2ba49023c to your computer and use it in GitHub Desktop.
Save iampava/df74827e97610e8e8d1e94f2ba49023c to your computer and use it in GitHub Desktop.
Hacking Javascript |
function PiggyBank(){
let money = [];
return {
store: function(index, value){
money[index] = value;
},
push: function(value){
money[money.length] = value; // with no function call, no vulnerability
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment