WebTop runs as root on web servers that may already be compromised, and its dashboard shows strings that attackers control (URLs, User-Agents, file names, command lines). Both directions are treated as hostile:
- On the host, WebTop only reads: logs,
/proc, inotify events, Apache mod_status (a localGET /server-status, which Apache writes to its access log), php-fpm status (FastCGI, read-onlyGETof the status page) and LiteSpeed reports. It never executes, deletes or modifies anything it finds. - In the web dashboard (
--web), every attacker-controlled value is HTML-escaped, and a strict Content-Security-Policy with a per-run nonce blocks script that a missed escape could inject. The dashboard binds to127.0.0.1by default, needs a random per-run token (exchanged for anHttpOnly,SameSite=Strictcookie), is read-only and loads nothing from the network. - IP context never leaves the host unless you pass
--geo online.
Please report security issues privately via GitHub's Report a vulnerability
(Security → Advisories) on this repository, not in a public issue. Include the version
(webtop.py --version) and, if the issue is in the dashboard, the log line or request that
triggers it.