CVE-2017-7272
HIGH
7.4
CVSS 3.0
Description
PHP through 7.1.11 enables potential SSRF in applications that accept an fsockopen or pfsockopen hostname argument with an expectation that the port number is constrained. Because a :port syntax is recognized, fsockopen will use the port number that is specified in the hostname argument, instead of the port number in the second argument of the function.
Affected products and versions
- PHP — Up to and including 7.1.3
References
- www.securityfocus.com http://www.securityfocus.com/bid/97178 Third Party Advisory, VDB Entry
- www.securitytracker.com http://www.securitytracker.com/id/1038158
- bugs.php.net https://bugs.php.net/bug.php?id=74216 Issue Tracking, Vendor Advisory
- bugs.php.net https://bugs.php.net/bug.php?id=75505
- github.com https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a Issue Tracking, Patch, Third Party Advisory
- security.netapp.com https://security.netapp.com/advisory/ntap-20180112-0001/
- www.sec-consult.com https://www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20170403-0_PHP_Misbehavior_of_fsockopen_function_v10.txt
- nvd.nist.gov Official NVD record