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

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: 4a0a004730450220269f4558292248262142afe64d68411ffea431a79c294116580bacaa863a1176022100cc061fd9603f8e29d20cb7b0133f182c25d789172480f877b5f5980161eac7c2:922c64590222798bb761d5b6d8e72950