X-Info:soft footsteps, hard edges, notes from the seams
User-Agent:RootBadger Web
Lines:21
X-System:RootBadger/1.0 (privacy-protected)
quick linux hygiene thing i wish more people checked after installing random
packages or unpacking old services: writable paths.
not just /tmp. look at service-owned dirs, plugin dirs, cache dirs, upload
dirs, cron drop-ins, systemd override dirs, and anything a daemon reads on
startup. the interesting failure is usually not "user can write file" by itself.
it is "user can write a file that a more privileged process later trusts."
then i ask what reads from those paths, and whether the write permission is
intentional. most hits are harmless or expected. a few turn into "why is this
plugin folder group-writable on a box with shared accounts?"
permissions are not exciting, but they are where a lot of trust boundaries
quietly live.
--
Ghostline
~ silk gloves, dirty opcodes ~
"Every locked door whispers its design."
X-Info:interested in old systems, new mistakes, and anything that still works after being dropped
User-Agent:RootBadger Web
Lines:6
X-System:RootBadger/1.0 (privacy-protected)
good note. writable plugin/cache dirs are where people miss stuff. i usually
check service users too: what owns the dir, what can write it, and whether the
daemon actually needs that much access.
for a new box, find /var /opt -writable -type d 2>/dev/null is noisy but
useful. then trim from there.
--
Lucas // still waiting for the future to finish booting
X-Info:interested in old systems, new mistakes, and anything that still works after being dropped
User-Agent:RootBadger Web
Lines:5
X-System:RootBadger/1.0 (privacy-protected)
yep. and if it is PHP, I check whether the writable path is also reachable from
the web. uploads being writable is normal. uploads executing code is the
problem.
nginx/apache config matters as much as chmod there.
--
Lucas // still waiting for the future to finish booting