Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-6387 PoC — Openssh: regresshion - race condition in ssh allows rce/dos

Source
Associated Vulnerability
Title: Openssh: regresshion - race condition in ssh allows rce/dos (CVE-2024-6387)
Description:A security regression (CVE-2006-5051) was discovered in OpenSSH's server (sshd). There is a race condition which can lead sshd to handle some signals in an unsafe manner. An unauthenticated, remote attacker may be able to trigger it by failing to authenticate within a set time period.
Readme
# CVE-2024-6387fixshell

只影响8.5p1 <= OpenSSH < 9.8p1

#### 安装编译依赖

```
sudo apt-get update
sudo apt-get install -y build-essential zlib1g-dev libssl-dev
```

#### 下载指定版本源码

```
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz
```

#### 解压并进入目录

```
tar -xzf openssh-9.8p1.tar.gz
cd openssh-9.8p1
```

#### 编译和安装

```
./configure
make
sudo make install
```

#### 启动并检查安装

```
sudo systemctl restart ssh
ssh -V
```

完整修复脚本保存为fix.sh chmod 777 fix.sh | ./fix.sh

```
#!/bin/bash

# 更新包列表
echo "更新包列表..."
sudo apt-get update

# 安装编译依赖
echo "安装编译依赖..."
sudo apt-get install -y build-essential zlib1g-dev libssl-dev

# 下载指定版本源码
echo "下载OpenSSH 9.8p1源码..."
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz

# 解压并进入目录
echo "解压OpenSSH 9.8p1源码..."
tar -xzf openssh-9.8p1.tar.gz
cd openssh-9.8p1

# 编译和安装
echo "编译和安装OpenSSH 9.8p1..."
./configure
make
sudo make install

# 启动并检查安装
echo "重启SSH服务并检查安装..."
sudo systemctl restart ssh
ssh -V

echo "OpenSSH 9.8p1 安装完成并成功启动。-By muyuanhuck.cn"
```
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →