Slashdot Mirror


Relentless Web Attack Hard To Kill

ancientribe writes "The thousands of Web sites infected by a new widespread SQL injection attack during the past few days aren't necessarily in the clear after they remove the malicious code from their sites. Researchers from Kaspersky Lab have witnessed the attackers quickly reinfecting those same sites all over again. Meanwhile, researchers at SecureWorks have infiltrated the Chinese underground in an attempt to procure a copy of the stealthy new automated tool being used in the attacks."

48 of 218 comments (clear)

  1. Whatever happened by RaceProUK · · Score: 5, Insightful

    to fixing the hole? It's like fixing a car coolant leak by pouring more water in the radiator.

    --
    No colour or religion ever stopped the bullet from a gun
    1. Re:Whatever happened by compro01 · · Score: 2, Informative

      AFAICT, they are patching the hole, they're just finding even more holes of the same type.

      --
      upon the advice of my lawyer, i have no sig at this time
  2. It's the plugins... by sam0737 · · Score: 2, Insightful

    At the end of the day it's the problem of plugins...I mean, besides the fact that the website is being infected, it's the flaws and vulnerabilities of the ActiveX/Browser plugins that allow this kind of activity to be profitable.

    Just yet another reason, besides bandwidth, to get Flashblock.

    And install as few as browsers plugins/ActiveX as possible.

  3. noscript by Manfre · · Score: 5, Informative

    NoScript is one of the best ways to avoid viruses that are distributed from the web.

    1. Re:noscript by Manfre · · Score: 3, Informative

      I've been developing with ASP.NET (c#) since its initial beta and am very familiar with how it functions. This discussion would go a bit smoother if you would read a comment before replying to it. Noscript prevents javascript from loading on any site, until the site is explicitly given permission by the user. Approve your CRM domain(s), which will allow it to work properly. Then if it is compromised, noscript will block the javascript on the destination domain. If your server is compromised to the point where it is hosting exploits, then the IT staff needs to spend a bit more effort patching and locking things down. Noscript is not the only protection that should be used, but it greatly helps. It's like driving a car a little bit slower. You've still got a seatbelt to help keep you alive, but you should be less likely to hit something.

    2. Re:noscript by daveime · · Score: 2, Insightful

      Yes, we should stick to the old tried and true "overload the server and piss off the user" method of the 1990's.

      Name: Dave
      Country : Thailand
      Telephone : 12345678
      Date of Birth : 29/02/2000
      [SUBMIT]

      Oops' looks like some problems with your submission - please correct the following :-

      Please supply your Firstname AND Surname ...

      Name : Dave Mullen
      [SUBMIT]

      Oops' looks like some problems with your submission - please correct the following :-

      You are from Thailand, where people don't always HAVE surnames - please just supply your Name ...

      Name : Dave
      [SUBMIT]

      Oops' looks like some problems with your submission - please correct the following :-

      Please supply a full telephone number with area code ...

      Telephone : 0066 12345678
      [SUBMIT]

      Oops' looks like some problems with your submission - please correct the following :-

      Country code should start with + ...

      Telephone : +66 12345678
      [SUBMIT]

      Oops' looks like some problems with your submission - please correct the following :-

      Please supply an area code ...

      Telephone : +66 99 12345678
      [SUBMIT]

      Oops' looks like some problems with your submission - please correct the following :-

      February 29th is not a valid date because 2000 is not a leap year.

      BY WHICH TIME, *IF* THE USER IS STILL HERE, YOU HAVE THOROUGHLY PISSED HIM OFF, AND MADE NO LESS THAN 6 SUBMISSIONS TO THE SERVER FOR SOME CRAPPY VALIDATION THAT COULD HAVE ALL BEEN TRAPPED ON THE CLIENT SIDE.

      If that's the web you want, then it's your choice I suppose.

  4. Re:Kaspersky by mfh · · Score: 4, Informative

    Kaspersky is so brilliant, it locks up every time I try to do anything with it.

    Then again, my AVG hasn't updated properly all week...

    You're not supposed to run them at the same time. They fight for control and eventually stalemate. Uninstall AVG and reinstall Kaspersky, but by now you may have damaged your system configuration. Kaspersky is pretty brutal if it gets unhinged, but it's unstoppable if you get it configured correctly.

    --
    The dangers of knowledge trigger emotional distress in human beings.
  5. Infiltration by Anonymous Coward · · Score: 2, Funny

    SecureWorks: Can I have a copy of your super secret automated tool?

    ChineseUnderground: No...

    1. Re:Infiltration by Kent+Recal · · Score: 2, Funny

      *** Joined #ChineseUnderground
      <SecureWorks> Can I have a copy of your super secret automated tool?
      *** Mao set mode +b *!*@secureworks.com
      *** Kicked from #ChineseUnderground by Mao (No.)

      (sorry, crapdot ate the brackets)

  6. Infected Websites by sexconker · · Score: 3, Interesting

    Can someone explain to me how websites get infected?

    Oh, that's right, running ads and other shit from shady people (directly or indirectly).

    I really wish websites would simply stop hosting foreign (not theirs, not trusted, not checked) code and content.

  7. Re:first post by martinw89 · · Score: 2, Informative

    Don't worry, your "-1 fail"® moderation is being applied at this moment. Thank you for using Slashdot©, please come again.

  8. This disgusts me by 77Punker · · Score: 3, Insightful

    I develop web applications for a living right now and as someone who's only been in this game for a few months, this disgusts me. I already know how to prevent SQL injection with prepared statements. It's easy to do and requires no extra knowledge, so why doesn't everyone do this?

    1. Re:This disgusts me by Rycross · · Score: 3, Insightful

      The problem is a frightening amount of training material on the web uses concatenated SQL strings to teach SQL. Pull up your average PHP/.Net/Java SQL tutorial and odds are that it will be concatenating strings. Throw that in with the fact that roughly half of the programmers reading that are going to be below average, and there you go.

    2. Re:This disgusts me by Pope · · Score: 4, Funny

      I'd say fully half of all the programmers are going to be below average...

      --
      It doesn't mean much now, it's built for the future.
    3. Re:This disgusts me by 77Punker · · Score: 4, Funny

      I'd say fully half of them will be below median.

    4. Re:This disgusts me by corsec67 · · Score: 3, Insightful

      Throw that in with the fact that roughly half of the programmers reading that are going to be below average

      Um for anything that is approximately normally distributed,... half of the X are going to be below average. (Especially if it is a continuous variable and you use the median)

      --
      If I have nothing to hide, don't search me
    5. Re:This disgusts me by NNKK · · Score: 4, Informative

      You're right, you're no programmer. Go read up:

      http://en.wikipedia.org/wiki/SQL_injection

      Prepared (or parametrized) statements are an easy and absolute defense against SQL injection attacks. The OP is right, the fact that such attacks still succeed is disgusting and inexcusable.

    6. Re:This disgusts me by 77Punker · · Score: 2, Funny

      The more I think about it, the more I think your post should read

      "...disgusting, inexcusable, and potentially hilarious."

    7. Re:This disgusts me by Emb3rz · · Score: 4, Insightful

      The idea of a SQL Injection attack is to pass a parameter in such a way that it changes the structure of the query itself. Typical beginner's SQL query:

      sql = "SELECT * FROM Users WHERE Username = '" & Request.Form("Username") & "' AND Password = '" & Request.Form("Password") & "';"

      This uses 'String Concatenation' to build a line of text from several smaller parts. The completed string is then, in this example executed by a database. A new query is dynamically created and executed based on the text passed to it. Thus, we are able to at this point change what query will be run. Form data:

      Username = "Admin"
      Password = "x' OR 'e' = 'e"

      So when the string is being put together, we get:

      SELECT * FROM Users WHERE Username = 'Admin' AND Password = 'x' OR 'e' = 'e';

      Certainly, even with no programming experience, one can see that the letter E will always be equivalent to the letter E. Thus, any validation of the password will return a false positive.

      Prepared statements avoid this whole deal by only allowing you to pass parameters. The query is already set in stone. You cannot change how it basically works, only its criteria / filtering / etc. A prepared statement would execute basically:

      SELECT * FROM Users WHERE Username = "Admin" AND Password = "x' OR 'e' = 'e";

      Since the query does not change dynamically when it's executed as a prepared statement, you can't add your logical 'OR' operator after having broken out of your parameter. You just get no rows returned, as should be the case.

    8. Re:This disgusts me by 77Punker · · Score: 3, Insightful

      Kaspersky can't figure it out because a virus scanner can't fix a web application. Fixing SQL injections is beyond their realm.

      Travelocity can't figure it out because their developers must suck. Travelocity is well-known because they have a decent service, not because the software that runs the service is really great software.

    9. Re:This disgusts me by delirium28 · · Score: 2, Insightful

      They're most likely trying to find a solution that doesn't require them to revisit and re-code a large portion of their site. They most likely want a band-aid solution rather than fix the underlying problem.

      --
      Who is John Galt?
    10. Re:This disgusts me by Emb3rz · · Score: 4, Insightful

      You're working off of the false assumption that security is about knowledge.

      We know abundantly well exactly how SQL injection attacks occur, and we also have many tools at our disposal to -absolutely- prevent them. What we don't have is the cooperation or effort from programmers on a widespread basis. Many are simply too lazy to research and implement reasonable security measures. It's easier to pretend that there are no ways whatsoever that anything can go wrong with your code because when you tested it it worked right. This willfull turning a blind eye to well-established security caveats is what has given us this terrible and prevalent security problem. It's easier to write code that checks nothing, it's quicker to do so, and it requires less think-juice on the part of the lazy programmer.

    11. Re:This disgusts me by CodeBuster · · Score: 2, Insightful

      Throw that in with the fact that roughly half of the programmers reading that are going to be below average, and there you go.

      That is what comes of outsourcing and offshoring especially, but there are still managers out there who refuse to acknowledge what I like to call the Iron Law of Software Development or more generally the Project Triangle (good, fast, cheap...pick two).

    12. Re:This disgusts me by Rycross · · Score: 2, Informative

      Languages can make bad code harder or easier to write however. Its perfectly acceptable to blame a language if it makes it hard to do things the "right way." I'm not much of a PHP hater, but a lot of stuff that they've done with the language makes me roll my eyes.

  9. Comment removed by account_deleted · · Score: 3, Informative

    Comment removed based on user account deletion

  10. Re:Kaspersky by martinw89 · · Score: 3, Insightful

    ...AVG...

    <mechanic>Well there's your problem.</mechanic>

  11. Re:Kaspersky by Anonymous Coward · · Score: 4, Funny

    "Securing an environment of Windows platforms from abuse - external or internal - is akin to trying to install sprinklers in a fireworks factory where smoking on the job is permitted." -Gene Spafford

  12. Install a proxy by gfilion · · Score: 4, Interesting

    We had this problem a few months back at work. Old but necessary asp web sites kept getting infected. It only took a few hours to install a reverse proxy with mod_security on EC2 and we were in the clear.

    Full story on my blog:
    http://guillaume.filion.org/blog/archives/2008/05/i_love_ec2_and_rightscale.php

    1. Re:Install a proxy by merreborn · · Score: 3, Informative

      mod_security is a reactive security measure. It's blacklist based, which makes the classic error of attempting to "enumerate badness".

      While it's great if you've identified an existing threat to an application you cannot properly secure, it does nothing to protect you against future attacks using less obvious techniques.

      mod_security alone is not an adequate solution. It's still necessary to proactively write secure applications in the first place, which means making sure you're never allowing raw, unfiltered/unescaped user data into places where it shouldn't go.

  13. yet another ugly side of DRM by Aoet_325 · · Score: 3, Insightful

    "The toolkit is protected with a layer of digital rights management and appears to be sold mainly in China. "

    this is why I don't believe in "Tusted" computing.
    When software or hardware are used to take control of a computer away from that computer's owner bad things will happen.

  14. Chinese underground by AragornSonOfArathorn · · Score: 4, Funny

    Is it like Big Trouble in Little China, with the lightning ninjas and floating eye thing? Did they get Kurt Russel to help?

    If so, that would be AWESOME.

    --
    sudo eat my shorts
  15. Re:Kaspersky by Arancaytar · · Score: 4, Insightful

    It's a bloody SQL injection attack. I'd like to see your virus checker automatically rewrite your web application to use input filtering.

    What these people need is a real web application instead of some self-built PHP script - not a virus scanner, whether free or expensive.

  16. No DRM trolls? by genner · · Score: 4, Funny

    Did everyone miss the fact that the toolkit resposible includes some hefty DRM.

    Where's the outrage?
    Why aren't we demmanding an open source solution?

  17. Big Picture by mfh · · Score: 4, Interesting

    It's a bloody SQL injection attack. I'd like to see your virus checker automatically rewrite your web application to use input filtering.

    This is going to sound like a little bit of double speak but I'll remind you that Kaspersky found these attacks were happening. Also, they are studying the behavior. Furthermore, Kaspersky protects systems from nefarious things that attackers will do, regardless of how they get on the system. Nothing is perfect with Windows, but if you look at the options, Kaspersky is the best out there.

    Now of course, if you want to insist that the attacks happen whether Kaspersky is running or not, you will be correct. But what you're not saying is how LIMITED the attackers are when trying to get past Kaspersky after they get on a system.

    Noscript also helps, but isn't perfect either.

    --
    The dangers of knowledge trigger emotional distress in human beings.
    1. Re:Big Picture by Arancaytar · · Score: 2, Informative

      Sorry, I see we're talking about different user groups.

      From the user perspective a virus scanner (and NoScript) will indeed protect you from installing malware on your computer, which may be downloaded from a hijacked website (XSS is a more common attack vector for that, but I've had an Invision forum hijacked via SQL injection too).

      I was speaking more from the perspective of the web admin whose site gets defaced, who won't get around some lessons on secure input handling. ;)

  18. Re:RTFA by Bassman59 · · Score: 3, Funny

    Didn't you RTFA?

    You must be new here, in spite of that two-digit user ID!

  19. Comment removed by account_deleted · · Score: 2, Informative

    Comment removed based on user account deletion

  20. No kaspersky for me by jonaskoelker · · Score: 3, Funny

    zsh% apt-cache search kaspersky
    zsh%

    :(

  21. No, it's not. by Bearhouse · · Score: 3, Informative

    Your're right to publicise a good product that I also use and reccommend. However:

    Most people that get caught by malware don't understand all these arcane details.

    Most people use IE, (no noscript here..) and blindly click 'OK' when they cannot see the porn.

    Bad web sites / pages don't just install viruses.*

  22. Re:RTFA by Anonymous Coward · · Score: 3, Funny

    You must be new here, in spite of that two-digit user ID

    He probably is new. I saw Slashdot UID 56 for sale on E-Bay about a month ago for 17 cents or 4 sticks of Trident.

  23. Re:Kaspersky by mordred99 · · Score: 2, Interesting

    I take every syllable that comes out of Eugene Spafford's mouth with a pound of salt. I speak as a Purdue Graduate and Security Professional.

  24. What a job description. by mapkinase · · Score: 2, Funny

    "researchers at SecureWorks have infiltrated the Chinese underground in an attempt to procure a copy of the stealthy new automated tool being used in the attacks"

    I wish my job description sounded as exciting as this one.

    --
    I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
  25. Trust by mfh · · Score: 2, Insightful

    Okay keep using Noscript. I don't have a problem with that, but be warned that you are not fully protected by Noscript when the website you TRUST is attacked by an exploit like SQL injection, because YOU TRUST THAT WEBSITE.

    White-lists are better than no-lists, but they aren't perfect.

    --
    The dangers of knowledge trigger emotional distress in human beings.
  26. McColo? by Ungrounded+Lightning · · Score: 2, Insightful

    I wonder how many of the malicious servers the injected SQL dumped the users into were hosted on McColo - and are thus now not available?

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
  27. Re:Chinks get their Interwebs on! by Rick+Bentley · · Score: 2, Funny

    Chinkies broked the web. :(

    Okay, now that there is a black president you realized that being racist against blacks would be unpatriotic ... so now you go after Chinese instead?

    I for one (don't) welcome our new sino-phobic first-posting anonymous-coward overlords...

    --
    My favorite quote doesn't fit into 120 characters. Now no one will like me.
  28. Don't rely on FlashBlock for security... by Giorgio+Maone · · Score: 2, Insightful
    --
    There's a browser safer than Firefox, it is Firefox, with NoScript
  29. Re:Kaspersky by vishbar · · Score: 2, Interesting

    PHP is just as vulnerable to SQL injection as ASP...I think he was speaking in generic terms.

    The problem isn't in the scripting engine. The problem is bad code. You can put a bad developer in front of system you want, and he'll still write bad code.

    --
    Ride the skies
  30. Re:Kaspersky by Fulcrum+of+Evil · · Score: 3, Informative

    Are you insane? Write parameterized SQL for all your queries and this just won't happen - setting your name to ';-- drop table users;' will just result in funky display logic.

    --
    "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"