The Art of Business Logic — When the Checkout Got the Price ... - #2746
Open
carlospolop wants to merge 1 commit into
Open
The Art of Business Logic — When the Checkout Got the Price ...#2746carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://zuksh.medium.com/the-art-of-business-logic-when-the-checkout-got-the-price-wrong-4d548971b4a3 Content Categories: Based on the analysis, this content was categorized under "Pentesting Web > Bypass Payment Process > Stale Pricing State and Checkout State-Machine Abuse". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Vulnerability overview
The post describes an e-commerce business-logic vulnerability in which checkout trusts pricing information associated with an earlier cart state after the cart has transitioned to a different state. The attacker does not directly submit a forged field such as
price=1or{"price":1}. Instead, they use the application's legitimate workflow, intercept and modify a cart-state transition, and make the backend calculate an incorrect lower amo...🔧 Technical Details
Analyze checkout as a state machine: Record a known-good transaction from product retrieval through cart creation, discount or promotion processing, checkout, and payment. Do not limit testing to obvious fields such as
price. Identify every request that changes cart state and compare the pricing data produced before and after each transition.Abuse stale pricing state: First trigger a pricing or checkout operation so the backend creates valid derived pricing information. Then intercept a legitimate cart-state update, modify the state-controlling value, and submit it. If the backend changes the cart without invalidating pricing information associated with the previous state, trigger checkout again. A vulnerable implementation may reuse an old discount or pricing context instead of recalculating from the current authoritative product, cart, and promotion state.
Make trusted backend logic calculate the malicious result:...
🤖 Agent Actions
Updated
src/pentesting-web/bypass-payment-process.md.Added:
Validation passed:
git diff --checkThis PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.