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