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 2008f
chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Featuresarrow Skillzarrow Examplesarrow Example 1: Winning Entry #2 - Joe Klein
Ethical Hacker Community Forums
August 28, 2008, 09:25:13 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Registration Now Open for ChicagoCon 2008f Oct 27 - Nov 2! Visit www.chicagocon.com.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Example 1: Winning Entry #2 - Joe Klein  (Read 2228 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 2223


Editor-In-Chief


View Profile WWW
« on: April 13, 2006, 11:26:44 AM »

By Joe Klein, CISSP NSA-IAM

Years before, Trinity was browsing government sites and ran into the IRS site. She went to http://news.netcraft.com/ and entered in www.irs.gov to find what type of web server was used. She found that it was Microsoft IIS 5 server and last change date was 2000, before the "Trusted Microsoft" ad campaign was launched.

With a twinkle in her eyes, and a computer on her lap, she started looking for the one asp that would give her access to IRS records. Quickly jumping in to the advanced search features of goggle, typing in asp, entering the domain of "irs.gov", she found a list of the asp's on that server. Searching the list she found pay dirt, irsfile.asp.

Using the proxy features in AltaVista babble fish, she decides to see if the systems at the IRS were vulnerable to SQL injection. She looked at the source code of the webpage. After a short time, she realized that the HTML field name "username" field was required to do a search.

Knowing that an un-secured SQL server would allow execution of xp_cmdshell, she decided that, the best way to test for the vulnerability was to ping a system she know was up. That server, would be the server of the agency, where agent Smith worked.

Entered the command:

"irsfile.asp?username='test';+exec+master..xp_cmdshell+'ping+209.171.43.28';--"

She receives a result. Yes, she thought, this could be very good.

Further review of the irsfile.asp, she found the name of the database irs_dbase and name of the table she was looking for. No, she thought, it could not be true; the web developers included this information in the
html. She shook her head, laughed and went on.

Now it was time to find out the names of the fields, in the table, she quickly typed:

irsfile.asp?username='test'+UNION+SELECT+name,1,'1',1,'1'+FROM+irs_dbase..sysobjects+WHERE+xtype+=+'U';--

Yes, again this was just too easy.

The fields revealed themselves easily. Time for the payoff, she thought. Its time to find Neo! Knowing his last name was Anderson, she formed the SQL injection statement:

irsfile.asp?username='Trinity'+UNION+SELECT+phone_number+FROM+irs_dbase.
.account+WHERE+taxpayer_lastname+=+'Anderson';--

There it was, the phone number she was looking for, 555.555.6366.

Her job was done, but she had to tell someone. So she went on to #hack IRC and logged on with the handle Trinity. This name, she thought, would make people think it was a guy that perpetrated this hack.

With 100's of people listening in, she boldly stated, "I hacked the IRS D-Base". Suddenly she was disconnected. It was just a twist of fait, that a hacker called Neo was on-line and had read this strange posting.
« Last Edit: April 13, 2006, 12:37:53 PM by 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.5 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.036 seconds with 24 queries.
 

EH-Net's
2nd Annual
Tweener Party
 

Thanks all. Click HERE for details.

Polls
Best for daily desktop use:
 
Support EH-Net
chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f


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

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!
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

chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f
 
         
Advertisement

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