Skip to content

Commit bc935dd

Browse files
committed
better
1 parent 785603b commit bc935dd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

dice-2023/sice/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Sadly, we still have a long way to go to remote code execution. Data chunks are
102102

103103
Poking into the daemon binary with `gdb` and cross-referencing the results against the source code, we can determine that the memory layout looks like this:
104104

105-
**???**
105+
![heap before](heap_before.png)
106106

107107
Our data chunks are created from auxiliary threads, so they get placed in a [heap](https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/arena.c;h=37183cfb6ab5d0735cc82759626670aff3832cd0;hb=23158b08a0908f381459f273a984c6fd328363cb#l452) that is allocated with `mmap()`. glibc is also allocated with `mmap`, so the heap and `__free_hook` are thankfully not too far from each other. However:
108108
* Due to the way the challenge is setup, we can only overflow up to 100K bytes, but the difference between the heap and `__free_hook` is much larger than 100K bytes.

dice-2023/sice/heap_before.png

94.6 KB
Loading

0 commit comments

Comments
 (0)