Skip to content

Biting the hand that feeds IT

The Register ®

Security:


Related Whitepapers

Comments on ‘Adobe gifts internal file permissions to unwashed masses’

Directory traversal shocker

Published Thursday 27th September 2007 00:20 GMT

« Back to article page

Couple of things ... 

By Sabahattin Gucukoglu
Posted Thursday 27th September 2007 04:40 GMT

I think you mean "Traversal", not "Transversal". It's a directory traversal attack, because you're using relative paths (EG ../../../etc/passwd) to traverse the filesystem while avoiding most of the common checks done by software to see that they're not being abused (EG paths don't begin with a '/' in order to detect if a filename is given). Even when checks are in place to attempt the resolution of pathnames, they're not always sufficient - see, for instance, the Microsoft Unicode double-escape directory traversal attack in IIS.

The other issue is considerably more serious, though: what in the name of sodding bloody buggering hell is the webserver doing with access to a key file that ought to be root-owned and that the server ought to have read into memory before dropping the hell away from superuser privileges and certainly before even thinking about accepting queries over the network?

Cheers,

Sabahattin

Sabahattin, you're right 

By Dan Goodin
Posted Thursday 27th September 2007 05:08 GMT
staff

It's traversal, not transversal, for exactly the reason you state.

Fixed.

before we all start typing ../../ 

By Anonymous Coward
Posted Thursday 27th September 2007 07:16 GMT

wasn't UK Security Consultant Daniel Cuthbert arrested & convicted in 2005 for typing something similar that a BT monitoring outfit picked-up, "non-invasive Tsunami site access" ../../ might not be safe at work, or home!

obvious solution is to use ToR , except that many major ToR nodes are hosted by happy people like...."Major nodes hosted anonymously dedicated to ToR by the same person/organization in Washington DC. Each handling 5-10TB data every month"... so ToR exit skimming is a given....

7 years? 

By joe
Posted Thursday 27th September 2007 07:58 GMT

Haven't bugs like this been known for a whole lot longer than 7 years?

Ooo, should you be publishing that? 

By Anonymous Coward
Posted Thursday 27th September 2007 09:19 GMT

http://www.samizdata.net/blog/archives/008118.html

Illegal in Germany 

By Mark Allen
Posted Thursday 27th September 2007 10:05 GMT

Remember guys... no doing this trick in Germany. You'll be locked up for "hacking".

(Too lazy to locate the old El'Reg story on this... it's in there somewhere... :))

Self-Signed, eh? 

By Greem
Posted Thursday 27th September 2007 10:36 GMT

The certificate is most certainly not self-signed. More interestingly, the cert is in fact a certificate signing certificate - ie. a CA cert - from Verisign.

The fact that it expired in 2004 seems to have passed a lot of people by, though.

Still - if the corresponding private key is still being used, then a lot of mischief could happen.

ModSecurity 

By Anonymous Coward
Posted Thursday 27th September 2007 11:30 GMT

If they'd installed mod_security (http://www.modsecurity.org/) with the standard rules to prevent directory traversal attacks then this would never have happened, despite the flaw in their application.

Mike Cardwell

Click that link, go to jail 

By Anonymous Coward
Posted Thursday 27th September 2007 13:56 GMT

Directory traversal is a crime in the UK under the Computer Misuse Act of 1990.

http://www.scl.org/editorial.asp?i=1098

Careful, the penalties can include jail sentences, and if you get arrested some pompous dick of a police officer will hold a press conference telling everyone that such crimes will not be permitted, and we will send a "strong message to someone about something".

Mostly it just sends a message how f*cked up the UK is.

So remember, FORWARD directory traversals are currently not being prosecuted, but BACKWARDS directory traversals ARE BEING PROSECUTED. Be careful to explain that to any children you have, the net is a dangerous place, one click and you can be snatched by the rozzers.

/name/ is ok unless the folder was intended to be secret

../name is definitely a no no unless the website owner explicitly used it in a URL

./name is borderline

Trivial fix? 

By Stuart Van Onselen
Posted Thursday 27th September 2007 14:20 GMT

I'm no security expert, but isn't the fix for this trivial? Run the webserver under a user account that doesn't have access to anything but the web directories and the server binaries.

That way, the OS security settings are a backstop that will stop badly-written CGI scripts, or anything else, "escaping" the web root.

Or am I missing something?

Re: Illegal in Germany 

By Thorin
Posted Thursday 27th September 2007 19:42 GMT

@ Mark Allen

Looks like the German Gov't is going to have to prosecute itself under its own new "hacking" laws.

http://blog.fukami.io/archives/2007/09/17/202c-bsi-charged-for-distribution-of-boss/

"...filed a charge against German <a href="http://www.bsi.de/">BSI</a>. BSI stands for: Bundesamt für Sicherheit in der Informationstechnik (Federal Office for Information Security) and they are the central IT security service provider for the German government. The reason for the charge is BSIs distribution of BOSS (BSI OSS Security Suite), which is basically a Live CD containing Open Source security tools such as Nessus and John the Ripper."

whitepaper title

Webcast : Why Today's Spam Filters Fail

This webcast covers the cost of spam, how we filter spam today; why it's not good enough, and the advantages of Abaca's new ReceiverNet technology..
whitepaper title

The Register Guides : The status of iSCSI

Now that the hype's abated, have companies backing iSCSI have run out of energy and patience, or is the technology becoming commonplace and accepted?.

Top 20 storiesAll The Week’s HeadlinesArchiveSearch