Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/asepsaepdin/cve-2021-3560
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubasepsaepdin/cve-2021-3560

CVE-2021-3560

Proof-of-concept exploit for CVE-2021-3560, a Polkit local privilege escalation vulnerability, allowing unprivileged users to gain root access. Includes usage instructions and educational notes.

View Repository
13 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-3560 - Polkit Local Privilege Escalation


⚠️ For educational and authorized security research purposes only

Original Exploit Authors

Very grateful to the original PoC author @UNICORDev by (@NicPWNs and @Dev-Yeoj)

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.

Demo

polkit


Step Guides

  1. Install git, then clone the script from the github repository:

    root@kitploit:~
    sudo apt install git python3 -y
    git clone https://github.com/asepsaepdin/CVE-2021-3560.git
    
  2. Run the PoC script using command:

    root@kitploit:~
    python3 exploit-CVE-2021-3560.py -u hacker -p password
    

    Notes: specify -u options with the intended username and -p options with the intended password

  3. Verify the created user using command:

    root@kitploit:~
    su hacker
    id
    

Credits

  • https://nvd.nist.gov/vuln/detail/CVE-2021-3560
  • https://app.hackthebox.com/machines/Paper
  • https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/
  • https://github.com/Almorabea/Polkit-exploit/blob/main/CVE-2021-3560.py
Download Tool