id: nexus-detect

info:
  name: Nexus Repository Manager (NRM) Instance Detection Template
  author: righettod
  severity: info
  description: |
    Try to detect the presence of a NRM instance via the REST API OpenDocument descriptor.
  classification:
    cpe: cpe:2.3:a:sonatype:nexus_repository_manager:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: sonatype
    product: nexus_repository_manager
    shodan-query: http.html:"Nexus Repository Manager"
  tags: tech,nexus,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/service/rest/swagger.json"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Nexus Repository Manager"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022075dbf32984da8892db32e8950533212c704edee3f611be2576751bf87683e4a502210094b1da4e155db67f4d8a883f2155aeccb15eb10cd030d9ddb3009bd912e87e9f:922c64590222798bb761d5b6d8e72950