Post

Meow's CyberAttack - Application/Server Attacks - MemoryBuffer - Integer Overflow


Meow’s CyberAttack - Application/Server Attacks - Memory Buffer Vulnerabilities - Integer Overflow

book: Security+ 7th


Integer Overflow

  • use or create a numeric value that is too big for an application to handle

    .

  • Result: the application gives inaccurate results.

Example

  • an application reserves 8 bits to store a number
    • it can store any value between 0 and 255.
    • If the application attempts to multiply two values such as 95 × 59, the result is 5,605.
    • This number cannot be stored in the 8 bits, causes integer overflow error.
    • double-check the size of buffers, ensure they can handle any data generated by the applications.
  • In some situations, an integer overflow error occurs if an application expects a positive number, but receives a negative number instead.

  • If the application doesn’t have adequate error and exception-handling routines, this might cause a buffer overflow error.
This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.