id: grails-database-admin-console

info:
  name: Grails Admin Console Panel - Detect
  author: emadshanab
  severity: medium
  description: Grails Admin Console panel was detected.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/grails-database-console/
    - http://h2database.com/html/quickstart.html#h2_console
  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
    cwe-id: CWE-200
    cpe: cpe:2.3:a:grails:grails:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: grails
    product: grails
  tags: grails,panel

http:
  - method: GET
    path:
      - '{{BaseURL}}/dbconsole/'
      - '{{BaseURL}}/h2-console/'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>H2 Console</title>"

      - type: word
        words:
          - "Sorry, remote connections ('webAllowOthers') are disabled on this server"
        negative: true
# digest: 490a0046304402204ddf17a6a266a7cbd25c4ad9bad1008dbc68adbc13d3af303ebb118b89af3f8402200a39c5501090957d35fa0fd7725029cfa0f34edef00cdb1c153a159a58c7462e:922c64590222798bb761d5b6d8e72950