Products › lamco-dbus-tools › Docs
Test a Flatpak grant against the real xdg-dbus-proxy
Test a Flatpak grant against the real xdg-dbus-proxy: dbusdo sandbox probe sends hundreds of probes through the host's own proxy and tests it for three CVEs.
Describes version 0.4.1. Run again on the final build on 2026-12-02, on Fedora 45 with
GNOME Calculator from Flathub (docs/measurements/stage-13/sandbox/).
Needs dbusdo, xdg-dbus-proxy, and dbus-daemon or dbus-broker's launcher with
systemd-socket-activate. It works at layer 6, and no service is called: The probes go to stand-ins on a private bus.
A grant from an application's files, or a running one
dbusdo sandbox probe --app org.gnome.Calculator
dbusdo sandbox probe --instance 2358516867
--app builds the proxy options as Flatpak would run the application. --instance takes them from a
running proxy, read back. Or give the options yourself, as the rest of the chain:
dbusdo sandbox probe --filter --talk=org.freedesktop.Notifications '--call=org.example.Svc=org.example.Svc.Get@/obj/*'
What happens:
- Each well-known name of your bus and its owner are read, which are questions to the bus.
- A private bus is started, with a stand-in for each connection owning the same names. Names share an owner as on the real bus, which matters, because a grant of one name opens every name of its connection.
- The host's proxy is started in front of it with the grant and
--log, and probes are sent through it: Every name and owner, each rule's own call and calls just outside it, the bus's questions about each name, requests and starts, match rules, the bus's other methods, the names shown, and broadcasts. - The proxy's log names each message and says what the filter did with it. Each decision is held to the toolkit's evaluator.
- Three behavior probes test the flaws fixed in 2026: CVE-2026-34080, CVE-2026-93676 and CVE-2026-94422.
On Fedora 45 with xdg-dbus-proxy 0.1.9, for the calculator's grant (abridged):
xdg-dbus-proxy 0.1.9 with: --filter --own=org.gnome.Calculator.* --own=org.mpris.MediaPlayer2.org.gnome.Calculator.* --call=org.freedesktop.portal.*=* --broadcast=org.freedesktop.portal.*=@/org/freedesktop/portal/*
384 probes, 77 names mirrored by stand-ins on a private bus. The proxy's own log gives each decision.
384 of 384 calls as the evaluator said:
Ping ca.desrt.dconf hidden answered org.freedesktop.DBus.Error.NameHasNoOwner
Ping org.freedesktop.Notifications hidden answered org.freedesktop.DBus.Error.NameHasNoOwner
Ping org.freedesktop.portal.Desktop passed answered reply
...
AddMatch eavesdrop=true denied answered org.freedesktop.DBus.Error.AccessDenied
AddMatch eavesdrop = 'true', with a space denied answered org.freedesktop.DBus.Error.AccessDenied
...
Names shown: 8 of the bus's, as the evaluator said
Broadcasts: 0 of 53 reached the client
The proxy's known flaws, by behavior:
CVE-2026-34080 fixed An AddMatch with eavesdrop = 'true', a space before the equals sign, is refused
CVE-2026-93676 fixed A broadcast from a name with only a call rule, on a path and member no broadcast rule names, is filtered
CVE-2026-94422 fixed A method call carrying a reply serial, to a name not granted, isn't passed on as if it were a reply
The evaluator and the proxy agree on every probe.
--instance on the running calculator gave 389 of 389, the proxy read back from the instance. The options
given by hand, a talk grant and one call rule:
Ping org.example.Svc denied answered org.freedesktop.DBus.Error.AccessDenied
Ping org.freedesktop.Notifications passed answered reply
Ping org.gtk.Notifications hidden answered org.freedesktop.DBus.Error.NameHasNoOwner
org.example.Svc org.example.Svc.Get at /obj, as its rule says passed answered reply
org.example.Svc org.example.Svc.NotInTheRule at /obj denied answered org.freedesktop.DBus.Error.AccessDenied
A name with only a call rule is seen and can't be pinged, its rule's call passes and a call just outside it doesn't; a name like the granted one, but not it, stays hidden.
A probe that disagrees is marked ! with what the evaluator said, and dbusdo exits 1. So does a flaw
it finds. --out probe.json keeps the report, and dbustell findings probe.json gives SBX-003 for a flaw
and SBX-006 for a disagreement.
Why run the real proxy
A proxy's version string doesn't say which fixes it carries. Distributions backport them: Debian 13's
package says 0.1.6 and carries all three. The probe asks the filter that's installed. To test another
build, give it: --proxy ./xdg-dbus-proxy. Built from upstream, 0.1.6 failed all three behavior probes and
0.1.8 the third, as their advisories say.
Options
| Option | Does |
|---|---|
--no-names |
Don't mirror your bus's names; stand in only for the names the grant names |
--stand-in a,b |
One more stand-in connection, owning those names |
--proxy <path> |
The proxy to ask |
The proxy filter reference says what the filter does, rule by rule.