id: activemq-panel

info:
  name: Apache ActiveMQ Exposure
  author: pdteam,righettod
  severity: info
  description: An Apache ActiveMQ implementation was discovered.
  reference:
    - https://activemq.apache.org/
    - https://activemq.apache.org/components/classic/documentation/rest
  classification:
    cwe-id: CWE-200
    cpe: cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: activemq
    shodan-query:
      - cpe:"cpe:2.3:a:apache:activemq"
      - product:"activemq openwire transport"
      - http.title:"Apache ActiveMQ"
  tags: panel,activemq,apache,login,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/admin/"
      - "{{BaseURL}}/demo/"
      - "{{BaseURL}}"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>apache activemq</title>", "<h2>welcome to the apache activemq!</h2>", "manage activemq broker", "activemq console")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)Copyright\s+([0-9\-]+)'
          - '(?i)<td>Version<\/td>[\r\n\s]*<td>[\r\n\s]*<b>([0-9.]+)<\/b>'
# digest: 4b0a00483046022100f7201bcde03b0574dbd7a7901172ac179bd86ccd717308535d6a6c0fd13ae55e022100da1a254de9d88f5d9e194b5acbe84538da2479e5e3a2b9463a1cbda9d60c0a49:922c64590222798bb761d5b6d8e72950