id: CVE-2022-31846

info:
  name: WAVLINK WN535 G3 - Information Disclosure
  author: arafatansari
  severity: high
  description: |
    WAVLINK WN535 G3 M35G3R.V5030.180927 is susceptible to information disclosure in the live_mfg.shtml page. An attacker can obtain sensitive router information via the exec cmd function and 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 router configuration settings and user credentials.
  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__live_mfg.md
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30489
    - https://nvd.nist.gov/vuln/detail/CVE-2022-31846
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-31846
    cwe-id: CWE-668
    epss-score: 0.07142
    epss-percentile: 0.93629
    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:
  - method: GET
    path:
      - "{{BaseURL}}/live_mfg.shtml"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Model='
          - 'DefaultIP='
          - 'LOGO1='
        condition: and

      - type: status
        status:
          - 200
# digest: 490a00463044022061ea222e2e591f191a7538520d060c757eab76947f3ea306eb638ed38cd8901302201f3c2aa9c5f383655d4ba427340b13c9fbc97da6453ed93bcbbfd7206f42aa05:922c64590222798bb761d5b6d8e72950