These captures show an exposed service being turned into code execution. The Redis example uses no exploit at all: with no password set, CONFIG SET dir and dbfilename point the save file at the web root, a key holding PHP is written, and SAVE drops the webshell. The whole attack is a handful of readable RESP commands, which is why exposed Redis is treated as critical.
Exploitation of exposed services: unauthenticated Redis access used to write a webshell to the web root through CONFIG SET and SAVE.
Redis 7.0.15 Unauthenticated Access and Webshell Write
15 RESP (Redis Serialization Protocol) sessions against Redis 7.0.15 running without authentication on 10.99.0.22:6379. The server accepts all commands without requiring AUTH. Commands executed include INFO server (version and configuration disclosure), CONFIG GET dir/dbfilename/requirepass/protected-mode (confirming no password and protected-mode disabled), CLIENT LIST (connected client enumeration), KEYS * (full key enumeration), CONFIG SET dir/dbfilename (changing dump path to /tmp/shell.php), SET webshell with PHP payload, SAVE (writing the webshell to disk), then CONFIG restoration and cleanup. All 150 packets are cleartext RESP between 10.99.0.10 and 10.99.0.22 across 15 separate connections. Zeek logged 30 connection records and 16 protocol anomalies (weird.log).
Redis Unauthorized Access and Webshell Write Attempt
Simulated attack against an unprotected Redis instance. The attacker enumerates server info, dumps all keys, reads stored data, then changes the dump directory to /tmp, sets the filename to shell.php, writes a PHP webshell payload, and triggers SAVE. This is the standard Redis webshell deployment technique. All commands visible in cleartext RESP.