CSE 598 AVR - Fall 2024

ARM64 ROP

ARM64 has a number of differences in the calling convention, prologues, and epilogues that cause ROP to be different than on x86_64.

Because these challenges are running on an x86-64 host, you might need any of the aarch64-linux-gnu-* tools, such as aarch64-linux-gnu-objdump.

gdb is now a 2-step process:

In one terminal / tmux window:

$ /usr/bin/qemu-aarch64-static -g 1234 /challenge/level-1-0

In another:

$ gdb-multiarch /challenge/level-1-0
(gdb) target remote localhost:1234

13 challenges

CHALLENGE 01

level-1-0

— solves

The goal of this level is quite simple: redirect control flow to the win function.

CHALLENGE 02

level-1-1

— solves

The goal of this level is quite simple: redirect control flow to the win function.

CHALLENGE 03

level-2-0

— solves

Now let's see about redirect control flow to multiple functions.

CHALLENGE 04

level-2-1

— solves

Now let's see about redirect control flow to multiple functions.

CHALLENGE 05

level-3-0

— solves

What about passing arguments to multiple functions?

CHALLENGE 06

level-3-1

— solves

What about passing arguments to multiple functions?

CHALLENGE 07

level-3-0-a

— solves

If you did the last one correctly this should be easy.

CHALLENGE 08

level-3-1-a

— solves

If you did the last one correctly this should be easy.

CHALLENGE 09

level-4-0

— solves

Now, let's just pop stuff

CHALLENGE 10

level-4-1

— solves

Now, let's just pop stuff

CHALLENGE 11

static-binary-rop

— solves

Now that you have the hang of things, how about you pop a statically compiled binary with no inserted gadgets?

CHALLENGE 12

level-4-1-gcc

— solves

Other compilers are different, let's now do a few levels that are compiled by gcc instead of clang to see the difference.

CHALLENGE 13

hard-level-3-1-a-gcc

— solves

It seems that compilers can do very strange things, including breaking things, yet I have faith in the hackers...