Capabilities
To find capabilities:
Exploitation
To find:
To exploit cap_dac_override:
For example if it is vim:
Because the binary has the cap_dac_override capability set, it can escalate the privileges of the user who runs it.
A system file can be modified with this capability. Modifying the root user in /etc/passwd
allows for login without password.
for non interactive method.
Then use su
to get root access.
Last updated