
PoC for CVE-2022-26809, analisys and considerations are shown in the github.io.
PoC for CVE-2022-26809, analisys and considerations are shown in the github.io.
The PoC has been writtin overriding Impacket functions.
Tested with: impacket version 0.10.0
The PoC has not been fully tested, because it should trigger the vulnerability, i.e integer overflow, that leads to a buffer overflow on the heap is reached after 1048576 packets sent, because 1048576*4096 overflow integer of 32 bits.
Did not found any way to cheat on the size, to me seems that fragment len, that is 16 bits, is checked against the real payload size, they must be coherent.
Limitations:
The project contains the vulnerable and patched version of the rpcrt dll and the RPC Server is here: RPC Server
Finally, I wrote the PoC at the end of an analisys just to challenge my self and learn a bit more about RPC implementation.
The analisys that led me to write this PoC is on my GithubPages