D-Bus policy allows any local user to call the root service #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
systemd/org.aqomui.service.confgrantssend_destinationunder<policy context="default">, so any local user can invoke any method onthe root service. Several act on caller-supplied data with root authority:
cfgupdate(cfg)writes caller bytes straight to root-ownedconfig.json(
aqomui_service.py:410-416)change_ovpn_config(provider, certpath)copies files from a caller-chosenpath into root-owned locations (
aqomui_service.py:306-318)connect_to_server/import_threaddrive config generation and subprocessexecution from an untyped
a{ss}dictconnect_to_serveralso doessetattr(self, "<server-name>_dict", ...)on theservice object (
aqomui_service.py:143), where the name comes from a providerAPI or an imported folder -- an attacker-influenced attribute write on a root
object, plus a collision risk.
In order of leverage:
methods
a{ss}dict as an untrusted wire format -- validate every fieldserver-side (provider against
SUPPORTED_PROVIDERS, paths canonicalised andconfined)
than caller-named paths
This is the one audit finding that is a vulnerability rather than a robustness
issue.