nerdexam
GIAC

GSLC · Question #99

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 A. Cookie poisoning. Cookie poisoning is the attack technique of modifying client-side cookie values to manipulate server-side processing, such as altering stored prices before a transaction is submitted.

Security Architecture & Engineering

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

  • ACookie poisoning
  • BCross site scripting
  • CMan-in-the-middle attack
  • DComputer-based social engineering

How the community answered

(26 responses)
  • A
    92% (24)
  • B
    4% (1)
  • D
    4% (1)

Why each option

Cookie poisoning is the attack technique of modifying client-side cookie values to manipulate server-side processing, such as altering stored prices before a transaction is submitted.

ACookie poisoningCorrect

Cookie poisoning occurs when an attacker edits cookie data stored in their browser to override values that the server trusts without independent validation. Here, John directly modifies the ItemPrice fields in his cookie before clicking Buy, causing the server to calculate a fraudulently low total based on the attacker-controlled values rather than the legitimate prices.

BCross site scripting

Cross-site scripting injects malicious client-side scripts into pages viewed by other users and does not involve directly editing cookie key-value pairs to manipulate transaction logic.

CMan-in-the-middle attack

A man-in-the-middle attack requires intercepting communication between two parties in transit - John is modifying his own local cookie directly, not eavesdropping on a network channel.

DComputer-based social engineering

Computer-based social engineering deceives users into divulging information or performing actions through manipulation, not through direct alteration of stored data values.

Concept tested: Cookie poisoning web application parameter tampering

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

Topics

#cookie poisoning#web application security#session manipulation#attack techniques

Community Discussion

No community discussion yet for this question.

Full GSLC Practice