Common attacks and weaknesses
- Admin party mode (no admin) on old versions, RCE vulnerabilities (CVE-2017-12636).
Apache CouchDB HTTP API.
The application asks for documents stored as JSON and gets them back over port 5984. It travels in clear text: anyone on the path can read it.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| couchdb | 5984 | TCP, UDP | CouchDB | - | 2007-11-27 |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :5984' # process listening on 5984
sudo lsof -nP -i :5984macOS
sudo lsof -nP -i :5984
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5984 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5984 netstat -ano | findstr :5984
From another machine
nmap -p 5984 -sV <host> sudo nmap -sU -p 5984 <host> nc -zv <host> 5984
Block it in the firewall
sudo ufw deny 5984/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5984" -Direction Inbound -LocalPort 5984 -Protocol TCP -Action Block # Windows
Apache CouchDB HTTP API.
Port 5984 is registered for TCP and UDP. In practice the service mostly uses TCP.
It is rated 8/10 (high) when exposed to the Internet. Admin party mode (no admin) on old versions, RCE vulnerabilities (CVE-2017-12636). Set an admin account, bind privately, put TLS in front.
On Linux run "ss -ltnup 'sport = :5984'", on macOS "lsof -nP -i :5984", and on Windows "netstat -ano | findstr :5984" to see the local process. From another machine, "nmap -p 5984 <host>" shows whether it is reachable.