Don't follow symlinks when writing htop_history#1945
Don't follow symlinks when writing htop_history#1945Explorer09 wants to merge 1 commit intohtop-dev:mainfrom
Conversation
634f8d0 to
17c1609
Compare
|
What is a realistic attack scenario here? |
The attack is possible when the directory that the htoprc file resides is writable by the public or a local group. Then, suppose Mallory has write access to the directory, and he If Alice runs htop with sudo privilege, things can get worse. I think you can get the idea. |
|
The same is true for |
Gee. You motivated me to write this: #1947 |
1d87942 to
6cc06f7
Compare
|
For your info, the |
Prevent a symlink attack that allows an attacker to empty any file a user has write permission to. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
6cc06f7 to
3b81f26
Compare
Prevent a symlink attack that allows an attacker to empty any file a user has write permission to.