|Written by Lucy Black|
|Sunday, 06 October 2013|
The idea behind Alert(1) And Win is simple. You are shown a function which generates some code using an input parameter. All you have to to is subvert the code so that you execute an Alert(1) function call.
In a "normal" program calling Alert, is not behavior that the original programmer intended as if you can call Alert you can call just about anything!
Here it's a fun challenge to help you hone your coding skills.
There is a leaderboard and there are comments which can give the game away. Don't go below the "Here be spoilers" warning if you want to have an honest attempt. An added complication is that you are challenged to solve the problem in the smallest number of characters.
Some players are thinking outside the box and attempting to hack the leaderboard or some other aspect of the site. Well I suppose if you paint a target on your chest what else can you you expect.?
As a serious point, the challenge does help you think like an attacker and it does demonstrate that accepting any sort of code input is risky.
So if you have some time to spare give it a try - but be warned it could take more time than you could possibly imagine....
To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin, or sign up for our weekly newsletter.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Sunday, 06 October 2013 )|