Openwrt luci-app-adblock-fast
luci-app-adblock-fast: Delegated `luci-app-adblock-fast` users can reach root command execution by injecting newline-separated cron entries
Edge device · Router / network deviceknown edge product: openwrt luci-app-adblock-fast luci-app-adblock-fast: Delegated `luci-app-adblock-fast` users can (high confidence)
luci-app-adblock-fast a WebUI for fast, lightweight DNS-based ad-blocker for OpenWrt that works with dnsmasq, smartdns, or unbound. Prior to 1.2.4-2, the luci.adblock-fast.setCronEntry RPC method accepts an entry argument containing carriage-return or line-feed characters and serializes it into /etc/crontabs/root as though it were one logical line. An authenticated delegated user with the luci-app-adblock-fast write ACL can therefore create an additional physical root cron entry through applications/luci-app-adblock-fast/root/usr/share/rpcd/ucode/luci.adblock-fast, resulting in persistent command execution as UID 0 when cron runs. The issue is not demonstrated for unauthenticated callers or users without the component write ACL. This vulnerability is fixed in 1.2.4-2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.2.4-2
Fixed in 1.2.4-2
Mitigation
Upgrade luci-app-adblock-fast to 1.2.4-2 or later.
References
- Vendor advisory github.com/openwrt/luci/security/advisories/GH…
- Patch github.com/openwrt/luci/pull/8705
- Patch github.com/openwrt/luci/commit/9ccd99b5898457e…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.