Skip to content
Crypto Write-up Intermediate

Cracking Code, Catching Bugs: My Case Study of Three Vulnerability Hunts

The write-up describes three issues in a Python SDK: a webhook verification function using a non-constant-time comparison for HMAC signatures, a signing server example with a validator that approves any request, and a legacy key derivation format using only 5,000 PBKDF2 iterations. An attacker could potentially forge webhook signatures via timing analysis, bypass signing server authorisation if the example is copied, and crack encrypted private keys faster due to weak iteration count.

letchupkt Follow

Published on medium.com

Bug bounty isn’t just about bounties. It’s about curiosity.

letchupkt, on medium.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

Root cause

Likely the root causes are: use of a non-constant-time comparison for HMAC verification, an example validator that always returns true, and a legacy key derivation format with an insufficient PBKDF2 iteration count.

Impact

An attacker could forge webhook signatures through timing analysis, bypass authorisation on a signing server if the example is deployed, and crack encrypted private keys faster due to weak key derivation.

What the attacker needed

Access to the SDK code; ability to send webhook requests; ability to measure timing differences

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.

This write-up covers three security weaknesses in a software development kit (SDK). The first is a timing leak: comparing secret codes in a way that takes slightly different amounts of time depending on how many characters match, which can let an attacker guess the secret. The second is an example that accepts any request without checking, and the third is an old encryption method that is too weak by today's standards.

What is Crypto?

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

More by letchupkt

View all

14 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.