feat: a3
All checks were successful
zip and release / build-and-release (push) Successful in 3s

This commit is contained in:
Leo
2026-05-22 11:52:02 +02:00
parent b118e163b2
commit 58553b688a
2 changed files with 9 additions and 0 deletions

5
sheet05/a3/b.txt Normal file
View File

@@ -0,0 +1,5 @@
The script runs with root privileges because the setuid bit is set.
Since it just asks for a username and saves the new hash to /etc/shadow,
and there is no validation checking if the user running the program is actually changing their own password,
someone could simply run the program, type root as the username, and set a new password for the root user.
The script would then overwrite the actual root password in /etc/shadow.