🎖️🏵️ Memorial Weekend Sale — 30% off🏵️🎖️

1 day, 1 hour remaining!
CompTIA Study Materials
AWS Study Materials
AWS Certified Developer Associate AWS Certified Developer Associate
AWS Certified Developer Associate DVA-C02
AWS Certified Solutions Architect Associate AWS Certified Solutions Architect Associate
AWS Certified Solutions Architect Associate SAA-C03
AWS Cloud Practitioner AWS Cloud Practitioner
AWS Cloud Practitioner CLF-C02
Microsoft Study Materials
Microsoft Azure Fundamentals Microsoft Azure Fundamentals
Microsoft Azure Fundamentals AZ-900

Free CompTIA Security+ SY0-601 Practice Question

When developing an application, a programmer must carefully manage the resources to prevent security vulnerabilities. Which of the following scenarios represents the BEST example of an integer overflow that could result in security implications?

  • A user is denied file upload capabilities after reaching the upload limit, preventing any further data from being added to the server.

  • An image editing tool allocates fixed memory for image processing, regardless of the image size supplied by the user.

  • A function that improperly validates user input allows a very large value to be submitted, causing the program to wrap the integer count and overwrite adjacent memory.

  • A cryptographic algorithm uses large prime numbers for generating keys, ensuring secure communication between parties.

  • A database uses a long integer type to auto-increment primary keys to prevent running out of unique identifiers.

  • A payment application prompts the user when the inputted credit card number exceeds the standard length and awaits correct input.

This question is for objective:
Attacks, Threats, and Vulnerabilities
Your Score:
Attacks, Threats, and Vulnerabilities
Architecture and Design
Implementation
Operations and Incident Response
Governance, Risk, and Compliance