Skip to content

fix house of lore PoCs - #245

Open
tabacc0 wants to merge 1 commit into
shellphish:masterfrom
tabacc0:fix-houseoflore
Open

tabacc0 wants to merge 1 commit into
shellphish:masterfrom
tabacc0:fix-houseoflore

Conversation

@tabacc0

@tabacc0 tabacc0 commented Oct 12, 2026

Copy link
Copy Markdown

the old PoCs relied on the fact that the fake freelist is on the stack so it 'seemed' like it returned the target , but in fact the target was lost in Tcache emptying , because it should have been at the end of the list and not at the begining.
we could return target from tcache in the old PoC but that would be more like a tcache stashing unlink attack , so I kept the target retrieval from the smallbin like the classical house of lore.

added support for 2.43 by accounting for tcache bin size increase and tcache structure allocation behavior.

on 2.43/44 the address printed at the end is a heap one , exposing the issue , I made the fake list (or lists in the case of glibc2.43) on the heap , and added a clear assert at the end to make sure the result is correct.

note that the PoCs for 2.27 to 2.42 are the exact same,only 2.43 is different.

the old PoCs relied on the fact that the fake freelist is on the stack
so it 'seemed' like it returned the target , but in fact the target
was lost in Tcache emptying , because it should have been at the end
of the list and not at the begining.
we could return target from tcache in the old PoC but that would be
more like a tcache stashing unlink attack , so I kept the target
retrieval from the smallbin like the classical house of lore.

added support for 2.43 by accounting for tcache bin size increase and
tcache strucute allocation behaviour.

on 2.43/44 the address printed at the end as a heap one , exposing the
issue , I made the fake list (or lists in the case of glibc2.43) on
the heap , and added a clear assert at the end to make sure the result
is correct.

note that the PoCs for 2.27 to 2.42 are the exact same,only 2.43 is
different.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant