Re: Gzipped output

From: Date: Mon, 11 Feb 2008 18:50:15 +0000
Subject: Re: Gzipped output
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.general 
Request: Send a blank email to php-general+get-269117@lists.php.net to get a copy of this message
Stut wrote: > Per Jessen wrote: >> Eric Butera wrote: >> >>> You should never use exec & friends when there is another way around >>> the problem. It is a security concern. >> >> Why is it a security concern to execute another bit of code? >> >> I really fail to see any security concern in doing e.g. >> >> exec('gzip -c /tmp/myinputfile') > > Do that per request and it becomes a lot easier to DOS the server. Not > a 'security' risk so much as a stability risk, but a risk all the > same. Make any PHP-based script available without usage-restriction, and you've got yourself a DDOS potential. Using exec() doesn't change anything. /Per Jessen, Zürich

« previous php.general (#269117) next »