|
|||||||||||
|
Re: shell script cgi (summary?)
From: Brian Hatch <vuln-dev(at)ifokr.org>
Date: Mon Nov 18 2002 - 20:51:06 EST > Thanks to everyone who replied regarding my attempts
I don't know what bad vibes you're getting here. You call it 'suprisingly resilient' and 'not nearly as bad' as you thought. But the fact is it's acting exactly the way it should and is in no way exploitable. It's not just "not nearly as bad" - it's rock solid. This doesn't mean it's pretty or elegant, but it's the only real way to do it in shell. Yes, we could easily write better versions if this were in Perl or C, avoiding any external system() like calls. But this simply works fine. > The $ua variable is not ever used again so there's no
This is the crucial point though. The line above cannot be exploited. But if $ua were used somewhere else, the result of the line above may be abused in later uses of the variable. I will go so far as to say that the "ua=..." assignment above *cannot* and will not every be exploitable on a Bourne shell variant that acts properly and isn't broken itself. This isn't an issue of timeline. You can't break that line of shell. -- Brian Hatch #define QUESTION \ Systems and ((bb) || !(bb)) Security Engineer http://www.ifokr.org/bri/ Every message PGP signed
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:37 EDT |
||||||||||
|
|||||||||||