1 / 10

More on Buffer Overflows

More on Buffer Overflows. Buffer Overflow. Recap: very simply, a buffer overflow is when a program overruns the boundary of a buffer’s allocated space and overwrites adjacent memory. char A[8]; unsigned short B; s trcpy (A, “excessive”);. A simple vulnerability.

mauli
Download Presentation

More on Buffer Overflows

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. More on Buffer Overflows

  2. Buffer Overflow • Recap: very simply, a buffer overflow is when a program overruns the boundary of a buffer’s allocated space and overwrites adjacent memory. char A[8]; unsigned short B; strcpy(A, “excessive”);

  3. A simple vulnerability • Simple code vulnerabilities use functions that don’t check whether a buffer’s bounds are overwritten.

  4. More complex • More complex attacks take into account what other pieces of data are nearby on the stack:

  5. And another • Even without code being called inside the program, can still mess with the intent of the program. • Note that non-execute bits won’t help stop this one!

  6. Even worse • It’s not hard to get function pointers overwritten, even with no execution allowed:

  7. Fixing these issues • Fixing is largely a matter of not using unsafe functions.

  8. Caution: • Care is still needed, however – check this next one, which appears secure. • What is the bug here?

  9. But could this really happen?

  10. And now a few HW hints… • Sorry, had to come in person! • Aren’t you glad you came today? =)

More Related