Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/abraxas/webmin-fastrpc-unauth
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingAuthenticationLabs & Practice
GitHubabraxas/webmin-fastrpc-unauth

webmin-fastrpc-unauth

Webmin 2.670 - High 8.1 - Remote - Unauth file R/W - first peer on RPC data port, no sid, 30s window

View Repository
7 days agoNot yet reviewed
Share

Abraxas Labs - webmin-fastrpc-unauth

webmin-fastrpc-unauth

Webmin copies a file between two servers by opening a second TCP port on the destination. For up to thirty seconds that port does not ask for a login. Whoever connects first reads the file being copied, or replaces the destination, as the Webmin process user - usually root. You cannot start the copy without an RPC-capable account. You do not need one to steal the bytes once the port is open. If nobody is copying, those ports are closed.

Class: Missing auth on data socket Reach: Remote unauthenticated, only while an RPC copy is in flight (up to 30s)

Webmin 2.670 (3a2b2b86) - Webmin

IDno CVE yet
ClassMissing auth on data socket
ReachRemote (no session on the data socket; needs an RPC copy already in flight)
CWECWE-306
CVSSHigh: 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
ProductWebmin
Affected2.670 (3a2b2b8671c0669c129f5275b3dd1853106ae02b)
Authnone on tcpwrite / tcpread accept. Control connection still checks sid.
LicenseGNU Affero GPL v3.0
Lab127.0.0.1:18480 plus published data ports 18481-18484

I started the copy with a root session because that is how cluster copy works. The read and the replace used a socket that never saw a cookie. MiniServ login still wants HTTP/1.0, and a User-Agent that starts with Webmin gets a Basic 401, which is why the lab client does neither of those things.

What an attacker can do

Needs an RPC-capable session already copying a named file. Default rpc=2 still lets root / admin / sysadm open fastrpc.cgi. A user with rpc=0 cannot. The window is the select timeout on the data child: 30 seconds. First accept() wins.

PrivilegeMethod / sinkRecon / integrity / availabilityLab-proven or inferred
Read the named file as the miniserv userconnect to the tcpread data port; no sidRecon (file read)Lab-proven. IOC tcpread-unauth bytes=19 body=WEBMIN-H02-FASTRPC
Replace the named destinationconnect to the tcpwrite data port; send bytes; no sidIntegrity (file write)Lab-proven. dest became WEBMIN-H02-FASTRPC
Bind on every interface, not miniserv bindallocate_socket INADDR_ANY / in6addr_anyRecon / integritySource. Lab published 18483 / 18484 to loopback
Steal or overwrite whatever path the RPC caller namedremote_write / remote_read then cluster-copyRecon / integrityInferred for cluster-copy. Lab named /tmp/h02src and /tmp/h02dst
Negative: ports closed without a transferTCP 10001-10004 inside the container before fastrpc.cgin/aLab-proven. IOC negative-closed 10001,10002,10003,10004

Stays closed on this leftover

AxisMethod / sinkWhy it is closed
IntegrityControl connection without sidfastrpc.cgi:136 die if $auth ne $sid
IntegrityUser denied RPC opens the listenerwebmin_user_can_rpc() at fastrpc.cgi:22; rpc=0 returns 0
ReconData ports with no copy in flightnothing listens until tcpwrite / tcpread
IntegrityUnauthenticated rpc.cgi / xmlrpc.cgi / panel loginthose paths still check session or RPC grant
IntegrityStanding unauth admin, CVE-2026-42210 / CVE-2026-56022Basic-auth 2FA bypass is a different bug
IntegrityHost RCE from this socketthe data child reads or writes the named file; it does not eval

This is not a login bypass. It is a missing check on the file pipe that cluster copy leaves open.

How I found it

I pinned webmin/webmin tag 2.670. fastrpc.cgi forks a control listener and returns 1 $port $sid $version. The control line is length plus sid. tcpwrite and tcpread then fork again, allocate_socket on the next port, and accept() the first peer with no sid and no source check. remote_write and remote_read in web-lib-funcs.pl connect with open_socket and send or receive raw file bytes. Cluster Copy calls remote_write.

Wrong turns: treating the hello CGI as unauthenticated (it is not); looking for a second missing check on xmlrpc.cgi; scoring this as a standing unauth login (the ports are closed until a copy starts).

Lab

Docker, git, python3. The compose file publishes the data ports. Loopback only.

python3 webmin-fastrpc-unauth-Abraxas-Labs.py

or:

cd lab
./run.sh

Clones webmin/webmin at 3a2b2b8671c0669c129f5275b3dd1853106ae02b into lab/src, builds webmin-lab:2.670, and talks to http://127.0.0.1:18480. The launcher chdirs into lab/ and execs run.sh.

IOC negative-closed 10001,10002,10003,10004
IOC tcpread-unauth bytes=19 body=WEBMIN-H02-FASTRPC
IOC tcpwrite-unauth ack=OK dest=WEBMIN-H02-FASTRPC
SUCCESS WEBMIN-H02-FASTRPC tcpread-unauth-read tcpwrite-unauth-replace WEBMIN-H02-FASTRPC

The fix

Require the RPC sid, or a per-transfer token, on the data socket before reading or writing the file. Bind that socket the way miniserv binds, not INADDR_ANY. Prefer connecting back to the RPC peer instead of accepting the first handshake.

References

  • github.com/webmin/webmin tag 2.670 (3a2b2b8671c0669c129f5275b3dd1853106ae02b)
  • fastrpc.cgi (:22, :136, :180-247, :261-317, :395-428)
  • web-lib-funcs.pl remote_write :8985, remote_read :9044, webmin_user_can_rpc :14297
  • cluster-copy/cluster-copy-lib.pl :200
  • CWE-306

License

GNU Affero GPL v3.0. See LICENSE. Loopback lab only. No warranty.

Abraxas Labs [email protected]

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

No popularity data yet.

Explore all tools

Browse our collection of tools

View all tools →