Quantum Secular Labs / Blog / Advisories

CVE-2017-8220: TP Link C2 Firmware: Remote code execution

CVE-2017-8220 is rated critical with a CVSS v3.0 base score of 9.9 and NVD lists 2 affected products, including TP Link C2 Firmware. Per its scoring, it can be exploited over the network, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available.

Vulnerability description

TP-Link C2 and C20i devices through firmware 0.9.1 4.2 v0032.0 Build 160706 Rel.37961n allow remote code execution with a single HTTP request by placing shell commands in a "host=" line within HTTP POST data.

Severity breakdown

CVSS v3.0 9.9: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

  • Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
  • Attack complexity: Low. No special conditions; the attack can be repeated reliably.
  • Privileges required: Low. A basic user account is enough.
  • User interaction: None. No action from any user is needed.
  • Scope: Changed. Impact reaches beyond the vulnerable component to other resources.
  • Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
  • Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
  • Availability impact: High. Total loss of availability; the component can be shut down.

Underlying weakness

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

The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.

Affected products

  • TP Link C2 Firmware: up to and including 0.9.1_4.2_v0032.0_build_160706
  • TP Link C20i Firmware: up to and including 0.9.1_4.2_v0032.0_build_160706

References