T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/reserve.py:348- Finding
Unverified PID File Allows Termination of Unrelated Processes
- Content
View full analysis
- Remediation
View remediation
/stat` and `/proc//cmdline`. 5. Verify that the PID file is a regular file owned by the current user and is not group- or world-writable. 6. Prefer retaining a process handle or using a dedicated authenticated local control channel when lifecycle management occurs within one supervising process. 7. Remove stale PID files after successful shutdown and refuse to act when any identity check fails. ]]>
