nerdexam
GIAC

GCIH · Question #109

John visits an online shop that stores the IDs and prices of the items to buy in a cookie. After selecting the items that he wants to buy, the attacker changes the price of the item to 1. Original…

The correct answer is D. Cookie poisoning. John tampers with client-side cookie values to manipulate server-side price calculations, which is the definition of cookie poisoning.

Web Application Attacks & Post-Exploitation

Question

John visits an online shop that stores the IDs and prices of the items to buy in a cookie. After selecting the items that he wants to buy, the attacker changes the price of the item to 1. Original cookie values:

ItemID1=2 ItemPrice1=900 ItemID2=1 ItemPrice2=200 Modified cookie values:

ItemID1=2 ItemPrice1=1 ItemID2=1 ItemPrice2=1 Now, he clicks the Buy button, and the prices are sent to the server that calculates the total price. Which of the following hacking techniques is John performing?

Options

  • AComputer-based social engineering
  • BMan-in-the-middle attack
  • CCross site scripting
  • DCookie poisoning

How the community answered

(55 responses)
  • A
    4% (2)
  • B
    5% (3)
  • C
    2% (1)
  • D
    89% (49)

Why each option

John tampers with client-side cookie values to manipulate server-side price calculations, which is the definition of cookie poisoning.

AComputer-based social engineering

Computer-based social engineering involves deceiving users through digital means such as phishing, not directly manipulating data structures like cookies.

BMan-in-the-middle attack

A man-in-the-middle attack requires intercepting traffic between two parties in transit; John is modifying his own local cookie, not intercepting communication between others.

CCross site scripting

Cross-site scripting involves injecting malicious scripts into web pages viewed by other users, not altering cookie values to manipulate server-side pricing logic.

DCookie poisoningCorrect

Cookie poisoning involves modifying cookie data on the client side to manipulate application logic on the server. By changing ItemPrice1 and ItemPrice2 to 1, John causes the server to calculate a falsely low total price, exploiting the application's trust in unvalidated cookie data.

Concept tested: Cookie poisoning for client-side data manipulation

Source: https://owasp.org/www-community/attacks/Cookie_Poisoning

Topics

#cookie poisoning#cookie manipulation#parameter tampering#web attacks

Community Discussion

No community discussion yet for this question.

Full GCIH Practice