RE: Buffer overflow on a vulnerable C program. 08-10-2013, 06:23 PM
#31
(08-10-2013, 05:07 PM)lady_godiva Wrote: It's not so hard to find programs that use functions like the gets() one. I agree with you that this tutorial is incomplete, it just gives a very basic idea. However on the other side there is so much to say about BOF that it's not so easy to lay out a thread, especially because XP handles memory differently from Vista or higher for example. To be exaustive, we'd also need to talk about heap overflow.
When i'll have time i'll make a complete tutorial about this
No it isn't hard to find programs that uses gets(), you can just make one on your own. What is hard is to find programs with a considerable user base that are vulnerable. Especially since most compilers will issue warnings when using gets() and they are almost eliminated due to being low hanging fruits. The same thing is true for a lot of format string vulnerabilities.
Talking purely of vulnerabilities, the topic should not include details of operating systems and memory handling in these. A buffer overflow can occur in different areas of the memory and can be considered the same vulnerability with a memory corrupting impact.


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)