Re:OpenSSH Pre-Auth Double Free – CVE-2023-25136 – Writeup a...
by eklitzke on Wednesday February 08, 2023 @03:35PM
(#34714615)
As you pointed out it's a DOS in the sense that causing a process to fork/crash is much more expensive than a regular denied connection, so it would be easier for an attacker to overload the server using this technique than it would be if they were just making regular denied connections. Also consider that on many systems this would trigger a core dump which will cause a few MB to be written to disk (although you probably can't fill up the disk because in the default configuration most systems are configured to keep either just one core dump or N, where N is some small number like 10).
I think the audit log stuff is a red herring because regular denied connections are already written to the audit log.
Re:OpenSSH Pre-Auth Double Free – CVE-2023-25136 – Writeup a...
by acdha on Wednesday February 08, 2023 @06:08PM
(#34716958)
Does anything have core dumps enabled by default any more? I thought about that but it’s been years (decades?) since I encountered it unintentionally.
Re:OpenSSH Pre-Auth Double Free – CVE-2023-25136 – Writeup a...
by userbinator on Wednesday February 08, 2023 @03:48PM
(#34714850)
You could just open the connections and let them sit without crashing the process. Then those processes and connections will actually be consuming resources instead of crashing and disappearing.
Re:OpenSSH Pre-Auth Double Free – CVE-2023-25136 – Writeup a...
by mike_hock on Wednesday February 08, 2023 @05:23PM
(#34716329)
... up to MaxStartups. The most important resource they'd be consuming would be the startup slots.
Re:OpenSSH Pre-Auth Double Free – CVE-2023-25136 – Writeup a...
by acdha on Wednesday February 08, 2023 @06:11PM
(#34716988)
How many resources does that use, however? I’m not sure anything but an embedded device would even notice any of these possibilities. The closest I could come is Ubuntu’s old crash reporter but I thought they hardened that a while back.
1. I'm not sure this is very useful but I was thinking that if someone follows one of the security hardening standards, their servers are configured to hang until the audit log buffer can be flushed but you could more easily hit that by failed login requests unless they have something like fail2ban installed.