E-Commerce Application Penetration Testing- My Favourite Business Logical Flaw
The article describes multiple business logic flaws in e-commerce applications, such as tampering with referral reward duration to get unlimited pro access, abusing chat support to cancel others' orders, and manipulating payment parameters to place COD orders below the minimum amount. An attacker could exploit these to gain free or discounted services, access other users' order details, or cause financial loss to the company.
Published on medium.com
This is an e-commerce application, which is a digital platform that facilitates buying and selling goods or services over the internet. The application provides n of features to enhance the user experience.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application does not validate or enforce business rules on the server side, allowing attackers to manipulate parameters such as reward duration, payment type, interest rate, or quantity.
Impact
An attacker could gain unlimited pro access, cancel other users' orders and view their sensitive information, place COD orders below the minimum amount, and obtain unauthorized discounts or free products, causing financial loss and privacy breaches.
What the attacker needed
A free account; ability to intercept HTTP requests
The fix
The application should enforce business rules and authorization checks on the server side, validating all user-supplied parameters and ensuring that actions like order cancellation are restricted to the order owner.
How it was found
- Enter the referral code and capture the request.
- Replace the reward_duration value from n of days and forward the request.
- The attack will get access to the pro account for n of days.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This article lists several ways an online shop can be tricked because it trusts data sent by the user. For example, a user can change a number in the request to get more free days or pay less. These are called business logic flaws because the application follows its rules but the rules can be bent.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.