Skip to content
Crypto Disclosed report Beginner CVE-2020-9283

SSH server due to Improper Signature Verification

The project used an outdated version of the Go x/crypto library whose SSH package mishandles signature verification for certain public key types. An attacker could supply a crafted ed25519 or security-key public key and signature that makes the SSH server or client panic, causing a denial of service.

escanor56 Follow

Originally disclosed on HackerOne

High 7.0 View original
  • Disclosed after 24 days

I found that you are using golang.org/x/[email protected] which has a vulnerability that was fixed in this version golang.org/x/[email protected] but that vulnerability is: golang.org/x/crypto/ssh is an SSH client and server Version v0.0.0-20200220183623-bac4c82f6975 of golang.org/x/crypto fixes a vulnerability in the golang.org/x/crypto/ssh package which allowed peers to cause a panic in SSH servers that accept public keys and in any SSH client. You can check all of the info here with this CVE: CVE-2020-9283.

Impact

An attacker can craft an ssh-ed25519 or [email protected] public key, such that the library will panic when trying to verify a signature with it. Clients can deliver such a public key and signature to any golang.org/x/crypto/ssh server with a PublicKeyCallback, and servers can deliver them to any golang.org/x/crypto/ssh client.

The original report as published on HackerOne, by escanor56. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the SSH library did not properly validate the structure of ed25519 and security-key public keys before verifying a signature, so a malformed key triggered a panic.

Impact

An attacker could crash the SSH server or client, causing a denial of service; the text does not show this was actually exploited against the target.

What the attacker needed

Ability to connect to the SSH service; server uses PublicKeyCallback

The fix

The dependency should be upgraded to a version of golang.org/x/crypto that contains the fix for CVE-2020-9283.

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 report has not been written yet. The Original tab links to the source.

The software relies on a shared Go library that handles SSH connections. That library had a bug where a specially crafted public key could crash the program instead of being rejected. The report just points out the old version is in use and links to the public advisory.

What is Crypto?

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

More from Sifchain

View all

The newest disclosed reports for this program.

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.