Skip to content
Crypto Advisory Intermediate CVE-2020-13482

GHSL-2020-094: Missing SSL/TLS certificate hostname validation in em-http-request - CVE-2020-13482

The em-http-request library did not validate the hostname in SSL/TLS certificates, allowing an attacker to perform a man-in-the-middle attack and impersonate a trusted server. This could let the attacker introduce malicious data into otherwise trusted communications.

agustingianni Follow

Originally disclosed on GitHub Security Lab

Missing hostname validation allows an attacker to perform a person in the middle attack against users of the em-http-request library.

agustingianni, on GitHub Security Lab

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

How it worked

Impact

An attacker could assume the identity of a trusted server and introduce malicious data in an otherwise trusted place.

What the attacker needed

Attacker on the network path; victim uses em-http-request over HTTPS

The fix

The vendor fixed the issue after the report was published.

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.

When your app connects to a website over HTTPS, it checks the website's certificate to make sure it's really talking to the right server. This library skipped checking that the certificate matches the server's name, so an attacker on the network could pretend to be that server and intercept or alter the data. This is called a man-in-the-middle attack.

What is Crypto?

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

More by agustingianni

View all

24 more disclosed reports, best first.

More from GitHub Security Lab

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.