SecurityContext

CVE-2018-19990: D-Link DIR-822 B1 - Command Injection

  • Cve: CVE-2018-19990
  • Name: D-Link DIR-822 B1 - Command Injection
  • Description: In the /HNAP1/SetWiFiVerifyAlpha message, the WPSPIN parameter is vulnerable, and the vulnerability affects D-Link DIR-822 B1 202KRb06 devices. In the SetWiFiVerifyAlpha.php source code, the WPSPIN parameter is saved in the $rphyinf1."/media/wps/enrollee/pin" and $rphyinf2."/media/wps/enrollee/pin" and $rphyinf3."/media/wps/enrollee/pin" internal configuration memory without any regex checking. And in the do_wps function of the wps.php source code, the data in $rphyinf3."/media/wps/enrollee/pin" is used with the wpatalk command without any regex checking. A vulnerable /HNAP1/SetWiFiVerifyAlpha XML message could have shell metacharacters in the WPSPIN element such as the `telnetd` string.
  • Impact: Attackers can execute arbitrary shell commands on the device, potentially leading to remote code execution or device takeover.
  • Remediation: Implement regex validation for WPSPIN parameter and sanitize inputs before usage; update firmware if available.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to send a crafted XML message with malicious WPSPIN
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.05123
  • Epss percentile: 0.92594
  • Assignee: [email protected]
  • Published at: 2019-05-13T14:29:01Z
  • Age in days: 2752
  • Modified at: 2026-06-17T01:50:14Z
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-19990
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

Public exploits

UrlSourceAdded date
https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990nvd2019-05-13

References

UrlSourceTags
https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
d-link:dir-822_firmware= 202krb06yesnvd/v1/products/d-link/dir-822_firmware

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2019-05-13
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts