Exploit
CVE-2024-8212

Improper Neutralization of Special Elements used in a Command ('Command Injection') (CWE-77)

Published: Aug 27, 2024 / Updated: 2mo ago

010
CVSS 5.3EPSS 0.04%Medium
CVE info copied to clipboard

Summary

A critical vulnerability has been discovered in multiple D-Link NAS devices, including DNS-120, DNR-202L, DNS-315L, DNS-320, DNS-320L, DNS-320LW, DNS-321, DNR-322L, DNS-323, DNS-325, DNS-326, DNS-327L, DNR-326, DNS-340L, DNS-343, DNS-345, DNS-726-4, DNS-1100-4, DNS-1200-05, and DNS-1550-04, up to firmware version 20240814. The vulnerability affects the function cgi_FMT_R12R5_2nd_DiskMGR in the file /cgi-bin/hd_config.cgi. By manipulating the argument f_source_dev, an attacker can perform command injection. This vulnerability can be exploited remotely and requires no user interaction or privileges.

Impact

The impact of this vulnerability is severe. It allows attackers to execute arbitrary commands on the affected devices, potentially leading to complete system compromise. With a CVSS v3.1 base score of 9.8 (Critical), the vulnerability has high impacts on confidentiality, integrity, and availability. Attackers could potentially access sensitive data, modify system configurations, or disrupt device operations. Given that these are network-attached storage devices, the compromise could lead to unauthorized access to stored data, data theft, or data manipulation.

Exploitation

One proof-of-concept exploit is available on github.com. There is no evidence of proof of exploitation at the moment.

Patch

A patch is available for this vulnerability. D-Link has released information about the vulnerability on their support announcement page at https://supportannouncement.us.dlink.com/security/publication.aspx?name=SAP10383. However, it's important to note that this vulnerability affects products that are no longer supported by the maintainer. D-Link has confirmed that these products are end-of-life.

Mitigation

Given that the affected devices are end-of-life and no longer supported by D-Link, the primary mitigation recommendation is to retire and replace these devices with newer, supported models. If immediate replacement is not possible, consider the following temporary mitigation strategies: 1. Isolate the affected devices from the internet and restrict network access to trusted sources only. 2. Implement strong network segmentation to limit the potential impact of a compromise. 3. Monitor these devices closely for any suspicious activities or unauthorized access attempts. 4. Regularly backup data stored on these devices and store backups securely on separate systems. 5. If possible, disable remote management features and the vulnerable CGI script. It's crucial to prioritize the replacement of these devices as soon as possible, as they will continue to be vulnerable to this and potentially other undiscovered security issues.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timeline

First Article

Feedly found the first article mentioning CVE-2024-8212. See article

Aug 27, 2024 at 7:40 PM / CVE
CVSS Estimate

Feedly estimated the CVSS score as HIGH

Aug 27, 2024 at 7:41 PM
CVE Assignment

NVD published the first details for CVE-2024-8212

Aug 27, 2024 at 8:15 PM
CVSS

A CVSS base score of 6.3 has been assigned.

Aug 27, 2024 at 8:20 PM / nvd
EPSS

EPSS Score was set to: 0.04% (Percentile: 10.9%)

Aug 28, 2024 at 10:22 AM
CVSS

A CVSS base score of 9.8 has been assigned.

Aug 29, 2024 at 3:55 PM / nvd
Proof of Concept (PoC) Released

A proof of concept exploit has been released

Aug 29, 2024 at 5:11 PM
CVSS

A CVSS base score of 9.8 has been assigned.

Oct 28, 2024 at 9:24 PM / nvd
Static CVE Timeline Graph

Affected Systems

Dlink/dns-1200-05_firmware
+null more

Exploits

https://github.com/BuaaIOTTeam/Iot_Dlink_NAS/blob/main/DNS_cgi_FMT_R12R5_2nd_DiskMGR.md
+null more

Patches

supportannouncement.us.dlink.com
+null more

Attack Patterns

CAPEC-136: LDAP Injection
+null more

News

Update Fri Sep 27 06:35:53 UTC 2024
Update Fri Sep 27 06:35:53 UTC 2024
US-CERT Vulnerability Summary for the Week of August 26, 2024
The CISA Vulnerability Bulletin provides a summary of new vulnerabilities that have been recorded by the National Institute of Standards and Technology (NIST) National Vulnerability Database (NVD) in the past week. In some cases, the vulnerabilities in the bulletin may not yet have assigned CVSS scores. Please visit NVD for updated vulnerability entries, which include CVSS scores once they are available. Vulnerabilities are based on the Common Vulnerabilities and Exposures (CVE) vulnerability naming standard and are organized according to severity, determined by the Common Vulnerability Scoring System (CVSS) standard. The division of high, medium, and low severities correspond to the following scores: High : vulnerabilities with a CVSS base score of 7.0–10.0 Medium : vulnerabilities with a CVSS base score of 4.0–6.9 Low : vulnerabilities with a CVSS base score of 0.0–3.9 Entries may include additional information provided by organizations and efforts sponsored by CISA. This information may include identifying information, values, definitions, and related links.
Vulnerability Summary for the Week of August 26, 2024
Vulnerability Summary for the Week of August 26, 2024 bjackson Sep 03, 2024 High Vulnerabilities Primary Vendor -- Product Description Published CVSS Score Source & Patch Info Adobe--Acrobat Reader Acrobat Reader versions 127.0.2651.105 and earlier are affected by an out-of-bounds write vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in that a victim must open a malicious file. 2024-08-26 7.8 CVE-2024-41879 psirt@adobe.com aertherwide -- exiftags Buffer Overflow vulnerability in open source exiftags v.1.01 allows a local attacker to execute arbitrary code via the paresetag function. 2024-08-27 7.8 CVE-2024-42851 cve@mitre.org angeljudesuarez -- tailoring_management_system A vulnerability classified as critical was found in itsourcecode Tailoring Management System 1.0. This vulnerability affects unknown code of the file staffcatedit.php. The manipulation of the argument title leads to sql injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. 2024-08-26 9.8 CVE-2024-8171 cna@vuldb.com cna@vuldb.com cna@vuldb.com cna@vuldb.com cna@vuldb.com angeljudesuarez -- tailoring_management_system A vulnerability was found in itsourcecode Tailoring Management System 1.0. It has been declared as critical.
CVE-2024-8212 Exploit
CVE Id : CVE-2024-8212 Published Date: 2024-08-29T15:53:00+00:00 A vulnerability was found in D-Link DNS-120, DNR-202L, DNS-315L, DNS-320, DNS-320L, DNS-320LW, DNS-321, DNR-322L, DNS-323, DNS-325, DNS-326, DNS-327L, DNR-326, DNS-340L, DNS-343, DNS-345, DNS-726-4, DNS-1100-4, DNS-1200-05 and DNS-1550-04 up to 20240814. It has been rated as critical. This issue affects the function cgi_FMT_R12R5_2nd_DiskMGR of the file /cgi-bin/hd_config.cgi. The manipulation of the argument f_source_dev leads to command injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. NOTE: This vulnerability only affects products that are no longer supported by the maintainer.
CVE-2024-8212
NOTE: This vulnerability only affects products that are no longer supported by the maintainer. NOTE: Vendor was contacted early and confirmed that the product is end-of-life.
See 8 more articles and social media posts

CVSS V3.1

Attack Vector:Network
Attack Complexity:Low
Privileges Required:None
User Interaction:None
Scope:Unchanged
Confidentiality:High
Integrity:High
Availability Impact:High

Categories

Be the first to know about critical vulnerabilities

Collect, analyze, and share vulnerability reports faster using AI