Common attacks and weaknesses
- Modules readable or writable without authentication, leaking backups.
rsync daemon.
Files are sent over port 873 in pieces and reassembled on the other side. It travels in clear text: anyone on the path can read it, passwords included.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| rsync | 873 | TCP, UDP | rsync | - | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :873' # process listening on 873
sudo lsof -nP -i :873macOS
sudo lsof -nP -i :873
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 873 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 873 netstat -ano | findstr :873
From another machine
nmap -p 873 -sV <host> sudo nmap -sU -p 873 <host> nc -zv <host> 873
Block it in the firewall
sudo ufw deny 873/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 873" -Direction Inbound -LocalPort 873 -Protocol TCP -Action Block # Windows
rsync daemon.
Port 873 is registered for TCP and UDP. In practice the service mostly uses TCP.
It is rated 6/10 (high) when exposed to the Internet. Modules readable or writable without authentication, leaking backups. Use rsync over SSH instead of the daemon, or set auth users and hosts allow.
On Linux run "ss -ltnup 'sport = :873'", on macOS "lsof -nP -i :873", and on Windows "netstat -ano | findstr :873" to see the local process. From another machine, "nmap -p 873 <host>" shows whether it is reachable.