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

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2025-26465 PoC — Openssh: machine-in-the-middle attack if verifyhostkeydns is enabled

Source
Associated Vulnerability
Title:Openssh: machine-in-the-middle attack if verifyhostkeydns is enabled (CVE-2025-26465)
Description:A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. A machine-in-the-middle attack can be performed by a malicious machine impersonating a legit server. This issue occurs due to how OpenSSH mishandles error codes in specific conditions when verifying the host key. For an attack to be considered successful, the attacker needs to manage to exhaust the client's memory resource first, turning the attack complexity high.
Description
Patch Manual para a correção das  CVE-2025-26465-e-CVE-2025-26466, para sistemas sem update do OpenSSH
Readme
# 🛡️ Mitigação Manual - OpenSSH CVE-2025-26465 & CVE-2025-26466

## 🔍 Sobre o Script
Este script aplica **mitigações manuais** para os problemas de segurança no **OpenSSH**, sem a necessidade de atualização imediata.

🚨 **CVE-2025-26465**  
> Remove `VerifyHostKeyDNS` para evitar a interceptação de conexões SSH.  
🚨 **CVE-2025-26466**  
> Ajusta `MaxStartups` para evitar ataques **DoS de pré-autenticação**.

---

## 📜 Como Usar o Script
1️⃣ **Descarregue o Arquivo**  
```bash
wget https://github.com/dolutech/patch-manual-CVE-2025-26465-e-CVE-2025-26466/raw/main/mitigacao-openssh.sh
```
3️⃣ **Dê permissão de execução**  
```bash
chmod +x mitigacao-openssh.sh
```
4️⃣ **Execute o script como root**  
```bash
sudo ./mitigacao-openssh.sh
```
## 🛑 Notas Importantes
- **Essa mitigação não substitui a atualização completa do OpenSSH**, que deve ser feita assim que possível.
- O backup do `sshd_config` será salvo com um timestamp para evitar perda de dados.
- Se houver **erros ao reiniciar o SSH**, verifique manualmente o arquivo `/etc/ssh/sshd_config`.

📌 **Desenvolvido por:**  
👤 **Lucas Catão de Moraes**  
🌍 [https://cataodemoraes.com](https://cataodemoraes.com) | [https://dolutech.com](https://dolutech.com)
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 →