Skip to content
Crypto Disclosed report Intermediate

Inadequate Cryptographic Key Size and Insecure Cryptographic Mode. File Name :- curl_ntlm_core.c

The report claims that a file in curl uses DES encryption in ECB mode, which is a weak cipher and an insecure mode of operation. An attacker who observes ciphertext could gain information about the plaintext when identical blocks are encrypted.

sanchitcfc Follow

Originally disclosed on HackerOne

  • Disclosed after 7 days

The application is generating cryptographic keys or key pairs using a short and inadequate length. This application is using the ECB (Electronic Codebook) mode of operation to perform encryption, which is considered semantically insecure.

Vulnerable File name :- curl_ntlm_core.c Vulnerable line no. 274 :- err = CCCrypt(kCCEncrypt, kCCAlgorithmDES, kCCOptionECBMode, key,

Impact

If a message with identical blocks is encrypted, an attacker get a certain advantage to have information on plaintext, by only observing CipherText.

The original report as published on HackerOne, by sanchitcfc. 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 code uses the outdated DES cipher with ECB mode instead of a modern cipher with a secure mode such as AES-GCM.

Impact

An attacker who can observe encrypted messages could gain some information about the plaintext when identical blocks are encrypted, but the report does not show a practical attack.

What the attacker needed

Attacker can observe ciphertext

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.

Encryption turns readable data into scrambled data. DES is an old scrambling method that is now too weak, and ECB is a way of using it that makes patterns in the original data visible in the scrambled output. This means someone who sees the scrambled data might learn something about the original message.

What is Crypto?

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

More from curl

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.