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.
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)- A92% (24)
- B4% (1)
- D4% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.