Free Republic
Browse · Search
News/Activism
Topics · Post Article

Skip to comments.

500 Thousand MS Web Servers Hacked
F-Secure via slashdot ^ | 04/25/08 | Patrik

Posted on 04/25/2008 9:14:27 AM PDT by Salo

There's another round of mass SQL injections going on which has infected hundreds of thousands of websites.

Performing a Google search results in over 510,000 modified pages.

As more and more websites are using database back-ends to make them faster and more dynamic, it also means that it's crucial to verify what information gets stored in or requested from those databases — especially if you allow users to upload content themselves which happens all the time in discussion forums, blogs, feedback forms, et cetera.

Unless that data is sanitized before it gets saved you can't control what the website will show to the users. This is what SQL injection is all about, exploiting weaknesses in these controls. In this case the injection code starts off like this (note, this is not the complete code):

(Excerpt) Read more at f-secure.com ...


TOPICS: Business/Economy; Technical
KEYWORDS: lowqualitycrap; microsoft; sqlinjection
Not good.
1 posted on 04/25/2008 9:14:28 AM PDT by Salo
[ Post Reply | Private Reply | View Replies]

To: ShadowAce; N3WBI3; adam_az

Security/tech pings.

Slashdot:

http://it.slashdot.org/it/08/04/25/1358234.shtml


2 posted on 04/25/2008 9:15:34 AM PDT by Salo
[ Post Reply | Private Reply | To 1 | View Replies]

To: Salo

I hope Free Repblic hsn;t been hcaked

Oh noes.


3 posted on 04/25/2008 9:27:20 AM PDT by agere_contra
[ Post Reply | Private Reply | To 1 | View Replies]

To: Salo

Sanitizing input to prevent this sort of thing is the most basic security precaution. You get it in the first 20 minutes of any secure coding class. Any sites affected by this should be embarrassed.


4 posted on 04/25/2008 9:31:33 AM PDT by Minn (Here is a realistic picture of the prophet: ----> ([: {()
[ Post Reply | Private Reply | To 1 | View Replies]

To: Minn
Yep. SQL Injection has been around since the early days of client server and is quite literally the oldest trick in the book.

I don't know why it says "MS" web servers in the title. SQL Injection has nothing to do with which operating system or web server you use. It's a matter of whether the web programmer bothers to validate user input or not.

5 posted on 04/25/2008 9:36:16 AM PDT by BitBucket
[ Post Reply | Private Reply | To 4 | View Replies]

To: Salo

i think that lucianne.com was down for a while this week because of a sql injection attack.


6 posted on 04/25/2008 9:37:44 AM PDT by jjw
[ Post Reply | Private Reply | To 1 | View Replies]

To: jjw

Can anyone give a plan English definition of an SQL attack?


7 posted on 04/25/2008 10:30:42 AM PDT by Lynne
[ Post Reply | Private Reply | To 6 | View Replies]

To: Lynne

I’ll try. A web site that is poorly written, will accept input in a form just like this one here, and use the text directly (without checking in, or clearning it up) to make computer software statements that are sent to the database server. A hacker can pass commands to the database by entering in malicious code in a form — giving the hacker access to some data in the database, or even control of their network. Hope this helps.


8 posted on 04/25/2008 10:43:26 AM PDT by jjw
[ Post Reply | Private Reply | To 7 | View Replies]

To: BitBucket
I don't know why it says "MS" web servers in the title. SQL Injection has nothing to do with which operating system or web server you use.
Read the article. This is specifically affecting sites built on ASP, which is a MS technology. This is not senseless MS bashing, so put down the alarm. I suspect there's some sort of sanitizer code involved which (looking at the page), doesn't handle hex properly.
9 posted on 04/25/2008 10:49:49 AM PDT by jack_napier (Bob? Gun.)
[ Post Reply | Private Reply | To 5 | View Replies]

To: jjw

It does help. Thank you!


10 posted on 04/25/2008 10:52:48 AM PDT by Lynne
[ Post Reply | Private Reply | To 8 | View Replies]

To: jjw

It does help. Thank you!


11 posted on 04/25/2008 10:52:50 AM PDT by Lynne
[ Post Reply | Private Reply | To 8 | View Replies]

To: jjw

12 posted on 04/25/2008 10:56:08 AM PDT by MediaMole
[ Post Reply | Private Reply | To 8 | View Replies]

To: Salo

The headline seems a little misleading. According to the article at the FSecure link, they’ve identified 510,000 web pages. I seriously doubt that translates into 500,000 individual servers.


13 posted on 04/25/2008 11:04:45 AM PDT by tacticalogic ("Oh bother!" said Pooh, as he chambered his last round.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Lynne

SQL is the language used to query data from a database table.

An example SQL query is “SELECT * FROM CustomerTable WHERE customer_id = 1”

SELECT * - means show all of the information in the table.

FROM CustomerTable - CustomerTable is the data entity that contains customer information

WHERE customer_id = 1 - Only show information for the customer whose id is 1.

This is just characters that a program can generate. What happens is the program takes the user input and uses it to generate the SQL query.

So lets say a customer enters their customer id, that id is substituted for the ‘1’ in the above statement. And they will get their information.

But someone devious could instead of sending a “1” could send “1 OR ‘1’ = ‘1’”

Now the SQL statement is:

“SELECT * FROM CustomerTable WHERE customer_id = 1 OR ‘1’ = ‘1’”

Since ‘1’ = ‘1’ is always going to be true, and with “OR” only one of the clauses has to be true, ALL rows will now be retrieved so that the hacker can see the information for all customers.

The way to avoid this is on the programming side, is to not build a SQL statement directly from customer input, but to use placeholders for the variable parts and checking the input to make sure no unusual characters are used. Any programmer should know this. It’s always one of the questions I ask when I interview potential members of my team.


14 posted on 04/25/2008 11:06:20 AM PDT by dfwgator (11+7+15=3 Heismans)
[ Post Reply | Private Reply | To 7 | View Replies]

To: agere_contra
Free Republic doesn’t use anything as loose as a MS Server...believe it runs under Apache.,...not sure whether it is based on BSD or Linux kernels...
15 posted on 04/25/2008 11:12:17 AM PDT by Ernest_at_the_Beach (No Burkas for my Grandaughters!)
[ Post Reply | Private Reply | To 3 | View Replies]

To: Ernest_at_the_Beach

Running Linux and Apache doesn’t necessarily mean you aren’t running ASP.


16 posted on 04/25/2008 11:16:20 AM PDT by tacticalogic ("Oh bother!" said Pooh, as he chambered his last round.)
[ Post Reply | Private Reply | To 15 | View Replies]

To: Sunnyflorida

ActiveX strikes again. This is why Apple will not integrate it into Mac OS X.


17 posted on 04/25/2008 11:23:02 AM PDT by HAL9000 ("No one made you run for president, girl."- Bill Clinton)
[ Post Reply | Private Reply | To 1 | View Replies]

To: HAL9000
ActiveX strikes again

How so?

18 posted on 04/25/2008 11:31:43 AM PDT by Minn (Here is a realistic picture of the prophet: ----> ([: {()
[ Post Reply | Private Reply | To 17 | View Replies]

To: dfwgator

Thanks much! I left my programming education in computers 101, back with DOS and Basic.


19 posted on 04/25/2008 11:37:13 AM PDT by Lynne
[ Post Reply | Private Reply | To 14 | View Replies]

To: Salo

This is why I won’t use anything but parameterized stored procedure calls.


20 posted on 04/25/2008 11:38:54 AM PDT by antiRepublicrat
[ Post Reply | Private Reply | To 1 | View Replies]

To: MediaMole

LOL!


21 posted on 04/25/2008 11:39:42 AM PDT by -YYZ- (Strong like bull, smart like ox.)
[ Post Reply | Private Reply | To 12 | View Replies]

To: Ernest_at_the_Beach

Linux as far as I know


22 posted on 04/25/2008 11:43:16 AM PDT by AppyPappy (If you aren't part of the solution, there is good money to be made prolonging the problem.)
[ Post Reply | Private Reply | To 15 | View Replies]

To: Minn

The exploit is analyzed here: http://forums.iis.net/t/1148917.aspx?PageIndex=1


23 posted on 04/25/2008 11:57:43 AM PDT by HAL9000 ("No one made you run for president, girl."- Bill Clinton)
[ Post Reply | Private Reply | To 18 | View Replies]

To: tacticalogic
OK,..thanks...just came across this...(for us novices):

SQL Injection Attacks - Are You Safe?

24 posted on 04/25/2008 12:25:28 PM PDT by Ernest_at_the_Beach (No Burkas for my Grandaughters!)
[ Post Reply | Private Reply | To 16 | View Replies]

To: rdb3; Calvinist_Dark_Lord; GodGunsandGuts; CyberCowboy777; Salo; Bobsat; JosephW; ...

25 posted on 04/26/2008 1:36:40 PM PDT by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: HAL9000

ActiveX is obsolete and should never be used today. I mean, it is ancient.


26 posted on 04/26/2008 2:45:33 PM PDT by wireplay
[ Post Reply | Private Reply | To 17 | View Replies]

To: Ernest_at_the_Beach
Free Republic doesn’t use anything as loose as a MS Server...believe it runs under Apache

MS Server and Apache have nothing to do with each other. One's an O/S, the other is a web server.

27 posted on 04/26/2008 2:49:57 PM PDT by wireplay
[ Post Reply | Private Reply | To 15 | View Replies]

To: jjw; Lynne

Bringing your evil kid into the church dance under your skirt.


28 posted on 04/26/2008 2:53:51 PM PDT by mad_as_he$$ (Sleep with one eye open, Gripping your pillow tight , Exit light , Enter night.......)
[ Post Reply | Private Reply | To 8 | View Replies]

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
News/Activism
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson