Business Logic Flaws in AI Assistant Feature
The AI Assistant feature trusted a client-supplied 'isPro' flag to grant premium access, and later a documented API endpoint allowed creating AI conversations without following the normal UI flow. An attacker could unlock premium AI features for free and bypass intended business logic.
medium.com
Published on medium.com
The AI Assistant feature was not visible during normal application usage. The only way to discover it was through the application’s settings page, which immediately made it an interesting area to investigate.
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
The server relied on a client-controlled parameter to decide premium access, and later failed to enforce the intended workflow for an API endpoint.
Impact
An attacker could unlock premium AI features without paying and, after the first fix, still create AI conversations outside the intended workflow.
What the attacker needed
A free account; access to the settings page; ability to intercept requests
The fix
The first vulnerability was fixed by the developers, but the report does not state how; the second issue was not explicitly said to be fixed.
How it was found
- Create a free account and enable the AI Assistant from the settings page.
- Open an existing task and intercept the request for 'Give tips for completing a task'.
- Modify the 'isPro' parameter from false to true and forward the request.
- Observe that the server processes the request and returns AI suggestions as if the account were Pro.
- After the fix, read the public API documentation and craft a request with documented parameters (actionType, actionId, inputs) to create an AI conversation directly.
- Submit the request and see that a new AI conversation is created and appears in the UI.
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.
The app let users send a request that included a field saying whether they were a paying customer. The server believed that field instead of checking the user's real subscription, so anyone could change it to 'true' and get premium features for free. Later, a documented API endpoint let users start AI chats without going through the normal app screens, bypassing the intended flow.
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.