config_mixin.commit_config() in replace mode writes the candidate with printf … > /tmp/napalm_candidate.uci, then runs uci import < /tmp/napalm_candidate.uci && uci commit and rm -f in separate commands, all as root; rollback() does the same with /tmp/napalm_rollback.uci. The names are fixed: a local account can pre-place the file (or a symlink), or swap it between the write and the import, and have its own configuration imported and committed.
Fix: one command per import: f=$(umask 077 && mktemp), write the config to "$f", uci import < "$f" && uci commit, then rm -f "$f".
Prio: P3
Found in netOrk's security sweep of 2026-11-12 (NetOrk/netork#2446).
`config_mixin.commit_config()` in replace mode writes the candidate with `printf … > /tmp/napalm_candidate.uci`, then runs `uci import < /tmp/napalm_candidate.uci && uci commit` and `rm -f` in separate commands, all as root; `rollback()` does the same with `/tmp/napalm_rollback.uci`. The names are fixed: a local account can pre-place the file (or a symlink), or swap it between the write and the import, and have its own configuration imported and committed.
**Fix:** one command per import: `f=$(umask 077 && mktemp)`, write the config to `"$f"`, `uci import < "$f" && uci commit`, then `rm -f "$f"`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Prio: P3
Found in netOrk's security sweep of 2026-11-12 (NetOrk/netork#2446).
config_mixin.commit_config()in replace mode writes the candidate withprintf … > /tmp/napalm_candidate.uci, then runsuci import < /tmp/napalm_candidate.uci && uci commitandrm -fin separate commands, all as root;rollback()does the same with/tmp/napalm_rollback.uci. The names are fixed: a local account can pre-place the file (or a symlink), or swap it between the write and the import, and have its own configuration imported and committed.Fix: one command per import:
f=$(umask 077 && mktemp), write the config to"$f",uci import < "$f" && uci commit, thenrm -f "$f".