目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1310

100%

CVE-2021-3560 PoC — polkit 代码问题漏洞

来源
关联漏洞
标题:polkit 代码问题漏洞 (CVE-2021-3560)
Description:polkit是一个在类 Unix操作系统中控制系统范围权限的组件。通过定义和审核权限规则,实现不同优先级进程间的通讯。 polkit 存在代码问题漏洞,该漏洞源于当请求进程在调用polkit_system_bus_name_get_creds_sync之前断开与dbus-daemon的连接时,该进程无法获得进程的唯一uid和pid,也无法验证请求进程的特权。
Description
Part of my cybersecurity thesis consists in exploring and exploiting this vulnerability.
介绍
# Description 
As part of my cybersecurity thesis I wanted to create an exploit for a vulnerability.

I HIGHLY recommend reading this guide, as this exploit is based on it:

https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/

Also, check out this repo, as i took inspiration from it:

https://github.com/Almorabea/Polkit-exploit/blob/main/CVE-2021-3560.py

This code is by no means perfect, sometimes it gets a bit buggy if you set a password for the new user.

I recommend NOT setting a password.

If it does not create a new user, simply retry a few times and it will eventually work.

if you have any advices on how to improve this code, please, feel free to share them :) !



# Disclaimer

The tools and exploits provided in this repository are released for educational and research purposes only. 

The author is not responsible for any misuse or damage that may be caused by the tools or exploits. 

Users are strongly encouraged to use these resources responsibly and ethically, adhering to applicable laws and regulations. 

The author supports ethical hacking and responsible disclosure, and strongly discourages malicious use of these resources.

By using this repository, you agree that you understand the contents of this disclaimer and that you will comply with the terms and conditions outlined.

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →