#50977 [Opn->Fbk]: imap_headerinfo Address buffer overflow
| From: | pajoye@php.net | Date: | Tue, 09 Feb 2010 19:06:57 +0000 |
| Subject: | #50977 [Opn->Fbk]: imap_headerinfo Address buffer overflow | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147362@lists.php.net to get a copy of this message | ||
ID: 50977
Updated by: pajoye@php.net
Reported By: lokitek at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: CentOS 5.4
PHP Version: 5.2.12
New Comment:
Which imap version do you use?
Previous Comments:
------------------------------------------------------------------------
[2010-02-09 19:00:23] lokitek at gmail dot com
Description:
------------
While using the imap_headerinfo() function to obtain information about
emails that I check via IMAP, I noticed that PHP complained about
imap_headerinfo() Address buffer overflow.
A bit of investigation revealed that a spam message containing 500+ CC
email addresses caused this issue.
Reproduce code:
---------------
// Send an email with 500+ CCd users. then use imap_headerinfo() to //
obtain all header information.
// [from doc]
$mBox = imap_open("{host:143/imap/novalidate-cert}INBOX}", $username,
$password); // open as imap
$header = imap_header($mBox, 1); // get first mails header
// imap_headerinfo() will crash with the following error:
// PHP Fatal error: imap_headerinfo(): Address buffer overflow
Expected result:
----------------
I expect to information about the given message number by reading its
headers and returned in an object format
Actual result:
--------------
PHP Fatal error: imap_headerinfo(): Address buffer overflow
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50977&edit=1