Skip to content

Restrict htoprc symlink resolution with owner check#1947

Open
Explorer09 wants to merge 1 commit intohtop-dev:mainfrom
Explorer09:settings-symlink
Open

Restrict htoprc symlink resolution with owner check#1947
Explorer09 wants to merge 1 commit intohtop-dev:mainfrom
Explorer09:settings-symlink

Conversation

@Explorer09
Copy link
Copy Markdown
Contributor

Restrict the possibility of a symlink attack on the htoprc file. If the htoprc file to be read is a symlink, only resolve the link if it's owned by the same EUID or root user (UID 0).

@Explorer09 Explorer09 force-pushed the settings-symlink branch 4 times, most recently from 95099b7 to de2882a Compare April 7, 2026 16:20
Restrict the possibility of a symlink attack on the htoprc file.
If the htoprc file to be read is a symlink, only resolve the link if
it's owned by the same EUID or root user (UID 0).

Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant