46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
id: CVE-2021-37704
|
|
|
|
info:
|
|
name: phpinfo Resource Exposure
|
|
author: whoever
|
|
severity: medium
|
|
description: phpinfo() is susceptible to resource exposure in unprotected composer vendor folders via phpfastcache/phpfastcache.
|
|
reference:
|
|
- https://github.com/PHPSocialNetwork/phpfastcache/pull/813 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-37704
|
|
- 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
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
|
|
cvss-score: 4.3
|
|
cve-id: CVE-2021-37704
|
|
cwe-id: CWE-668
|
|
tags: cve,cve2021,exposure,phpfastcache,phpinfo
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/vendor/phpfastcache/phpfastcache/docs/examples/phpinfo.php"
|
|
- "{{BaseURL}}/vendor/phpfastcache/phpfastcache/examples/phpinfo.php"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "PHP Extension"
|
|
- "PHP Version"
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
group: 1
|
|
regex:
|
|
- '>PHP Version <\/td><td class="v">([0-9.]+)'
|
|
|
|
# Enhanced by mp on 2022/03/30
|