Actions
Bug #23648
closedMitigate libpcre recursion crash in email address validation
Start date:
2010-09-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
PHP's ext/filter causes a libpcre recursion crash in email address validation. This happens when a string to validate is of an unusual long length.
The report mentions a limit of 1000 characters on a FreeBSD system (PHP 5.2.14).
X-Reference: #2010092410000017
Reported by: Bjoern Pedersen
Confirmed by PHP Security Team. Claimed to be an expected behaviour.
(issue imported from #M15860)
Files
Updated by Helmut Hummel about 14 years ago
PoC:
$text1="AAAAAAAAAAAAAAAAAAAAAAAAAAAA";
filter_var($text1,FILTER_VALIDATE_EMAIL);
echo "filter 1";
$text2="";
$x=0;
while ($x<1000){ // if 999 or less, no core dump
$text2.='X';
echo $x;
filter_var($text2,FILTER_VALIDATE_EMAIL);
echo "done";
$x=$x+1;
}
echo "filter 2";
?>
Actions