Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 45 guests online
 
Advertisement

You are here: Home arrow Featuresarrow Skillzarrow Examplesarrow Example 1: Runner-Up Entry #3 - Camillo Särs
EH-Net
May 20, 2013, 02:40:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Example 1: Runner-Up Entry #3 - Camillo Särs  (Read 5401 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 4165


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, CSTA, Security+ SME
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.064 seconds with 25 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

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