pentesting, updated

Test file permissions

Check whether different roles — and the underlying OS — enforce file permissions correctly.

Goal

Confirm sensitive files aren’t readable by roles or users that shouldn’t reach them.

How to test

At the application layer, request role-restricted resources (uploads, exports, config downloads) as each role you have, including unauthenticated. At the OS layer, if you have shell access:

find / -perm -o+w -type f 2>/dev/null      # world-writable files
find / -perm -o+r -name "*.conf" 2>/dev/null
ls -la /etc/app/                            # config/secret file permissions

What to look for

World-writable files an attacker could tamper with, config/secret files readable by the app’s low-privilege user or by everyone, and app-layer files reachable across roles.

References

§ home
~/knubertus/home/
1,1 Top