id: frp-default-login

info:
  name: FRP Default Login
  author: pikpikcu
  severity: high
  description: FRP default login credentials were discovered.
  reference:
    - https://github.com/fatedier/frp/issues/1840
  classification:
    cwe-id: CWE-798
  metadata:
    max-request: 1
  tags: frp,default-login

http:
  - raw:
      - |
        GET /api/proxy/tcp HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"proxies":'
        part: body
        condition: and

      - type: status
        status:
          - 200

# digest: 4b0a00483046022100f6c07cdc03b58a288d1b0880547f64dbb95efc59706c3330afad7ec8cadaefe0022100cc3bcfa435537eb46fbbe86ec43729e1c763f2f69f7c893febc224ee9fac0aad:922c64590222798bb761d5b6d8e72950
