Add more seats by paying less via PUT /v2/seats request manipulation
The seat-adding API rounds up the number of seats but calculates the price using only the integer part, so a decimal seat count adds more seats than it charges for. An attacker could add extra seats while paying less than the correct amount.
- Triaged in 7 hours
- Fixed in 3 months
- Paid in 31 hours
- Disclosed after 5 months
Summary:
I could not fully test this vulnerability because the test plan must be completed for the payment process, that is, 30 days. But the price value in api also changes and if payment is made according to this value, wrong billing will occur.
The annual pro option for Team plan billing is $60 per seat. However, if the user enters a decimal number instead of an integer while adding a seat, the number is rounded up, but the price is only multiplied by the integer part. For example it would be like this :
seats = 5
amount = 300
bady.seats = 1.1
seats += Math.ceil(bady.seats)
// 5 += 2
// seats : 7
amount += Math.floor(bady.seats) * 60
// 300 += 1 * 60
// amount : 360
Steps To Reproduce:
- Register the app and finish the installation. help document
- Create a new team.
- Go to billing and listen to traffic with burp.
- Add seat and capture the request with burp.
- Replace the number of seats with 1.9
- You will see that you have added 2 seats but the price has increased by $60.
We can reduce the price by adding and deleting seats.
Poc video -|
Impact
Attacker can manipulate membership price
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could manipulate the membership price, potentially adding more seats than paid for.
What the attacker needed
A free account; ability to intercept and modify requests
How it was found
- Register the app and finish the installation.
- Create a new team.
- Go to billing and listen to traffic with burp.
- Add seat and capture the request with burp.
- Replace the number of seats with 1.9
- You will see that you have added 2 seats but the price has increased by $60.
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 report has not been written yet. The Original tab links to the source.
When you buy seats for a team, the system should charge you for each seat you add. Here, if you ask for a fractional number of seats, the system gives you the rounded-up number of seats but only charges for the whole-number part, so you get extra seats for free.
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.