id: wifisky-default-login

info:
  name: Wifisky Default Login
  author: pikpikcu
  severity: high
  description: Wifisky default admin credentials were discovered.
  reference:
    - https://securityforeveryone.com/tools/wifisky-default-password-scanner
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"WIFISKY-7层流控路由器"
    fofa-query: app="WIFISKY-7层流控路由器"
  tags: default-login,wifisky,vuln

http:
  - raw:
      - |
        POST /login.php?action=login&type=admin HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        X-Requested-With: XMLHttpRequest
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8
        Connection: close

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

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "text/html"
        part: header

      - type: word
        words:
          - '"success":"true"'
          - '"data":'
        part: body
        condition: and

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