cve-2021-3156 heap overflow in sudo. roughly 10 years long in sudo. Allowed privilege escalation. It was huge.
- 0 Posts
- 616 Comments
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
44·2 years agoThere are many ways to harden against it, but “just disable root auth” is not really it, since it in itself does not add much.
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
45·2 years agoNo you can alias that command and hijack the password promt via bashrc and then you have the root password as soon as the user enters it.
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
46·2 years agoWith aliases in the bashrc you can hijack any command and execute instead of the command any arbitrary commands. So the command can be extracted, as already stated above, this is not a weakness of sudo but a general one.
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
36·2 years agoAnd how would you not be able to hijack the password when you have control over the user session?
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
45·2 years agoAnd what do you suggest to use otherwise to maintain a server? I am not aware of a solution that would help here? As an attacker you could easily alias any command or even start a modified shell that logs ever keystroke and simulates the default bash/zsh or whatever.
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
148·2 years agoThe scenario OC stated is that if the attacker has access to the user on the server then the attacker would still need the sudo password in order to get root privileges, contrary to direct root login where the attack has direct access to root privileges.
So, now i am looking into this scenario where the attack is on the server with the user privileges: the attacker now modifies for example the bashrc to alias sudo to extract the password once the user runs sudo.
So the sudo password does not have any meaningful protection, other then maybe adding a time variable which is when the user accesses the server and runs sudo
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
109·2 years agoThe attacker that is currently with user privileges on the server?
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
55·2 years agoMost comments here suggest 3 things
- least privilege: Which is ok, but on a Server any modification you do requires root anyway, there is usually very little benefit
- Additional protection through required sudo password: This is for example easily circumvented by modifying the bashrc or similar with an sudo alias to get the password
- Multiuser & audittrails: yes this is a valid point, on a system that is modified or administered by multiple ppl there are various reasons lime access logging and UAC for that
An actual person from the pen testing world: https://youtu.be/fKuqYQdqRIs
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
618·2 years agoThe sudo password can be easily extracted by modifying the bashrc.
ShortN0te@lemmy.mlto
Linux@lemmy.ml•Why disable ssh login with root on a server if I only log in with keys, not password?
621·2 years agoNope, not really. The only reason ppl recommend it is, because “you have then to guess the username too”. Which is just not relevant if you use strong authentication method like keys or only strong passwords.
ShortN0te@lemmy.mlto
Technology@lemmy.ml•Do you have a recommendation for a free Obsidian synchronization method?
2·2 years agoWhy would you need Tailscale for syncthing?
I don’t use browser extensions and I manually copy/paste my passwords to fill in entries.
On most systems copy pasting is heavily insecure since a lot of processes have access to the clipboard. autotype and thinga like browser extensions are considered more secure.
Either you are heavily misinformed about how difficult arch is, or you lack any confidence in your ‘Linux skill’.
Choose the system you want to achieve, follow the wiki and choose the software you want to use using it and you are good to go, it really is not that hard. You can always use archinstall.
Just a simple hole renders them useless. The only method to reconstruct them from there would be any kind of SEM or AFM which would still take weeks to months to years depending on the size/density of the drives.
Even just opening them up and smacking the disks would be sufficient
Next time just encrypt them.
Just because there is no update does not mean there are security vulnerabilities to worry about, or do you have a specific one that is not fixed?
The attack vector seems very narrow to me. It checks the container registry downloads the containers and runs some docker commands.
It has no interface, so in order to attack it you either have to compromise the container registry (but then it would be easier to compromise the containers you download) the secure connection used to download the containers (https is quite stable) or something on the server side.
Also the project does not really look that abundant to me.
EDIT: So i have not checked this, but watchtower is probably using docker for most steps anyway? So basically the only thing that could be attacked is via the notifications watchtower is sending?
Years out of date
What problems does it have? Never ran into an issue for my usecase.
Automatic updates. Works like a dream. Depending on what you are running it can obviously cause issues, either server side breaking or server,client communication issues
Tbf, winget is a god sent and works surprisingly well, took them what? 30 years to get it done?!


Lets not forget the BS when Shows are only partially available, like only Season 1-5,8-12 and so on. Not only is it expensive but also a shitty service with shitty quality and experience.