Patch2 isn't working, spoilers.
Possible Spoilers? I've tried the following:
7(inject): $id = addslashes($_GET['id']); 7(inject): $id = mysql_real_escape_string($_GET['id']); 7(inject): if (ereg("1+$", $_GET['id'])) $id = $_GET['id']; 11(xss): echo strip_tags($end);
No luck. It seems obvious that the problem is SQL Injection through $_GET['id']. I'm sure I'm getting it right but am just not entering the right string of text for whatever AI reads this stuff. Any suggestions?
0-9 ↩
I have a suggestion.. they should make the patch challenges more flexible trying to think of ALL the ways it COULD be fixed and accepting a multitude of answers. Most of them have an error that could be fixed on more than one line in several ways, and after trying tons of variations using different functions and tactics in different places I decided I don't want the points anymore as I got pissed off.