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