POC详情: 6481a1cc7f4c82b4d99949d385a377c48a63a76c

来源
关联漏洞
标题: polkit 代码问题漏洞 (CVE-2021-3560)
描述:polkit是一个在类 Unix操作系统中控制系统范围权限的组件。通过定义和审核权限规则,实现不同优先级进程间的通讯。 polkit 存在代码问题漏洞,该漏洞源于当请求进程在调用polkit_system_bus_name_get_creds_sync之前断开与dbus-daemon的连接时,该进程无法获得进程的唯一uid和pid,也无法验证请求进程的特权。
描述
Script Bash --  CVE-2021-3560
介绍
# Bash-CVE-2021-3560
POC Bash --  CVE-2021-3560 
Polkit Local Privilege Escalation Exploit

This repository provides a ** bash exploit** for [CVE-2021-3560](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3560), a local privilege escalation vulnerability in **polkit** affecting many modern Linux distributions.
**!!!!!! Under test may cause instability !!!!!**

## 💥 Vulnerability Summary

Discovered by **Kevin Backhouse**, this vulnerability allows an unprivileged user to create accounts with administrative privileges via the `dbus` interface, by racing the polkit authorization check.

- **Vulnerable package**: `polkit <= 0.119`
- **CVE ID**: CVE-2021-3560
- **Impact**: Local Privilege Escalation (no authentication required)
- **CVSS**: 7.8 (High)

📰 [Original write-up by Kevin Backhouse (GitHub)](https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/)

## 🚀 Exploit Features

- Clean and readable bash script
- Configurable delay loop for race condition
- Stops after a defined number of failed attempts
- Silent execution (suppresses command spam)
- Automatically sets password for the new user

## 🔧 Usage

```bash
chmod +x exploit3560.sh
./exploit3560.sh
文件快照

[4.0K] /data/pocs/6481a1cc7f4c82b4d99949d385a377c48a63a76c ├── [2.9K] exploit3560.sh └── [1.2K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。