Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.