Openwrt luci-app-travelmate
luci-app-travelmate - Arbitrary Command Execution via UCI Script Parameter
Edge device · Router / network deviceknown edge product: openwrt luci-app-travelmate luci-app-travelmate - Arbitrary Command Execution (high confidence)
luci-app-travelmate (and the travelmate package) contain a privilege-escalation flaw: a LuCI/rpcd session holding the luci-app-travelmate write ACL is granted config-wide UCI write access to the travelmate configuration. While the LuCI UI restricts the auto-login script picker to /etc/travelmate/*.login, this is only a frontend restriction. The backend travelmate service (running as root) reads the raw UCI 'script' and 'script_args' values and executes the configured path when the captive-portal auto-login branch (f_check() in travelmate-functions.sh) is reached. An attacker with delegated write permissions can set script to /bin/sh and script_args to attacker-controlled arguments, resulting in arbitrary command execution as root. Confirmed in luci-app-travelmate/travelmate 2.4.5-r3; travelmate 2.4.6-1 is also affected. Fixed in travelmate 2.4.6-2, which enforces the /etc/travelmate/*.login allowlist in the backend.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- 2.4.5-r3
- < 2.4.6-2
Fixed in 2.4.6-2
Mitigation
Upgrade travelmate to 2.4.6-2 or later.
References
- Vendor advisory github.com/openwrt/luci/security/advisories/GH…
- Patch github.com/openwrt/packages/commit/71d92bcc9ed…
- Patch github.com/openwrt/packages/commit/0627b412ee3…
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.