Privilege Handling

Detects unsafe privilege handling in SUID/SGID binaries, environment-variable trust in privileged code, insecure umask, temp-file races, and symlink-follow bugs in /tmp. Use when writing or modifying SUID/SGID-installed code, code that drops or elevates privileges via setuid/setgid/seteuid/seteuid_r, anything that reads PATH/LD_*/IFS environment variables, code that creates files in /tmp or other world-writable directories, or anything that opens a file whose path may contain a symlink controlled by a less-privileged user.

thejefflarson 9aab0d7 4.2 KB Updated

File contents

thejefflarson/soundcheck/tree/main/.claude/skills/privilege-handling commit 9aab0d75a7

Frequently asked questions

npx skillmds@latest add thejefflarson/privilege-handling