Critical RCE Bug Affects Millions of OpenWrt-based Network Devices

A cybersecurity researcher nowadays disclosed specialized information and evidence-of-idea of a significant remote code execution vulnerability affecting OpenWrt, a widely applied Linux-primarily based operating process for routers, household gateways, and other embedded units that route community website traffic.

Tracked as CVE-2020-7982, the vulnerability resides in the OPKG package deal supervisor of OpenWrt that exists in the way it performs integrity examining of downloaded packages making use of the SHA-256 checksums embedded in the signed repository index.

Even though an ‘opkg install’ command is invoked on the target technique, the flaw could allow a distant male-in-the-middle attacker in a place to intercept the conversation of a specific product to execute arbitrary code by tricking the procedure into putting in a destructive offer or computer software update without verification.

If exploited correctly, a remote attacker could obtain entire command over the focused OpenWrt network product, and subsequently, about the community targeted traffic it manages.

The a few-yr-old vulnerability was uncovered earlier this yr by Guido Vranken from the ForAllSecure computer software enterprise, who then documented it responsibly to the OpenWrt progress group.

In a blog submit published right now, Vranken described that when a checksum incorporates any primary spaces, OPKG on the susceptible variations of OpenWrt skips examining the integrity of the downloaded deal and proceeds to the set up endeavor.

openwrt vulnerability

“Due to the fact that opkg on OpenWrt operates as root and has produce access to the complete filesystem, arbitrary code could be injected by signifies of solid .ipk deals with a malicious payload,” OpenWrt staff reported.

The distant exploitation of this vulnerability is attainable because of to the reality that integrity in Linux centered computer software set up mechanisms count on digitally signing data files while downloading data files in excess of the insecure HTTP link.

Moreover this, to exploit the vulnerability, attackers also want to serve a malicious package deal with the dimension equals to that specified in the package deal checklist on downloads.openwrt.org.

According to the project crew, OpenWrt versions 18.06. to 18.06.6 and 19.07., as very well as LEDE 17.01. to 17.01.7, are affected.

“As a stopgap alternative, OpenWRT eradicated the house in the SHA256sum from the deal checklist soon after I described the bug,” Vranken mentioned.

“Nonetheless, this is not an ample lengthy-phrase resolution simply because an attacker can simply just offer an more mature package deal listing that was signed by the OpenWRT maintainers.”

To repair this situation, afflicted people are advised to enhance their product firmware to the most current OpenWrt versions 18.06.7 and 19.07.1, which have been unveiled final month.

Fibo Quantum