Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

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

Source
Associated Vulnerability
Title:polkit 代码问题漏洞 (CVE-2021-3560)
Description:It was found that polkit could be tricked into bypassing the credential checks for D-Bus requests, elevating the privileges of the requestor to the root user. This flaw could be used by an unprivileged local attacker to, for example, create a new local administrator. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Description
Script Bash --  CVE-2021-3560
Readme
# 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
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →