id: h2console-panel

info:
  name: H2 Console Web Login Panel - Detect
  author: righettod
  severity: info
  description: H2 Console Web login panel was detected.
  reference:
    - https://mp.weixin.qq.com/s/Yn5U8WHGJZbTJsxwUU3UiQ
    - https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:h2database:h2:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: h2
    shodan-query: http.title:"H2 Console"
    vendor: h2database
  tags: panel,h2,console,h2database

http:
  - method: GET
    path:
      - '{{BaseURL}}/h2-console/login.jsp'

    matchers:
      - type: dsl
        dsl:
          - "status_code==200"
          - "contains(tolower(body), '<title>h2 console</title>')"
        condition: and
# digest: 490a00463044022006c236bbc99abe086bf7ad626ae82df60ca0a58a113a2552999a98fea864ba3d022046416c0324501020f830c6b0f8af37011c9f3ee380e40758127396c0f8ce772d:922c64590222798bb761d5b6d8e72950