id: nps-default-login

info:
  name: NPS Default Login
  author: pikpikcu
  severity: high
  description: NPS default admin credentials were discovered.
  reference:
    - https://docs.microfocus.com/NNMi/10.30/Content/Administer/Hardening/confCC2b_pwd.htm
  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: nps,default-login

http:
  - raw:
      - |
        POST /login/verify HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        Referer: {{Hostname}}/login/index

        username={{username}}&password={{password}}

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "application/json"
        part: header
        condition: and

      - type: word
        words:
          - '"msg": "login success"'
          - '"status": 1'
        part: body
        condition: and

      - type: status
        status:
          - 200

# digest: 490a004630440220606c381c7362f49fbe0d2cd4cda89a9e4a210f0b5fd4b5d5fa2f3046f159dcce022001e59e9ab3ccf71662fdd228b0cb33a3afa348145c16b4f3a2336fe9e26c3fdb:922c64590222798bb761d5b6d8e72950
