Browse / CVEs / CVE-2022-34045
CVE-2022-34045· wavlink / wl-wn530hg4 firmware· CWE-798
WAVLINK WN530HG4 - Improper Access Control
WAVLINK WN530HG4 M30HG4.V5030.191116 is susceptible to improper access control. It contains a hardcoded encryption/decryption key for its configuration files at /etc_ro/lighttpd/www/cgi-bin/ExportAllSettings.sh. An attacker can 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.
Fix
Apply the latest firmware update provided by the vendor to fix the access control issue.
How to confirm it
Send: GET /backupsettings.dat
Positive when: contains "Salted__" AND contains in header "application/octet-stream" AND status 200Run it with nuclei: nuclei -id CVE-2022-34045 -u <target>
The full check
id: CVE-2022-34045
info:
name: WAVLINK WN530HG4 - Improper Access Control
author: arafatansari
severity: critical
description: |
WAVLINK WN530HG4 M30HG4.V5030.191116 is susceptible to improper access control. It contains a hardcoded encryption/decryption key for its configuration files at /etc_ro/lighttpd/www/cgi-bin/ExportAllSettings.sh. An attacker can 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://drive.google.com/file/d/1s5uZGC_iSzfCJt9BJ8h-P24vmsrmttrf/view?usp=sharing
- https://nvd.nist.gov/vuln/detail/CVE-2022-34045
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/ARPSyndicate/cvemon
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-34045
cwe-id: CWE-798
epss-score: 0.03364
epss-percentile: 0.88833
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.html:"WN530HG4"
- 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,exposure,vuln
http:
- raw:
- |
GET /backupsettings.dat HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'Salted__'
- type: word
part: header
words:
- application/octet-stream
- type: status
status:
- 200References
- https://drive.google.com/file/d/1s5uZGC_iSzfCJt9BJ8h-P24vmsrmttrf/view?usp=sharing
- https://nvd.nist.gov/vuln/detail/CVE-2022-34045
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/ARPSyndicate/cvemon
Use this check only on systems you are authorised to test. Where the data comes from