Back to Browse

Buffer Overflow P20 | Integer Overflow | CTF Walkthrough

590 views
Sep 2, 2023
31:15

In this video walk-through, we covered a scenario of buffer overflow where a variable was declared as an unsigned integer and then casted to the function ulong. This let us send '-1' as an input to this variable which redirected the program execution flow into an if statement that contained a snippet where a name variable with 96 bytes accepts an unrestricted input from the user which resulted in segmentation fault. We calculated the offset using pwndbg with python and created the final exploit. This was part of HackTheBox Intro to binary exploitation track. ********* Receive Cyber Security Field, Certifications Notes and Special Training Videos https://www.youtube.com/channel/UCNSdU_1ehXtGclimTVckHmQ/join ********** Writeup https://motasem-notes.net/buffer-overflow-p20-integer-overflow-hackthebox-optimistic/ HackTheBox Optimistic https://app.hackthebox.com/challenges/169 ******** Patreon https://www.patreon.com/motasemhamdan?fan_landing=true Instagram https://www.instagram.com/dev.stuxnet/ Twitter https://twitter.com/ManMotasem Facebook https://www.facebook.com/motasemhamdantty/ LinkedIn [1]: https://www.linkedin.com/in/motasem-hamdan-7673289b/ [2]: https://www.linkedin.com/in/motasem-eldad-ha-bb42481b2/ Website https://www.motasem-notes.net Backup channel https://www.youtube.com/channel/UCF2AfcPUjr7r8cYuMvyRTTQ My Movie channel: https://www.youtube.com/channel/UCilElKPoXEaAfMf0bgH2pzA ******

Download

1 formats

Video Formats

360pmp445.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Buffer Overflow P20 | Integer Overflow | CTF Walkthrough | NatokHD