openwrt/asu is an image on demand server for OpenWrt based distributions. The request hashing mechanism truncates SHA-256 hashes to only 12 characters. This significantly reduces entropy, making it feasible for an attacker to generate collisions. By exploiting this, a previously built malicious image can be served in place of a legitimate one, allowing the attacker to "poison" the artifact cache and deliver compromised images to unsuspecting users. This can be combined with other attacks, such as a command injection in Imagebuilder that allows malicious users to inject arbitrary commands into the build process, resulting in the production of malicious firmware images signed with the legitimate build key. This has been patched with 920c8a1.
History

Fri, 06 Dec 2024 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Openwrt
Openwrt asu
CPEs cpe:2.3:o:openwrt:asu:*:*:*:*:*:*:*:*
Vendors & Products Openwrt
Openwrt asu
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 06 Dec 2024 16:30:00 +0000

Type Values Removed Values Added
Description openwrt/asu is an image on demand server for OpenWrt based distributions. The request hashing mechanism truncates SHA-256 hashes to only 12 characters. This significantly reduces entropy, making it feasible for an attacker to generate collisions. By exploiting this, a previously built malicious image can be served in place of a legitimate one, allowing the attacker to "poison" the artifact cache and deliver compromised images to unsuspecting users. This can be combined with other attacks, such as a command injection in Imagebuilder that allows malicious users to inject arbitrary commands into the build process, resulting in the production of malicious firmware images signed with the legitimate build key. This has been patched with 920c8a1.
Title openwrt/asu allows build artifact poisoning via truncated SHA-256 hash and command injection
Weaknesses CWE-328
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2024-12-06T16:14:39.169Z

Updated: 2024-12-06T20:54:32.538Z

Reserved: 2024-11-29T18:02:16.755Z

Link: CVE-2024-54143

cve-icon Vulnrichment

Updated: 2024-12-06T20:54:21.456Z

cve-icon NVD

Status : Received

Published: 2024-12-06T17:15:12.687

Modified: 2024-12-06T17:15:12.687

Link: CVE-2024-54143

cve-icon Redhat

No data.