id: nexus-panel

info:
  name: Nexus Login Panel - Detect
  author: righettod
  severity: info
  description: |
    Nexus login panel was detected.
  reference:
    - https://www.sonatype.com/products/sonatype-nexus-repository
  metadata:
    max-request: 1
    shodan-query: http.title:"Sonatype Nexus Repository"
    verified: true
  tags: panel,nexus,login,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>sonatype nexus repository", "content=\"sonatype nexus repository", "nexus-coreui-bundle")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '_v=([0-9\.\-]+)'
# digest: 4b0a00483046022100a9eb45d4b2e22e54a6f0c77dda0e0e0d3a89710a37cbee63417a59cdd6205687022100e3c9d6978593a98d8fd432fbc26f4b86045ef43f0636ad65c20753f9b5fe7713:922c64590222798bb761d5b6d8e72950