Which of the following is this snippet an example?

Given the following code snippet:

Of which of the following is this snippet an example?
A. Data execution prevention
B. Buffer overflow
C. Failure to use standard libraries
D. Improper filed usage
E. Input validation

How to PASS CAS-004 in First Attempt?

FULL Printable PDF and Software. VALID exam to help you PASS.

comptia-exams

6 thoughts on “Which of the following is this snippet an example?

  1. D. Improper field usage.

    A developer should never store important variables locally, since it can be tampered using a HTTP Interceptor (like Burp or OWASP ZAP).
    In this particular case, the attacker could modify price variable to zero, so that he wouldn’t pay anything.

  2. I wish I had more experience in this area. I was tugging back and forth with D and E. Thanks for your input.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.