Skip to content

xmlrpc proxy: refuse rtorrent's old names of refused commands - #3571

Merged
xirvik merged 1 commit into
Novik:masterfrom
xirvik:xmlrpc-deny-old-spellings
Nov 22, 2026
Merged

xirvik merged 1 commit into
Novik:masterfrom
xirvik:xmlrpc-deny-old-spellings

Conversation

@xirvik

@xirvik xirvik commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

rtorrent registers directory and session as redirects to directory.default.set and session.path.set, and scgi_port and scgi_local to network.scgi.open_port and network.scgi.open_local. The proxy refused the commands but not these names and forwarded them untrusted, which a daemon that ignores the untrusted flag, such as stock 0.9.8, runs: a caller could move the default download directory outside $topDirectory. d.directory.base.set, the 0.16 name of d.directory_base.set, was also not held to the directory boundary.

All five are now resolved through $canonicalNames. RtorrentCommandRedirectsFixture.php lists every redirect in the src/ trees of rtorrent v0.9.8 and v0.16.28, and XMLRPCProxyDaemonRedirectTest requires each to get the same decision as the command it names.

rtorrent registers directory and session as redirects to
directory.default.set and session.path.set, and scgi_port and scgi_local
to network.scgi.open_port and network.scgi.open_local. The proxy refused
the commands but not these names and forwarded them untrusted, which a
daemon that ignores the untrusted flag, such as stock 0.9.8, runs: a
caller could move the default download directory outside $topDirectory.
d.directory.base.set, the 0.16 name of d.directory_base.set, was also not
held to the directory boundary.

All five are now resolved through $canonicalNames.
RtorrentCommandRedirectsFixture.php lists every redirect in the src/
trees of rtorrent v0.9.8 and v0.16.28, and XMLRPCProxyDaemonRedirectTest
requires each to get the same decision as the command it names.
@xirvik
xirvik merged commit d20930f into Novik:master Nov 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant