Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 25 guests online
EH-Net Donations

Enter Amount:
$

Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Forum arrow Featuresarrow Skillzarrow Examplesarrow Example 1: Runner-Up Entry #3 - Camillo Särs
Ethical Hacker Community Forums
December 02, 2008, 03:00:40 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: ChicagoCon 2-Day Ethical Hacking Conference with MS Blue Hats Oct 31 - Nov 1. Tickets Only $100! www.chicagocon.com/content/view/103/51/
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Example 1: Runner-Up Entry #3 - Camillo Särs  (Read 1826 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 2380


Editor-In-Chief


View Profile WWW
« on: April 13, 2006, 12:34:02 PM »

Agent Smith quickly determined what really had happened. He mentally filed Nick into his "dangerous, creative fools" category, and told his agents to be really careful when watching Nick.

Agent Smith immediately recognized the first set of user input:

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

Here the attacker probed a vulnerable ASP application called "irsfile" by launching the "ping" command against ip address 209.171.43.28. This was done using a technique called "SQL injection", and even more connivingly, by using it to actually launch a command in a cmd prompt. Apparently the username "test" had some privileges it should not have.

As the attacker continued, the probe evidently caused ICMP ping packets to be sent to that ip address. Agent Smith immediately dispatched Special Agent Dogbert to trace down the address and submit the moronic attacker to the disabling inquiries only Special Consultant Agents such as Dogbert can mount. Leaving this clear traces would not be tolerated. Good thing Nick didn't grasp the situation.

The following line was interesting:

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

Here the attacker did a UNION of user names and rows in the system objects table, to retrieve a result table which showed which user names had what privileges in the database. Once the attacker had this table, his next task would be to pick a user with sufficient privileges to retrieve further information from the database. "test" apparently did not have all the necessary privileges, but just enough for the attacker to elevate his privileges.

And truly, the attacker seems to have found username "Trinity" with the desired privileges:

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

Here the attacker used the "Trinity" user name to retrieve the phone numbers of taxpayers with the last name "Anderson". This would eventually reveal the phone number of Neo, something that Agent Smith knew very well. After all, hadn't he ordered Novice Agent Dilbert to perform the attack in an attempt
to track down Neo? Fortunately Nick was to much of an idiot to be a threat in this situation. It was well that he was hunting religious Chinese spys in his union.
Logged

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

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.031 seconds with 25 queries.
 
Sponsors

cwnp_moto__120x90.gif

Polls
During the most recent election, I:
 
Support EH-Net


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

 
         
Advertisement

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