Challenges › Binary Exploitation

Measure the Boundary

medium · 50 XP · flag · free · solves: 0

A small program called measure-the-boundary keeps two heap records and lets you setname a record's name field, then view both records. checksec shows NX enabled, stack canary found, PIE enabled, and full RELRO.

Each record has a 24-byte name field followed immediately by an admin flag. The length check on setname does not stop you from writing one byte past the name field, into that flag.

Submit the flag printed once a record's admin flag is set.

Tags: learn

Try next