Skip to content

Reading list

Learn Crypto from real reports

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

12 reports, easiest first.

  1. The Elderly Man, a 2009 Breach, and Four Extra Keystrokes

    Beginner

    A CTF challenge provided an unsalted MD5 hash of a flag-format password derived from a RockYou word plus four appended complexity characters. The author cracked it by trying RockYou words with all combinations of one special, one digit, one lowercase, and one uppercase character, recovering the flag.

    A hash is a fingerprint of a password that cannot be reversed, but weak passwords can be guessed by trying many candidates and comparing fingerprints. Here the password was built from a common word plus four extra characters, so trying every common word with every combination of those four characters quickly found the match.

    The lesson. Likely the password was stored as unsalted MD5 and was constructed from a common leaked word with a predictable four-character suffix, making it trivial to crack with a hybrid dictionary and mask attack.

  2. Analisi dei dump di Rousseau (Movimento Cinque Stelle) - Parte I: password

    Beginner

    The Rousseau platform of the Five Star Movement stored user passwords using the obsolete crypt(3) function based on DES, making them easily crackable. An attacker with access to the dumped password hashes could recover plaintext passwords quickly, as demonstrated by cracking one hash in 12 seconds.

    Passwords should never be stored in a form that can be quickly turned back into the original text. This platform used a very old method called crypt(3) that scrambles passwords in a weak way, so a tool can guess the original password in seconds. Anyone who stole the password database could then log in as those users.

    The lesson. Likely the platform used an outdated version of Movable Type that hashed passwords with the crypt(3) function, which relies on the weak DES algorithm.

  3. AI-Assisted Insecurity: Forging JWTs from Auto-Generated Weak Secrets

    Beginner

    The application signed its authentication tokens with a default placeholder secret, so anyone who knew that value could create valid tokens for any user. The author forged tokens with different user identifiers and role values to retrieve other users' details, including administrators, and dumped the user database.

    A JSON Web Token (JWT) is a signed note the server hands you after login, and it uses that signature to trust who you are. If the signing key is a well-known default value, anyone can write their own note claiming to be another user, and the server will believe it. Here the key was a placeholder left in the code, so the author could mint tokens for any account.

    The lesson. Likely the JWT signing secret was left at a default placeholder value instead of being replaced with a strong random secret.

  4. CVE-2026-77427: How a Fail-Open Default Key Turns One File Read Into Total Secret Recovery in FileRise

    Intermediate

    FileRise used a hard-coded default encryption key when no key was configured, and the application booted normally with it. An attacker who already had a way to read the stored ciphertext files could decrypt TOTP seeds, the OIDC client secret, the JWT secret and stored S3/SFTP/SMB credentials.

    FileRise is a self-hosted file manager that stores secrets such as two-factor codes and cloud storage passwords in encrypted files. If the administrator never set a custom encryption key, the software quietly used a key that is printed in its own public source code. Anyone who could also read those encrypted files, for example through a misconfigured web server, could then decrypt them because the key was already known.

    The lesson. Likely the key resolver fell back to a published default string and let the application start instead of refusing to boot, and the earlier fix only added key generation to the Docker entrypoint rather than to the shared bootstrap.

  5. Remote Command Execution on RemotePC for Windows

    Intermediate

    The RemotePC Windows client did not properly validate SSL certificates, allowing a man-in-the-middle attacker to intercept traffic. This enabled credential capture, remote desktop observation, and hijacking of the auto-update mechanism to execute arbitrary code.

    The RemotePC program that lets you control another computer did not check that it was talking to the real server. So an attacker on the same network could pretend to be the server, see your password, watch your screen, and even send you a fake update that installs malware.

    The lesson. The client accepted any SSL certificate without validating it against trusted authorities or hostnames.

  6. The Full Story

    Intermediate

    The NHS COVID-19 Android app used signed JWT tokens for venue check-in QR codes but called a JWT library method that did not verify the signature, so an attacker could forge a QR code with an unsigned token and a valid key identifier. This allowed fake venue check-ins to be accepted by the app.

    A JWT is a small piece of data that can carry a digital signature, like a wax seal, to prove it was made by a trusted party. The app was supposed to check that seal before trusting the venue details inside, but it used a library function that skipped the check. That meant someone could make their own QR code with no seal at all and the app would still accept it.

    The lesson. Likely the Android app called a generic JWT parsing method that does not enforce signature verification, instead of the library's method specifically for signed tokens.

  7. RIPEMD-160 precompile yields wrong hashes for large set of inputs due to off-by-one error

    Kakarot Intermediate

    The RIPEMD-160 precompile in Kakarot used an off-by-one condition when deciding how to pad the final block, so inputs whose length modulo 64 equals 55 were hashed differently from the standard. An attacker could exploit this to produce incorrect hashes, potentially bypassing access control that relies on this precompile.

    A hash function takes any input and produces a fixed-size fingerprint. If two different implementations of the same hash function disagree for some inputs, then anything that relies on the hash (like checking a password or a signature) can be fooled. Here, a small mistake in how the input length was checked caused the wrong fingerprint for certain input sizes.

    The lesson. Likely an off-by-one error in the length check that decides whether an extra padding block is needed, using `len >= 55` instead of `len >= 56`.

  8. How I Broke Encrypted Requests by Reading Frontend JavaScript

    Intermediate

    The application encrypted API requests with AES-CBC using a hardcoded key and IV embedded in publicly accessible JavaScript. An attacker could extract these secrets and decrypt sensitive API traffic outside the browser, breaking confidentiality.

    The website scrambled its data before sending it, like locking a box. But it left the key to the lock inside the website's code, which anyone can read. So an attacker could copy the key and open the box to see the secret data.

    The lesson. Likely the encryption key and IV were hardcoded in client-side JavaScript, so anyone could extract them and decrypt the traffic.

  9. CVE-2026-86410: redirect to SFTP or SCP bypasses host verification

    curl Intermediate

    curl only installs SSH host-key verification options when the initial URL is SCP or SFTP, so an HTTPS URL that redirects to SFTP connects without the user's requested known-hosts file or host-key pin. An attacker who can impersonate the redirected SFTP endpoint could substitute downloaded content while curl reports success.

    When curl downloads over SSH (SCP or SFTP), it can check that the server's identity matches a file or fingerprint you supply. This report shows that if you start on a normal HTTPS URL and the server redirects you to an SFTP address, curl forgets to apply that identity check. Someone who can pretend to be that SFTP server could then hand you different files while curl says everything worked.

    The lesson. Likely the ssh_setopts() function returns early when the initial URL is not SCP or SFTP, so SSH host-verification options are never set on the handle before a later redirect switches the transfer to SFTP.

  10. 46: `--libcurl` output carries `--insecure` across `--next` boundaries

    curl Intermediate

    The --libcurl option generates C code that reuses a single curl handle across --next operations without resetting it, so options like --insecure from an earlier operation leak into later ones. An attacker could impersonate a later HTTPS endpoint because the generated program silently skips TLS certificate verification for operations that were meant to be secure.

    When you use curl with --libcurl, it writes a small C program that repeats what your command did. If your command has several parts separated by --next, the generated program reuses one connection object for all parts and forgets to reset it between them. So a setting like 'don't check certificates' from part one stays on for part two, even if you didn't ask for it there.

    The lesson. Likely the generated code never emits curl_easy_reset() between operations, and the setopt emitter suppresses setters whose values match defaults, so a reused handle keeps earlier options.

  11. Signatures can be replayed in castVoteWithReasonAndParamsBySig() to use up more votes than a user intended

    Arbitrum Security Council Election System Intermediate

    The signature used in castVoteWithReasonAndParamsBySig() lacks a nonce, so the same signature can be replayed multiple times. An attacker can replay a voter's signature to allocate more votes to a candidate than the voter intended.

    When you sign a message to vote, the system should ensure that signature can only be used once. Here, because the signature does not include a unique number (a nonce), someone else can submit the same signature again and again, each time using more of your voting power.

    The lesson. The signature digest in castVoteWithReasonAndParamsBySig() does not include a nonce, so the same signature remains valid for multiple calls.

  12. GHSL-2020-026: Person in the middle attacks with lua-openssl

    GitHub Security Lab Intermediate

    The lua-openssl library incorrectly converted the integer return values of X509 certificate validation functions (check_host, check_email, check_ip_asc) to booleans, so negative error codes like -1 were treated as true. An attacker could supply a malformed certificate that fails to decode, and the application would accept it as valid, enabling person-in-the-middle attacks.

    When a program checks if a certificate matches a hostname, the underlying function returns a number: 1 for a match, 0 for no match, and negative numbers for errors. The lua-openssl library turned that number into a true/false value, but in many programming languages any non-zero number (including negative ones) becomes true. So an error (-1) was treated as a successful match, letting an attacker use a broken certificate to impersonate a website.

    The lesson. The library passed the integer return value of X509_check_host, X509_check_email, and X509_check_ip_asc directly to a boolean conversion, so negative error codes were interpreted as true.