home.social

#setuid — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #setuid, aggregated by home.social.

  1. Folks complaining (validly) about why we're still using archaic stuff like #SETUID for privilege escalation.

    Meanwhile:

    SELinux: "Am I a joke to you?"

    Like, the security stuff to make linux tighter than factory lug nut is there, and has been there for literal decades.

    The question is whether we value it more than our convenience.

    I can't remember if it was SELinux or AppArmor, or one of the other Linux security overhaul mechanisms, but one of them used to have a publicly-accessible demonstration server where you would ssh in as root and try to hack around. I remember trying it out, and sure enough, you basically couldn't do a single thing on the box, even logged in directly as root.

  2. Folks complaining (validly) about why we're still using archaic stuff like #SETUID for privilege escalation.

    Meanwhile:

    SELinux: "Am I a joke to you?"

    Like, the security stuff to make linux tighter than factory lug nut is there, and has been there for literal decades.

    The question is whether we value it more than our convenience.

    I can't remember if it was SELinux or AppArmor, or one of the other Linux security overhaul mechanisms, but one of them used to have a publicly-accessible demonstration server where you would ssh in as root and try to hack around. I remember trying it out, and sure enough, you basically couldn't do a single thing on the box, even logged in directly as root.

  3. Folks complaining (validly) about why we're still using archaic stuff like #SETUID for privilege escalation.

    Meanwhile:

    SELinux: "Am I a joke to you?"

    Like, the security stuff to make linux tighter than factory lug nut is there, and has been there for literal decades.

    The question is whether we value it more than our convenience.

    I can't remember if it was SELinux or AppArmor, or one of the other Linux security overhaul mechanisms, but one of them used to have a publicly-accessible demonstration server where you would ssh in as root and try to hack around. I remember trying it out, and sure enough, you basically couldn't do a single thing on the box, even logged in directly as root.

  4. Folks complaining (validly) about why we're still using archaic stuff like #SETUID for privilege escalation.

    Meanwhile:

    SELinux: "Am I a joke to you?"

    Like, the security stuff to make linux tighter than factory lug nut is there, and has been there for literal decades.

    The question is whether we value it more than our convenience.

    I can't remember if it was SELinux or AppArmor, or one of the other Linux security overhaul mechanisms, but one of them used to have a publicly-accessible demonstration server where you would ssh in as root and try to hack around. I remember trying it out, and sure enough, you basically couldn't do a single thing on the box, even logged in directly as root.

  5. Folks complaining (validly) about why we're still using archaic stuff like #SETUID for privilege escalation.

    Meanwhile:

    SELinux: "Am I a joke to you?"

    Like, the security stuff to make linux tighter than factory lug nut is there, and has been there for literal decades.

    The question is whether we value it more than our convenience.

    I can't remember if it was SELinux or AppArmor, or one of the other Linux security overhaul mechanisms, but one of them used to have a publicly-accessible demonstration server where you would ssh in as root and try to hack around. I remember trying it out, and sure enough, you basically couldn't do a single thing on the box, even logged in directly as root.

  6. While #NixOS should not be affected by #CopyFail as it uses recent kernels, here are additional fixes you can apply:

    Disabling setuid does not mitigate it, but reduces the attack surfaces overall significantly.

    Instead of #sudo, #su, #pkexec and other #setuid binaries you can use #run0 or a dedicated root account.

    I have disabled setuid for a bunch of binaries I don't need, they still work when ran as root, with run0 or #sudo-rs.

    ```nix
    boot.blacklistedKernelModules = [
    "algif_aead"
    ];

    security.sudo.enable = false;

    security.wrappers = {
    su.enable = false;
    pkexec.enable = false;

    # example setuid binary
    chsh = {
    source = "${pkgs.shadow}/bin/chsh";
    setuid = lib.mkForce false;
    owner = "root";
    group = "root";
    };
    };
    ```

  7. While #NixOS should not be affected by #CopyFail as it uses recent kernels, here are additional fixes you can apply:

    Disabling setuid does not mitigate it, but reduces the attack surfaces overall significantly.

    Instead of #sudo, #su, #pkexec and other #setuid binaries you can use #run0 or a dedicated root account.

    I have disabled setuid for a bunch of binaries I don't need, they still work when ran as root, with run0 or #sudo-rs.

    ```nix
    boot.blacklistedKernelModules = [
    "algif_aead"
    ];

    security.sudo.enable = false;

    security.wrappers = {
    su.enable = false;
    pkexec.enable = false;

    # example setuid binary
    chsh = {
    source = "${pkgs.shadow}/bin/chsh";
    setuid = lib.mkForce false;
    owner = "root";
    group = "root";
    };
    };
    ```

  8. While #NixOS should not be affected by #CopyFail as it uses recent kernels, here are additional fixes you can apply:

    Disabling setuid does not mitigate it, but reduces the attack surfaces overall significantly.

    Instead of #sudo, #su, #pkexec and other #setuid binaries you can use #run0 or a dedicated root account.

    I have disabled setuid for a bunch of binaries I don't need, they still work when ran as root, with run0 or #sudo-rs.

    ```nix
    boot.blacklistedKernelModules = [
    "algif_aead"
    ];

    security.sudo.enable = false;

    security.wrappers = {
    su.enable = false;
    pkexec.enable = false;

    # example setuid binary
    chsh = {
    source = "${pkgs.shadow}/bin/chsh";
    setuid = lib.mkForce false;
    owner = "root";
    group = "root";
    };
    };
    ```

  9. While #NixOS should not be affected by #CopyFail as it uses recent kernels, here are additional fixes you can apply:

    Disabling setuid does not mitigate it, but reduces the attack surfaces overall significantly.

    Instead of #sudo, #su, #pkexec and other #setuid binaries you can use #run0 or a dedicated root account.

    I have disabled setuid for a bunch of binaries I don't need, they still work when ran as root, with run0 or #sudo-rs.

    ```nix
    boot.blacklistedKernelModules = [
    "algif_aead"
    ];

    security.sudo.enable = false;

    security.wrappers = {
    su.enable = false;
    pkexec.enable = false;

    # example setuid binary
    chsh = {
    source = "${pkgs.shadow}/bin/chsh";
    setuid = lib.mkForce false;
    owner = "root";
    group = "root";
    };
    };
    ```

  10. While #NixOS should not be affected by #CopyFail as it uses recent kernels, here are additional fixes you can apply:

    Disabling setuid does not mitigate it, but reduces the attack surfaces overall significantly.

    Instead of #sudo, #su, #pkexec and other #setuid binaries you can use #run0 or a dedicated root account.

    I have disabled setuid for a bunch of binaries I don't need, they still work when ran as root, with run0 or #sudo-rs.

    ```nix
    boot.blacklistedKernelModules = [
    "algif_aead"
    ];

    security.sudo.enable = false;

    security.wrappers = {
    su.enable = false;
    pkexec.enable = false;

    # example setuid binary
    chsh = {
    source = "${pkgs.shadow}/bin/chsh";
    setuid = lib.mkForce false;
    owner = "root";
    group = "root";
    };
    };
    ```

  11. @aral proves the #systemd devs right in their goal to rid Linux of #setuid - but with the recent LLM-assisted vulnerability hunts, I feel like we're going to see a lot more issues like these, also in completely different areas.

  12. @aral proves the #systemd devs right in their goal to rid Linux of #setuid - but with the recent LLM-assisted vulnerability hunts, I feel like we're going to see a lot more issues like these, also in completely different areas.

  13. @aral proves the #systemd devs right in their goal to rid Linux of #setuid - but with the recent LLM-assisted vulnerability hunts, I feel like we're going to see a lot more issues like these, also in completely different areas.

  14. @aral proves the #systemd devs right in their goal to rid Linux of #setuid - but with the recent LLM-assisted vulnerability hunts, I feel like we're going to see a lot more issues like these, also in completely different areas.

  15. @aral proves the #systemd devs right in their goal to rid Linux of #setuid - but with the recent LLM-assisted vulnerability hunts, I feel like we're going to see a lot more issues like these, also in completely different areas.

  16. [Перевод] Перестаньте переживать об allowPrivilegeEscalation

    Многие инженеры теряются в нюансах настройки allowPrivilegeEscalation в Kubernetes. Автор статьи простым языком объясняет, зачем нужен этот флаг, как он работает и почему его наличие или отсутствие не критично для большинства сценариев. Если хотите понять, как устроена безопасность контейнеров, — эта статья для вас.

    habr.com/ru/companies/flant/ar

    #allowPrivilegeEscalation #поды #kubernetes #security_contexts #контексты_безопасности #setuid #setreuid #привилегированный_контейнер #безопасность_контейнеров

  17. [Перевод] Перестаньте переживать об allowPrivilegeEscalation

    Многие инженеры теряются в нюансах настройки allowPrivilegeEscalation в Kubernetes. Автор статьи простым языком объясняет, зачем нужен этот флаг, как он работает и почему его наличие или отсутствие не критично для большинства сценариев. Если хотите понять, как устроена безопасность контейнеров, — эта статья для вас.

    habr.com/ru/companies/flant/ar

    #allowPrivilegeEscalation #поды #kubernetes #security_contexts #контексты_безопасности #setuid #setreuid #привилегированный_контейнер #безопасность_контейнеров

  18. [Перевод] Перестаньте переживать об allowPrivilegeEscalation

    Многие инженеры теряются в нюансах настройки allowPrivilegeEscalation в Kubernetes. Автор статьи простым языком объясняет, зачем нужен этот флаг, как он работает и почему его наличие или отсутствие не критично для большинства сценариев. Если хотите понять, как устроена безопасность контейнеров, — эта статья для вас.

    habr.com/ru/companies/flant/ar

    #allowPrivilegeEscalation #поды #kubernetes #security_contexts #контексты_безопасности #setuid #setreuid #привилегированный_контейнер #безопасность_контейнеров

  19. [Перевод] Перестаньте переживать об allowPrivilegeEscalation

    Многие инженеры теряются в нюансах настройки allowPrivilegeEscalation в Kubernetes. Автор статьи простым языком объясняет, зачем нужен этот флаг, как он работает и почему его наличие или отсутствие не критично для большинства сценариев. Если хотите понять, как устроена безопасность контейнеров, — эта статья для вас.

    habr.com/ru/companies/flant/ar

    #allowPrivilegeEscalation #поды #kubernetes #security_contexts #контексты_безопасности #setuid #setreuid #привилегированный_контейнер #безопасность_контейнеров

  20. wait3() System Call as a Side Channel in #Setuid Programs: nvidia-modprobe case study (CVE-2024-0149)

    security.opensuse.org/2025/03/

  21. wait3() System Call as a Side Channel in #Setuid Programs: nvidia-modprobe case study (CVE-2024-0149)

    security.opensuse.org/2025/03/

  22. wait3() System Call as a Side Channel in #Setuid Programs: nvidia-modprobe case study (CVE-2024-0149)

    security.opensuse.org/2025/03/

  23. wait3() System Call as a Side Channel in #Setuid Programs: nvidia-modprobe case study (CVE-2024-0149)

    security.opensuse.org/2025/03/

  24. wait3() System Call as a Side Channel in #Setuid Programs: nvidia-modprobe case study (CVE-2024-0149)

    security.opensuse.org/2025/03/

  25. I could also mount the encrypted partitions on the #HardDrive and to recreate the symbolic link which I’d deleted. Luckily this allowed my original system to start #Booting again. However, something was still wrong with sudo but looking it up, there was ample help online about what was wrong: the #program has to be #setuid 0 and so once I was able to do that I recovered the system. Phew.

    #GNU #Linux #ShaggyDogStory

  26. I could also mount the encrypted partitions on the #HardDrive and to recreate the symbolic link which I’d deleted. Luckily this allowed my original system to start #Booting again. However, something was still wrong with sudo but looking it up, there was ample help online about what was wrong: the #program has to be #setuid 0 and so once I was able to do that I recovered the system. Phew.

    #GNU #Linux #ShaggyDogStory

  27. I could also mount the encrypted partitions on the #HardDrive and to recreate the symbolic link which I’d deleted. Luckily this allowed my original system to start #Booting again. However, something was still wrong with sudo but looking it up, there was ample help online about what was wrong: the #program has to be #setuid 0 and so once I was able to do that I recovered the system. Phew.

    #GNU #Linux #ShaggyDogStory

  28. I could also mount the encrypted partitions on the #HardDrive and to recreate the symbolic link which I’d deleted. Luckily this allowed my original system to start #Booting again. However, something was still wrong with sudo but looking it up, there was ample help online about what was wrong: the #program has to be #setuid 0 and so once I was able to do that I recovered the system. Phew.

    #GNU #Linux #ShaggyDogStory

  29. I could also mount the encrypted partitions on the #HardDrive and to recreate the symbolic link which I’d deleted. Luckily this allowed my original system to start #Booting again. However, something was still wrong with sudo but looking it up, there was ample help online about what was wrong: the #program has to be #setuid 0 and so once I was able to do that I recovered the system. Phew.

    #GNU #Linux #ShaggyDogStory

  30. Linux Kernel: TOCTOU in Exec System | …I am sure that there was a vulnerability of this exact kind in Unix circa 1988 +/- 4yrs

    I’m pretty sure there was a direct one on the inode permissions, and possibly a second one involving symlinks. Every bug has its day again and again and again.

    There is a Time-of-Check / Time-of-Use issue in the Linux kernel in the exec system calls. The executability permissions are checked at a different time than the set-user-ID bit is applied. This could lead to privilege escalation.

    https://github.com/google/security-research/security/advisories/GHSA-c45w-xwww-rfgg

    #CVE202443882 #security #setuid #unix

  31. Linux Kernel: TOCTOU in Exec System | …I am sure that there was a vulnerability of this exact kind in Unix circa 1988 +/- 4yrs

    I’m pretty sure there was a direct one on the inode permissions, and possibly a second one involving symlinks. Every bug has its day again and again and again.

    There is a Time-of-Check / Time-of-Use issue in the Linux kernel in the exec system calls. The executability permissions are checked at a different time than the set-user-ID bit is applied. This could lead to privilege escalation.

    https://github.com/google/security-research/security/advisories/GHSA-c45w-xwww-rfgg

    #CVE202443882 #security #setuid #unix

  32. Linux Kernel: TOCTOU in Exec System | …I am sure that there was a vulnerability of this exact kind in Unix circa 1988 +/- 4yrs

    I’m pretty sure there was a direct one on the inode permissions, and possibly a second one involving symlinks. Every bug has its day again and again and again.

    There is a Time-of-Check / Time-of-Use issue in the Linux kernel in the exec system calls. The executability permissions are checked at a different time than the set-user-ID bit is applied. This could lead to privilege escalation.

    https://github.com/google/security-research/security/advisories/GHSA-c45w-xwww-rfgg

    #CVE202443882 #security #setuid #unix

  33. #Parallels Desktop has a couple of #setuid binaries: prl_update_helper and Parallels Service. Both binaries run with root privileges and both invoke #bash scripts to run commands with the privileges of root. For such use cases, bash specifically provides a privileged mode using the “-p” flag. Parallels Desktop prior to version 18.1.0 does not take advantage of bash privileged mode, nor does it filter untrusted environment variables. This leads to #local #privilege #escalation.”

    thezdi.com/blog/2023/4/5/bash-

  34. #Parallels Desktop has a couple of #setuid binaries: prl_update_helper and Parallels Service. Both binaries run with root privileges and both invoke #bash scripts to run commands with the privileges of root. For such use cases, bash specifically provides a privileged mode using the “-p” flag. Parallels Desktop prior to version 18.1.0 does not take advantage of bash privileged mode, nor does it filter untrusted environment variables. This leads to #local #privilege #escalation.”

    thezdi.com/blog/2023/4/5/bash-

  35. #Parallels Desktop has a couple of #setuid binaries: prl_update_helper and Parallels Service. Both binaries run with root privileges and both invoke #bash scripts to run commands with the privileges of root. For such use cases, bash specifically provides a privileged mode using the “-p” flag. Parallels Desktop prior to version 18.1.0 does not take advantage of bash privileged mode, nor does it filter untrusted environment variables. This leads to #local #privilege #escalation.”

    thezdi.com/blog/2023/4/5/bash-

  36. #Parallels Desktop has a couple of #setuid binaries: prl_update_helper and Parallels Service. Both binaries run with root privileges and both invoke #bash scripts to run commands with the privileges of root. For such use cases, bash specifically provides a privileged mode using the “-p” flag. Parallels Desktop prior to version 18.1.0 does not take advantage of bash privileged mode, nor does it filter untrusted environment variables. This leads to #local #privilege #escalation.”

    thezdi.com/blog/2023/4/5/bash-

  37. #Parallels Desktop has a couple of #setuid binaries: prl_update_helper and Parallels Service. Both binaries run with root privileges and both invoke #bash scripts to run commands with the privileges of root. For such use cases, bash specifically provides a privileged mode using the “-p” flag. Parallels Desktop prior to version 18.1.0 does not take advantage of bash privileged mode, nor does it filter untrusted environment variables. This leads to #local #privilege #escalation.”

    thezdi.com/blog/2023/4/5/bash-

  38. As it turns out, the #setuid bit in #Unix was invented by Dennis Ritchie to prevent false updates to the moo game leaderboard 🤯 #Unix #history

    minnie.tuhs.org/pipermail/tuhs

  39. As it turns out, the #setuid bit in #Unix was invented by Dennis Ritchie to prevent false updates to the moo game leaderboard 🤯 #Unix #history

    minnie.tuhs.org/pipermail/tuhs

  40. As it turns out, the #setuid bit in #Unix was invented by Dennis Ritchie to prevent false updates to the moo game leaderboard 🤯 #Unix #history

    minnie.tuhs.org/pipermail/tuhs

  41. As it turns out, the #setuid bit in #Unix was invented by Dennis Ritchie to prevent false updates to the moo game leaderboard 🤯 #Unix #history

    minnie.tuhs.org/pipermail/tuhs

  42. As it turns out, the #setuid bit in #Unix was invented by Dennis Ritchie to prevent false updates to the moo game leaderboard 🤯 #Unix #history

    minnie.tuhs.org/pipermail/tuhs

  43. All right #infosec mastodon. How do I find out who is talking about a particular fresh vuln? I’m going to throw out some hashtags and see what turns up relevant conversation.

    #186f495d4be1
    #cve_2022_23093
    #pingbof
    #pr_pack

    Is this a big deal because stack based #bof in a common #setuid binary, or a #shrug because #ping is capability restricted in #freebsd?

    freebsd.org/security/advisorie