惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
爱范儿
爱范儿
博客园_首页
博客园 - 聂微东
量子位
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
The Cloudflare Blog
T
Tailwind CSS Blog
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
腾讯CDC

NetBird - Networking Knowledge Hub - RSS Feed

NetBird Is Now on the Vultr Marketplace Native NetBird on the GL.iNet Comet Pro (GL-RM10) NetBird v0.71 - IPv6 Overlay Addressing NetBird Exit Nodes - Appear at Home, or Anywhere Else Reporting Bugs and Requesting Features in NetBird Setup and Use Local AdGuard Home Anywhere with NetBird DNS How to Set Up NetBird on PiKVM for Secure Remote KVM Access NetBird v0.69 - CrowdSec IP Reputation for the Reverse Proxy Cloudflare Mesh vs NetBird vs Tailscale: Performance Compared Self-Hosting Nextcloud with Docker and NetBird Implementing Zero Trust with NetBird NetBird v0.67 - Layer 4 Proxy Support for TCP, UDP, and TLS Solwr Enhances Remote Connectivity with NetBird Self-Hosting NetBird with Authentik Jellyfin Media Server - Self-Host Your Movies, TV, and Music Cloudflare Tunnels vs. NetBird Reverse Proxy INFITX Builds Zero-Touch Kubernetes Networking with NetBird NetBird v0.66 - Expose Local Services to the Internet from the CLI Pangolin vs. NetBird Home Assistant Setup Guide with EASY Remote Access NetBird v0.65 - Built-in Reverse Proxy with Custom Domains Docker for Beginners - Everything You Need to Get Started NetBird for SOC 2 Compliance NetBird v0.63 - Custom DNS Zones for Private Network Resolution Vibecode This in a Weekend and Take 5% of the Company NetBird v0.62 - Built-in Local Users with Optional IdP Integration NetBird v0.61.0 - Granular SSH Access Control and Automatic Updates Top 5 Alternatives to OpenVPN Top 5 Open Source Alternatives to Tailscale Top 5 Alternatives to ZeroTier
regreSSHion - A New OpenSSH Server Remote Code Execution ...
Written byMisha Bragin · 2024-07-02 · via NetBird - Networking Knowledge Hub - RSS Feed

regresshion

On July 1, 2024, OpenSSH released version 9.8 that includes security update for a critical vulnerability in sshd(8).

Recent discovery of Qualys Threat Research Unit (TRU) reveals that this vulnerability is a race condition in the signal handler, specifically in the handling of when a client fails to authenticate within a specified grace period (). This issue can lead to a crash or even remote code execution and was present in Portable OpenSSH versions between 8.5p1 and 9.7p1 (inclusive).

The vulnerability is tracked as CVE-2024-6387 and has been assigned a CVSS score of 8.1 (HIGH).

What Is the Problem?

When an SSH client does not authenticate within the (120 seconds by default), the signal handler in sshd is called. This handler calls various functions that are not safe to execute asynchronously, such as . This unsafe execution can cause sshd to enter an inconsistent state, creating a potential for exploitation.

The History and Affected Versions

This vulnerability is actually a regression (hence the name "regreSSHion") of a previously fixed CVE-2006-5051 issue reported in 2006. The problem reappeared in October 2020 with the release of OpenSSH 8.5p1 due to a change in the logging infrastructure. As a result, Versions of OpenSSH up to 4.4p1, plus versions from 8.5p1 to 9.7p1 running on glibc-Linux are vulnerable.

The Exploit

The vulnerability is exploitable on systems using the glibc library, as calls functions like that are not safe to execute in an asynchronous signal handler. An attacker can exploit this by forcing sshd into a specific state right as the signal is delivered.

Exploitation Process:

Theoretical Path: Find a code path that, if interrupted at the right moment, leaves sshd in an inconsistent state. Practical Path: Achieve this state reliably and repeatedly. Timing: Maximize the chances of interrupting sshd at the right moment remotely. By methodically exploiting old and new versions of OpenSSH on and leveraging specific behaviors of and , attackers can achieve remote code execution.

Mitigation and Fixes

The OpenSSH team has released a fix ( commit 81c1099 ) that moves the unsafe signal handling code out of the signal handler context. This fix is part of a larger update aimed at enhancing the security and robustness of sshd.

To protect your systems, update OpenSSH to version 9.8 or later. This will ensure that your sshd is no longer vulnerable to this issue.

Temporary Workarounds

If updating OpenSSH is not immediately possible, you can:

Set to : This mitigates the issue but exposes sshd to potential denial-of-service attacks by exhausting all connection slots. Comment out Unsafe Code: As a quick fix, comment out the unsafe logging code in the signal handler function.

You can also hide your servers from the public by using NetBird, an overlay network and security platform that doesn't require opening ports to the public internet when connecting your machines. This will reduce the risk of exploitation until you can update OpenSSH. Simply install NetBird on your devices and close your public SSH ports.

Acknowledgments

This discovery highlights the continuous collaboration and dedication of the OpenSSH development team and security researchers. Their efforts ensure that OpenSSH remains one of the most secure and reliable software in the world.