Skip to content

House of Roman a Leakless Heap Fengshui to Achieve RCE on PIE Binaries

Sanat Sharma

Sanat Sharma presents house of roman a leakless heap fengshui to achieve rce on pie binaries: Regarding ptmalloc2, many heap exploitation techniques have been invented in the recent years, well documented on the fam...

Summary

Architecture and Background

Regarding ptmalloc2, many heap exploitation techniques have been invented in the recent years, well documented on the famous how2heap repository, or as writeups of famous CTF challenges (like House of Orange).

Vulnerability Analysis

However, most of them require atleast a libc/heap leak , or fail in non-PIE binaries. My new technique titled House of Roman leverages a single bug to gain shell leaklessly on a PIE enabled Binary.

Exploitation and Demonstrations

I shall showcase the ease of aligning the heap to perform this attack, thus demonstrating its versatility.

Remediation and Defensive Strategies

Since this a 20 mins talk, attendees should be aware of basic heap exploitation techniques, like fastbin attacks and unsorted bin attacks, and have a general idea of how the ptmalloc2 algorithm works. As a bonus, I also discuss how to land a fastbin chunk in memory regions with no size alignment (like __free_hook ).

Related talks