Bypassing ASLR: Overwriting The .dynamic Section

I was recently confronted with a software exploit challenge on a CTF website that took me much more time to flag that I would have expected at first. The solution was closed to another one I knew but which was not working. I will provide a quick write-up of this method because I still cannot find any mention of it in any paper online, despite its simplicity. I hope it will help someone save some precious brain cycles.

more ...