Finding F-01
Public administration service allows server control
- Target
https://yourstore.com:8443/maintenance/run on 203.0.113.10- Summary
- An internet-accessible maintenance service accepted operating-system commands without authentication. A benign identity command executed as root on the application server. No destructive commands or persistence were attempted.
- Evidence
- Synthetic capture, without cookies or authorisation headers: POST https://yourstore.com:8443/maintenance/run HTTP/1.1; body {"command":"id"} → HTTP/1.1 200 OK; {"stdout":"uid=0(root) gid=0(root)"}. The returned identity established privileged command execution.
- Impact
- An unauthenticated attacker could read application secrets, alter hosted application data or stop services. These broader consequences follow from root privileges; destructive effects were not exercised.
- Fix
- Immediately block public access to port 8443. Remove the command runner, enforce administrative authentication and network restrictions, and run maintenance tasks without root privileges. Review logs and rotate accessible secrets.
- Retest
- Fixed External access was blocked; the command runner was removed and administrative access required authentication through the management network.