Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 19 guests and 2 members online
EH-Net Donations

Enter Amount:
$

Google Ads
ChicagoCon 2008s
chicagocon2008s_125x200.jpg
ChicagoCon 2008s
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Forum arrow Featuresarrow Skillzarrow Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.arrow Skillz Oct 07 Winning Entry - Technical
Ethical Hacker Community Forums
July 04, 2008, 09:14:36 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Podcasts and slide decks from ChicagoCon 2008s talks coming soon! Visit www.chicagocon.com.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Skillz Oct 07 Winning Entry - Technical  (Read 3236 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 2145


Editor-In-Chief


View Profile WWW
« on: December 04, 2007, 03:37:53 PM »

Dan Roberts

Quote
"Worst. Ethical. Hacker. Challenge. Ever."
Hacker Challenge Submission

Response by: Dan Roberts

Stolen customer records


At 19:03:58, the host 195.228.240.177 began harvesting customer information by calling the userreport.pl program with Lynx for each customer record specified by the uid parameter in the HTTP GET parameters.  71 requests were issued, 53 returned information (return code 200) and the remainder failed due to an internal server error (return code 500). 

The uid's are derived from pi (3.141592653589...), which I suppose one could call "less rational" since it is the best known irrational number.  The first uid is 141592, next is 653589, and so on.. the attacker simply had to try these numbers in sequence until he ran out of valid uid's.  The internal server errors were caused by the invalid uid's.  The hacker may have guessed Comic Book Guy's numbering scheme, since he all but gave it away in his response to Troy McClure's comment about the broken random number generator.

(There was also another clue to this, CBG had a "one million digits of PI" Firefox tab open while viewing Lisa's winning score - Kevin)

Impossible scores

Where does one begin?  First, the game trusts user input.. a cardinal sin.  In addition, the correct choice is coded into the webpage's JavaScript, so the user has only to look at the source for the answer.  What's worse is that the timer is coded on the client-side as well.  The attacker could either create his own HTML to submit with the correct answer and a zero value for TimeTaken.  Alternatively, he could use a proxy to intercept and alter the values in flight.

Bill Gates a mutant

The attacker utilized script injection on the comment page to replace the mutant image of UrukHai with a Bill Gates image.  The following script can be found under a posting by "Anonymous Coward" at 3:07:52 pm.  <script language="JavaScript"> document.MutantImage.src="http://www.lapooh.com/Mutant/gates2.gif";</script>

According to the log, the attacker came from 216.34.109.192.

How to fix it

1. Find a better way to produce uid's.. these should not be predictable, else this challenge demonstrates what can happen.

2. Implement game logic on the server side instead of placing it in the hands of the client.. and never ever trust user input.

3. Validate user input to avoid mischief such as the DOM-based XSS attack seen in the challenge.

Hidden message

Using the pass phrase "Frisky Dingo" with STOOLS (both clues left in the game comments), I was able to reveal the secret message inside gates2.gif:

Dear Comic Book Guy -
Your amateur coding skills, demonstrated by your buggy, non-secure web application, do not demonstrate the level of intellect we would expect from a member of the Springfield MENSA chapter.  We met and voted to give you one last chance to remain in the club.
By finding this message, you have demonstrated some skills, and may remain a member.  But remember, Our Kung Fu is the Best.

Principal Skinner, Dr. Hibbert, Lisa Simpson, Professor Frink, Lindsey Naegle.

Congrats from all of us at EH-Net,
Don
Logged

CISSP, MCSE, CEH, Security+ SME
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.032 seconds with 24 queries.
 
BackTrack2 VM w/ MSF3

Get it here NOW!

Polls
Best for daily desktop use:
 
Support EH-Net
chicagocon2008s_125x200.jpg
ChicagoCon 2008s


Support EH-Net by
Buying all of your
Amazon items using
the search bar above.

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!
Recent Forum Topics
Vote For EH-Net

progenic.com
Click here to Vote!

Sadikhov.com
Top IT Cert Sites

binarica.com
Binarica Logo

Add to Technorati Favorites
technorati fave

chicagocon2008s_125x200.jpg
ChicagoCon 2008s
 
         
Advertisement

© 2008 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.