Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security issue: sudo xkeysnail without a password allows for privilege escalation (and information leak) #861

Open
dguerri opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dguerri
Copy link

dguerri commented Mar 19, 2024

Describe the bug
Kinto installs an insecure sudoers configuration in limitedadmins file. This configuration permits executing sudo xkeysnail without requiring a password, and allows the use of arbitrary parameters for xkeysnail. These two facts grant the potential to create a root shell by constructing a specifically crafted Python configuration file.

Screenshot 2024-03-19 at 22 29 31

Another potential misuse involves feeding sensitive files to sudo xkeysnail disguised as configuration files. This trickery can cause xkeysnail to inadvertently print the first line of the file, potentially exposing sensitive information.

Screenshot 2024-03-19 at 22 32 23

Expected behavior

xkeysnail shouldn't be run with sudo insecurely.

Install Type: Bare Metal and VM
Distro: Kali Rolling
DE: Gnome, XFCE, KDE
Branch: master
Commit: any

@dguerri dguerri added the bug Something isn't working label Mar 19, 2024
@dguerri dguerri changed the title Security issue: sudo xkeysnail allows privilege escalation (and information leak) Security issue: sudo xkeysnail without a password allows for privilege escalation (and information leak) Mar 19, 2024
@dguerri
Copy link
Author

dguerri commented Mar 19, 2024

Moreover, depending on the umask of the system, limitedadmins installation code could make limitedadmins world-readable, which is dangerous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants