600,000 backlinks in one go
- 25th Apr 2008
- Leave a Comment
- hacking
That’s what just happened, a massive SQL Injection was discovered on F-secure, hat tip to 0×000000 I found it there, I wonder how many peoples computers just got malware on them.
But imagine in a controlled manner you could either destroy websites ranking by adding 50,000 links to all your competitors.
From F-secure,
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):
DECLARE%20@S%20NVARCHAR(4000);SET%20@S=CAST(0×440045004300
4C00410052004500200040005400200076006100720063006800610072
00280032003500350029002C0040004300200076006100720063006800
610072002800320035003500290020004400450043004C004100520045
0020005400610062006C0065005F0043007500720073006F0072002000
43005500520053004F005200200046004F0052002000730065006C0065
0063007400200061002E006E0061006D0065002C0062002E006E006100
6D0065002000660072006F006D0020007300790073006F0062006A0065
00630074007300200061002C0073007900730063006F006C0075006D00
6E00730020006200200077006800650072006500200061002E00690064
003D0062002E0069006400200061006E006400200061002E0078007400
7900700065003D00270075002700200061006E0064002000280062002E
00780074007900700065003D003900390020006F007200200062002E00
780074007900700065003D003300350020006…Which when decoded becomes:
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…What happens as a result? It finds all text fields in the database and adds a link to malicious javascript to each and every one of them which will make your website display them automatically. So essentially what happened was that the attackers looked for ASP or ASPX pages containing any type of querystring (a dynamic value such as an article ID, product ID, et cetera) parameter and tried to use that to upload their SQL injection code.
is this a good time to mention Firewall Script again
Dave






7 Comments | Leave a comment »
nice find dave. damn
Dontcha just love Ronalds blog?
That guy is legend. But he has an unnatural love for Teddy Ruxpin.
Trust me, you dont want to know…..
*** Upon installing FWS you must edit your domain’s index page to include the FWS copyright. … all we require is a link back. ***
Grrr.
g1smd.. I will check into that, it shouldn’t be the case, and I’m quiet happy for the link to be nofollow if it’s needed to check if the script in stalled and has a valid license, I know one of the people behind the product as I worked with them before, also it’s very very new, and I’m still working thou all the things that are best practice from a webmaster POV so that no gets into Google trouble
Ok g1smd, I had a quick check at present Firewall script takes the root Lld for the words FireWall Script, you can use and Img and alt “firewall script”..
the 2 main things we want
a) Humans to get to our product, so if you don’t buy the copyright remove we kinda class it as free advertising
b) we will be moving to a new system, so the WORDS Firewall Script, won’t be needed but the NON copyright removal script will need a method where a user can get back to FWS
hope that makes sense, I will get the admin over there to try and clear it up..
Thanks for the reply, and that seems to address most of the concern.
When I saw the “you must link to us” condition of sale, I immediately thought “What would Matt Cutts do, if he were reading that?”
seems like a nasty sql exploit..does this just effect asp/windows servers or are linux servers vulnerable also?