Exploit databaseDownload repository ZIP
GH-11599b11e3ec2526a71bedead293fc63
kernelzeroday/cve-2021-3156-baron-samedit
Sources for CVE-2021-3156
85 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files73
kernelzeroday/cve-2021-3156-baron-sameditRevision 33ff21070921
- ↑..Parent directory
- sudoers
- sudoers.defs
- test1.out.ok
- test1.sh
- test10.out.ok
- test10.sh
- test11.out.ok
- test11.sh
- test12.out.ok
- test12.sh
- test13.out.ok
- test13.sh
- test14.out.ok
- test14.sh
- test15.out.ok
- test15.sh
- test16.out.ok
- test16.sh
- test17.out.ok
- test17.sh
- test18.out.ok
- test18.sh
- test19.out.ok
- test19.sh
- test2.out.ok
- test2.sh
- test20.conf
- test20.out.ok
- test20.sh
- test21.conf
- test21.out.ok
- test21.sh
- test22.out.ok
- test22.sh
- test23.out.ok
- test23.sh
- test24.out.ok
- test24.sh
- test25.out.ok
- test25.sh
- test26.err.ok
- test26.out.ok
- test26.sh
- test27.out.ok
- test27.sh
- test28.out.ok
- test28.sh
- test29.out.ok
- test29.sh
- test3.out.ok
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/sudo-1.9.5p1/plugins/sudoers/regress/cvtsudoers/test33.sh
Shell · 1,290 bytes#!/bin/sh
#
# Test LDAP negated sudoRunAsUser and sudoRunAsGroup converted to sudoers.
#
: ${CVTSUDOERS=cvtsudoers}
$CVTSUDOERS -c "" -i ldif -f sudoers <<EOF
dn: dc=sudo,dc=ws
objectClass: dcObject
objectClass: organization
dc: courtesan
o: Sudo World Headquarters
description: Sudo World Headquarters
# Organizational Role for Directory Manager
dn: cn=Manager,dc=sudo,dc=ws
objectClass: organizationalRole
cn: Manager
description: Directory Manager
# SUDOers, sudo.ws
dn: ou=SUDOers,dc=sudo,dc=ws
objectClass: top
objectClass: organizationalUnit
description: SUDO Configuration Subtree
ou: SUDOers
# defaults, SUDOers, sudo.ws
dn: cn=defaults,ou=SUDOers,dc=sudo,dc=ws
objectClass: top
objectClass: sudoRole
cn: defaults
description: Default sudoOption's go here
sudoOption: log_output
# root, SUDOers, sudo.ws
dn: cn=root,ou=SUDOers,dc=sudo,dc=ws
objectClass: top
objectClass: sudoRole
cn: root
sudoUser: root
sudoRunAsUser: ALL
sudoRunAsGroup: ALL
sudoHost: ALL
sudoCommand: ALL
sudoOption: !authenticate
# millert, SUDOers, sudo.ws
dn: cn=millert,ou=SUDOers,dc=sudo,dc=ws
objectClass: top
objectClass: sudoRole
cn: millert
sudoUser: millert
sudoRunAsUser: !bin
sudoRunAsUser: !root
sudoRunAsUser: ALL
sudoRunAsGroup: ALL
sudoRunAsGroup: !wheel
sudoHost: ALL
sudoCommand: ALL
EOF