id: CVE-2025-59716

info:
  name: ownCloud Guests - User Enumeration
  author: DhiyaneshDk
  severity: medium
  description: |
    ownCloud Guests before 0.12.5 contains an unauthenticated user enumeration vulnerability caused by insufficient validation of the token in showPasswordForm at /apps/guests/register/{email}/{token}, letting unauthenticated attackers enumerate valid guest users, exploit requires no authentication.
  impact: |
    Unauthenticated attackers can enumerate valid guest users, potentially aiding further targeted attacks.
  remediation: |
    Update to version 0.12.5 or later.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-59716
    - https://gist.github.com/thesmartshadow/64ae0449e909174d0479a4f23657147f
    - https://marketplace.owncloud.com/apps/guests
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2025-59716
    epss-score: 0.00895
    epss-percentile: 0.56006
    cwe-id: CWE-203
  metadata:
    verified: true
    max-request: 1
    vendor: owncloud
    product: guests
    shodan-query: http.title:"ownCloud"
    fofa-query: title="ownCloud"
  tags: cve,cve2025,owncloud,enum,user-enum,guests,vkev

variables:
  email: "{{randstr}}@{{rand_base(5)}}.com"

http:
  - method: GET
    path:
      - "{{BaseURL}}/apps/guests/register/{{email}}/invalid-token-12345"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "No such guest user"
          - "ownCloud"
        condition: and

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