-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
We currently store the sorry reason and old shell in the ~/.sorry and ~/.oldshell files respectively of the sorried user. This is a dangerous practice, because:
- If the user had something valuable in the
~/.sorryfile, we overwrite it. - If the user had an existing
~/.oldshellfile, we lose the info about the old shell. - Worst of all,
~/.sorrycould be a symlink created by an attacker to point to important system files. In that case, we would just overwrite those files. (And the scary thing is the script, running as root, actually has permissions to do this.)
We should store this information elsewhere, preferably in a directory that only we control.
Metadata
Metadata
Assignees
Labels
No labels