id: unauth-java-message-broker-detect

info:
  name: Unauthenticated Java Message Broker - Detect
  author: matejsmycka
  severity: low
  description: |
    Detection of a Java Message Service (JMS) broker, typically used by Oracle GlassFish Message Queue and Payara Application Server. This port should remain closed to the internet, as it enables unauthenticated access to messaging services.
  metadata:
    verified: true
    shodan-query: product:"Java Message Service"
  tags: network,tcp,jms,openmq,unauth

tcp:
  - inputs:
      - data: "\n"

    host:
      - "{{Hostname}}"
    port: 7676

    matchers:
      - type: word
        words:
          - "101 imqbroker"
          - "cluster_discovery"
        condition: and

    extractors:
      - type: regex
        regex:
          - "imqbroker ([0-9.]+)"
# digest: 490a0046304402204fb9fc7bc807f535f89f6630f9fd49e4d797b5c3436d1f3432b8b719d7f594430220162bf90c13f826c0496998a39098b873723f226b0d2d0776dbb40890ac367d4f:922c64590222798bb761d5b6d8e72950