id: nexus-default-login

info:
  name: Nexus Default Login
  author: pikpikcu
  severity: high
  description: Nexus default admin credentials were discovered.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
  tags: nexus,default-login

http:
  - raw:
      - |
        POST /service/rapture/session HTTP/1.1
        Host: {{Hostname}}
        X-Nexus-UI: true
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

        username={{base64(username)}}&password={{base64(password)}}

    payloads:
      username:
        - admin
      password:
        - admin123
    attack: pitchfork

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 204

      - type: word
        words:
          - "Server: Nexus"
          - "NXSESSIONID"
        part: header
        condition: and

# digest: 4b0a00483046022100c45ecf382aa007cfca38e5e787d1e06605e4f93544ee237e29ff85360421f772022100e22e8814df0f932a2b481ebca3ee6786b458639f31c7a37883b5fbc9d7e774af:922c64590222798bb761d5b6d8e72950
