The Art of Penetration Testing: Continuity (Part 1)
The insurance platform had multiple business logic flaws in its payment flows, including client-side age restrictions for car insurance, quotation modification after payment initiation, and loyalty points cancellation after policy issuance. An attacker could obtain comprehensive coverage for ineligible vehicles, upgrade policies without paying the full amount, and receive refunds while keeping active policies.
medium.com
Published on medium.com
In penetration testing, the difference between finding surface-level issues and uncovering critical business logic flaws often comes down to one thing: continuity. While automated scanners can identify common vulnerabilities, it’s the persistent, methodical exploration of an application’s core functionality that…
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 relied on client-side validation and failed to enforce server-side checks on business rules and state transitions throughout the payment lifecycle.
Impact
Attackers could obtain insurance policies with higher coverage or more members than paid for, and receive refunds of loyalty points while keeping active policies, causing financial loss to the insurer.
What the attacker needed
Access to the insurance platform; ability to intercept and modify requests; a valid user account
How it was found
- Create a motor insurance quotation and add a legitimate car with third-party insurance.
- Add a second car that is too old for comprehensive insurance, then intercept and modify the request to select comprehensive coverage.
- Proceed to payment and complete it, receiving two policies including the prohibited comprehensive one.
- For travel insurance, create a basic quotation and proceed to the payment page.
- While on the payment page, replay the quotation modification API to upgrade to premium and add more members.
- Complete payment at the original amount and download the policy, which reflects the upgraded coverage.
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 report describes three separate mistakes in how an insurance website handled payments. In each case, the website trusted information from the user's browser or allowed actions at the wrong time, so someone could pay less than they should or get coverage they were not entitled to. The tester found these by carefully trying different steps in the payment process, not by using automated tools.
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.