Solving Classical and Homebrew Ciphers

Most CTF cipher challenges come down to a few ideas: modular arithmetic, substitution with a repeating key, reused XOR keystreams, and historical machines. This post covers how I identify which one I’m facing, then works through four challenges from the bi0s DD CTF: a modulo ‘hash’ that can be inverted, an Enigma message, a broken AES-CTR implementation, and a Vigenère cipher with an extended alphabet.

November 12, 2026 · 12 min · 2464 words · Akshit Kathuria

SQL Injection: Bypassing a Login with OR 1=1

A login form that builds its SQL query by pasting your input into a string can be talked into authenticating you as someone else. Here I walk through turning a SQL error into a login bypass with a classic OR ‘1’=‘1’ payload, why it works at the query level, and how parameterised queries end the whole bug class.

November 12, 2026 · 4 min · 760 words · Akshit Kathuria

Stealing an Admin Session with XSS and an Out-of-Band Listener

A feedback form that reflects your input and an admin who visits the links you submit is everything you need to steal the admin’s session cookie. Here I chain an XSS payload with an out-of-band listener so the victim’s browser sends their cookie to me, and explain the admin-bot pattern and the defences that break it.

November 12, 2026 · 4 min · 815 words · Akshit Kathuria

Steganography: Finding Data Hidden in Images and Whitespace

Steganography hides data in plain sight, inside an ordinary image or an innocent-looking text file. This is a reference guide to the standard workflow: inspect a file with aperisolve, exiftool, binwalk, and strings; pull embedded data out of an image with steghide; brute-force an unknown passphrase with a wordlist; and detect and decode whitespace stego with stegsnow. Two forensics challenges from the bi0s DD CTF serve as worked examples.

November 12, 2026 · 7 min · 1277 words · Akshit Kathuria

Web Recon: Finding Secrets in Source, robots.txt, and Client-Side Storage

Developers keep hiding data in places the browser can read: HTML comments, robots.txt, hidden fields, and local storage. None of it is secret. Here I reassemble a flag split across the page source, a robots.txt disallow entry, and an inspected value, and explain why client-side is never a hiding place.

November 12, 2026 · 4 min · 653 words · Akshit Kathuria

When Symmetric Crypto Goes Wrong: AES Key-as-IV and XOR Mistakes

AES is not broken, but code that uses it often is. Here I explain why reusing the key as the CBC initialisation vector can hand an attacker the key itself, and why home-made XOR ciphers fall to known plaintext and key reuse. Each mistake comes with a working Python demonstration, the correct pattern, and a worked example from the bi0s DD CTF.

November 12, 2026 · 17 min · 3519 words · Akshit Kathuria