How is integer overflow exploitable?

后端 未结 5 1862
余生分开走
余生分开走 2020-12-14 17:45

Does anyone have a detailed explanation on how integers can be exploited? I have been reading a lot about the concept, and I understand what an it is, and I understand buffe

5条回答
  •  渐次进展
    2020-12-14 17:48

    I just wanted to sum up everything I have found out about my original question.

    The reason things were confusing to me was because I know how buffer overflows work, and can understand how you can easily exploit that. An integer overflow is a different case - you cant exploit the integer overflow to add arbitrary code, and force a change in the flow of an application.

    However, it is possible to overflow an integer, which is used - for example - to index an array to access arbitrary parts of memory. From here, it could be possible to use that mis-indexed array to override memory and cause the execution of an application to alter to your malicious intent.

    Hope this helps.

提交回复
热议问题