2021-08-14 16:22:35 +00:00
|
|
|
id: CVE-2021-37704
|
|
|
|
|
|
|
|
info:
|
2022-11-01 15:26:11 +00:00
|
|
|
name: phpfastcache - phpinfo Resource Exposure
|
2021-08-14 16:22:35 +00:00
|
|
|
author: whoever
|
2021-09-10 11:26:40 +00:00
|
|
|
severity: medium
|
2022-04-22 10:38:41 +00:00
|
|
|
description: phpinfo() is susceptible to resource exposure in unprotected composer vendor folders via phpfastcache/phpfastcache.
|
2023-09-06 12:09:01 +00:00
|
|
|
remediation: |
|
|
|
|
Remove or restrict access to the phpinfo.php file in the phpfastcache library.
|
2021-08-19 13:59:12 +00:00
|
|
|
reference:
|
2022-04-22 10:38:41 +00:00
|
|
|
- https://github.com/PHPSocialNetwork/phpfastcache/pull/813 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-37704
|
2022-05-17 09:18:12 +00:00
|
|
|
- https://github.com/PHPSocialNetwork/phpfastcache/security/advisories/GHSA-cvh5-p6r6-g2qc
|
|
|
|
- https://packagist.org/packages/phpfastcache/phpfastcache
|
|
|
|
- https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CHANGELOG.md#807
|
2023-07-11 19:49:27 +00:00
|
|
|
- https://github.com/PHPSocialNetwork/phpfastcache/commit/41a77d0d8f126dbd6fbedcd9e6a82e86cdaafa51
|
2021-09-10 11:26:40 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
|
2022-04-22 10:38:41 +00:00
|
|
|
cvss-score: 4.3
|
2021-09-10 11:26:40 +00:00
|
|
|
cve-id: CVE-2021-37704
|
2023-08-31 11:46:18 +00:00
|
|
|
cwe-id: CWE-200,CWE-668
|
2023-04-12 10:55:48 +00:00
|
|
|
epss-score: 0.00282
|
2023-08-31 11:46:18 +00:00
|
|
|
epss-percentile: 0.64484
|
2023-09-06 12:09:01 +00:00
|
|
|
cpe: cpe:2.3:a:phpfastcache:phpfastcache:*:*:*:*:*:*:*:*
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
2023-07-11 19:49:27 +00:00
|
|
|
vendor: phpfastcache
|
|
|
|
product: phpfastcache
|
|
|
|
tags: cve,cve2021,exposure,phpfastcache,phpinfo,phpsocialnetwork
|
2021-08-14 16:22:35 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-08-14 16:22:35 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/vendor/phpfastcache/phpfastcache/docs/examples/phpinfo.php"
|
2021-08-14 19:18:15 +00:00
|
|
|
- "{{BaseURL}}/vendor/phpfastcache/phpfastcache/examples/phpinfo.php"
|
2021-08-14 18:56:37 +00:00
|
|
|
|
2022-11-01 15:26:11 +00:00
|
|
|
stop-at-first-match: true
|
2023-07-11 19:49:27 +00:00
|
|
|
|
2021-08-14 18:56:37 +00:00
|
|
|
matchers-condition: and
|
2021-08-14 16:22:35 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "PHP Extension"
|
|
|
|
- "PHP Version"
|
|
|
|
condition: and
|
2021-08-14 18:56:37 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '>PHP Version <\/td><td class="v">([0-9.]+)'
|
2023-07-11 19:49:27 +00:00
|
|
|
part: body
|