Skip to content
Crypto Write-up Intermediate

The Zombie SSH: How I Forced a Modern Server into a “Logjam”

An SSH server accepted a weak 1024-bit Diffie-Hellman key exchange algorithm, allowing a man-in-the-middle attacker to force a downgrade and potentially decrypt the session. The reporter demonstrated the downgrade but did not crack the key, and the triage team rejected it as theoretical.

zer0figure Follow

Published on systemweakness.com

In the fast-paced world of Web Application security, we often forget about the infrastructure underneath. We look for XSS in the frontend and SQLi in the backend, but we rarely check the door we used to get in: The SSH Protocol.

Zer0Figure, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

A man-in-the-middle attacker could force the weak key exchange and potentially decrypt the entire SSH session, but the report notes that cracking the 1024-bit key requires significant resources and was not demonstrated.

What the attacker needed

Attacker in man-in-the-middle position; server accepts weak key exchange

How it was found

  1. Scan the SSH server with ssh-audit to list supported algorithms.
  2. Observe that diffie-hellman-group1-sha1 is offered.
  3. Connect with an SSH client forced to use only that weak algorithm.
  4. Confirm the server accepts the handshake and negotiates the weak key exchange.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

SSH is a protocol for securely logging into remote computers. Normally it uses strong encryption, but this server also allowed an old, weak method for setting up the secret key. An attacker who can sit between you and the server could force that weak method, making it easier to break the encryption and read your session.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by zer0figure

View all

11 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.