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.
  classification:
    cpe: cpe:2.3:a:pyload:pyload:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: pyload
    product: pyload
    shodan-query: html:"pyload"
  tags: default-login,pyload,vuln

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: 4b0a00483046022100d001c6e783f1a1b033c722206b4c3c5bf4ef52054521ef4b81bd1e36846cbc06022100d2cf0fd9be8e6405e20c7e1be41b98cdc7c32ab50e4852aa4113baf22ac2dd57:922c64590222798bb761d5b6d8e72950