id: unauth-wavink-panel

info:
  name: Wavlink Panel - Unauthenticated Access
  author: princechaddha
  severity: high
  description: Wavlink Panel was able to be accessed with no authentication requirements in place.
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Wi-Fi APP Login"
  tags: exposure,wavlink,unauth,misconfig,router

http:
  - method: GET
    path:
      - "{{BaseURL}}/wifi_base.shtml"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>APP</title>"

      - type: regex
        part: body
        regex:
          - 'var passphraseKey12="(.*)";'

      - type: word
        part: body
        negative: true
        words:
          - 'var passphraseKey12="";'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'var passphraseKey12="(.*)";'
# digest: 4a0a00473045022100d5c25f35e2b322e49d4e88107ebd1d79c0a286997610512c4904581a24fbc4ec02206c357252c6c21456dbaefd938b63c185a8e7986d23c805dcc14ee18ec9749c35:922c64590222798bb761d5b6d8e72950