ProfileApp lets you save settings as JSON, and merges them into your user object. Your account has no isAdmin field — but the admin check still reads user.isAdmin. In JavaScript, if an object does not have a property, the lookup walks up the prototype chain. Pollute the prototype and the check passes for everyone. Lab at a glance: Intermediate · 90 XP · about 15 minutes · runs in your browser, no signup or setup. Try it yourself first; the…
No comments:
Post a Comment