SSRF in PHP
CVE-2017-7272
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.
Vulnerability class: SSRF (Server-Side Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.4 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.035, 89.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- www.securityfocus.com/bid/97178 (Third Party Advisory, VDB Entry, vdb-entry)
- www.securitytracker.com/id/1038158 (vdb-entry)
- bugs.php.net/bug.php
- github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a (Patch, Third Party Advisory, Issue Tracking)
- security.netapp.com/advisory/ntap-20180112-0001/
- www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20170403-0_PHP_M…
- bugs.php.net/bug.php (Issue Tracking, Vendor Advisory)