Exploit database

GH-11599b11e3ec2526a71bedead293fc63

kernelzeroday/cve-2021-3156-baron-samedit

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-3156

85 sources

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

Repository files32

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

src/sudo-1.9.5p1/plugins/sudoers/regress/testsudoers/test13.sh

Shell · 528 bytes
#!/bin/sh
#
# Test sudoers file with reserved words as alias names.
# The standard error output is dup'd to the standard output.
#

: ${TESTSUDOERS=testsudoers}

# Avoid warnings about memory leaks when there is a syntax error
ASAN_OPTIONS=detect_leaks=0; export ASAN_OPTIONS

echo "Testing alias definitions using reserved words"
echo ""
$TESTSUDOERS -d <<EOF 2>&1
Cmnd_Alias ALL=ALL
Cmnd_Alias CHROOT=foo
User_Alias TIMEOUT=foo
Runas_Alias CWD=bar
Host_Alias NOTBEFORE=baz
Host_Alias NOTAFTER=biff

root ALL = ALL
EOF

exit 0