ZF-12160: Zend_Validate_EmailAddress Deep MX Checking Logic Flaw
Description
Zend_Validate_EmailAddress::_isReserved fails on MX IP addresses that are public. Some are because of public IPs in the $_invalidIp array, and some are because there's something wrong with the logic.
These two domains return false negatives: - http://dnsquery.org/dnsquery/harn.ufl.edu/MX - http://dnsquery.org/dnsquery/martinhealth.org/MX
Comments
Posted by Edward "Sonny" Savage (sonnysavage) on 2012-04-18T13:33:16.000+0000
My next comment will be a patch, using my solution. I decided that the simplest (clearest?) way to compare IP addresses was to convert them to their decimal integer equivalents, and I restructured the reserved IP array to accommodate that.
Posted by Edward "Sonny" Savage (sonnysavage) on 2012-04-18T13:35:39.000+0000