id: dubbo-admin-default-login

info:
  name: Apache Dubbo - Default Admin Discovery
  author: ritikchaddha
  severity: high
  description: Apache Dubbo default admin credentials were discovered.
  reference:
    - https://www.cnblogs.com/wishwzp/p/9438658.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 2
  tags: dubbo,apache,default-login

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        Authorization: Basic {{base64(username + ':' + password)}}

    attack: pitchfork
    payloads:
      username:
        - guest
        - root
      password:
        - guest
        - root

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>Dubbo Admin</title>"
          - "/sysinfo/versions"
          - "{{username}}', '/logout')"
        condition: and

      - type: status
        status:
          - 200

# digest: 490a00463044022002689a9cad9b9029a66dd25206f2746f2953562839d6e5d8e42fe9b4765a948b02203ee35baa4941a2d5023486da3377f591f1b9d5f39c93e75c4db342d0aafa2c2f:922c64590222798bb761d5b6d8e72950
