Re: Re: PHP 6.0 Wishlist

From: Date: Sat, 13 Aug 2005 12:00:24 +0000
Subject: Re: Re: PHP 6.0 Wishlist
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-17953@lists.php.net to get a copy of this message
Hello,
Minor: 11. HTTP response splitting attack protection: Replace \r and \n with space in header(); Information and patches implementing this can be found at http://cschneid.com/php/
Your patches are problematic when a proxy kills overlong header lines that were not split up by the client onto multiple lines. Therefore \r\n followed by whitespace should not be replaced with spaces..Otherwise this could destroy legit functionality. A similiar patch for this is in Hardening-Patch above 0.3.x Ohh and btw: this is not a minor point, because it completely kills the whole attack class for PHP applications with 3-5 lines of code. Stefan Esser -- -------------------------------------------------------------------------- Stefan Esser sesser@php.net Hardened-PHP Project http://www.hardened-php.net/ GPG-Key gpg --keyserver pgp.mit.edu --recv-key 0x15ABDA78 Key fingerprint 7806 58C8 CFA8 CE4A 1C2C 57DD 4AE1 795E 15AB DA78 --------------------------------------------------------------------------

« previous php.internals (#17953) next »