nerdexam
CompTIA

CAS-002 · Question #846

The finance department for an online shopping website has discovered that a number of customers were able to purchase goods and services without any payments. Further analysis conducted by the…

The correct answer is C. Integer overflow. The vulnerability is an integer overflow, where a crafted input causes an arithmetic wrap-around past zero into a negative value that the system then treats as a zero-dollar balance.

Enterprise Security

Question

The finance department for an online shopping website has discovered that a number of customers were able to purchase goods and services without any payments. Further analysis conducted by the security investigations team indicated that the website allowed customers to update a payment amount for shipping. A specially crafted value could be entered and cause a roll over, resulting in the shipping cost being subtracted from the balance and in some instances resulted in a negative balance. As a result, the system processed the negative balance as zero dollars. Which of the following BEST describes the application issue?

Options

  • ARace condition
  • BClick-jacking
  • CInteger overflow
  • DUse after free
  • ESQL injection

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    78% (31)
  • D
    5% (2)
  • E
    13% (5)

Why each option

The vulnerability is an integer overflow, where a crafted input causes an arithmetic wrap-around past zero into a negative value that the system then treats as a zero-dollar balance.

ARace condition

A race condition involves two concurrent processes accessing shared resources in an unsafe order, which is unrelated to numeric value wrap-around from arithmetic operations.

BClick-jacking

Clickjacking is a UI redress attack that tricks users into interacting with hidden interface elements, and has no relation to arithmetic manipulation of payment values.

CInteger overflowCorrect

Integer overflow occurs when an arithmetic operation produces a result outside the range representable by the data type, causing the value to roll over to an unexpected number. Here, subtracting a large shipping cost from a small balance caused an integer underflow past zero, wrapping the value to a negative number - a classic overflow symptom - which the system then normalized to zero, effectively granting free purchases.

DUse after free

Use after free is a memory corruption vulnerability where code references memory after it has been deallocated, not an arithmetic range issue in numeric input fields.

ESQL injection

SQL injection involves inserting malicious SQL statements into input fields to manipulate database queries, not causing arithmetic roll-over in numeric payment calculations.

Concept tested: Integer overflow vulnerability in application input handling

Source: https://cwe.mitre.org/data/definitions/190.html

Topics

#integer overflow#input validation#secure coding#web application vulnerability

Community Discussion

No community discussion yet for this question.

Full CAS-002 Practice