Guess The Number — Stack Overflow + Integer Overflow

Overflow the name buffer to corrupt the internal number variable, then feed back the overflowed value as a decimal integer to satisfy the equality check.

January 1, 2024 · 2 min · giordii

Guess the Number 2 — ROP Chain GOT Overwrite via gets

Build a ROP chain that calls gets twice to plant arbitrary data in the GOT, redirect strcspn to a shellcode stub, then trigger the win print path.

January 1, 2024 · 2 min · giordii

More Private Club — Simple ret2win Buffer Overflow

Overflow a stack buffer to overwrite the return address with a known win function address, then trigger it.

January 1, 2024 · 1 min · giordii

readdle — Two-Stage Shellcode via Stub Read Gadget

Inject a 4-byte stub shellcode that calls read to pull a full shell payload into the same buffer, then jump to it — bypassing the initial 4-byte size constraint on the first write.

January 1, 2024 · 2 min · giordii

Secret Vault — Heap Address Leak + Shellcode via Stack Overflow

Trigger a heap allocation that the binary prints, compute the shellcode landing address at heap+96, then overflow the stack with that return address followed by shellcode to get a shell.

January 1, 2024 · 2 min · giordii

Super Market — Integer Underflow Price Manipulation

Pass a negative quantity to an unsigned arithmetic check, causing integer underflow that bypasses a balance validation and grants access to a premium item.

January 1, 2024 · 1 min · giordii

Terminator — Canary Leak + Full ret2libc

Overwrite the canary’s null byte to leak the full 8-byte cookie over printf, simultaneously leak a saved RBP to base the stack, then use puts@got to find libc base and call system(’/bin/sh’) — all in two trips through the same vulnerable function.

January 1, 2024 · 3 min · giordii