Developer's paid AI feature was free for anyone while invisible to paying users
A developer at APEX Versus, an AI-powered comparison site, discovered two simultaneous bugs in its paid 'Deep Analysis' feature that produced the exact opposite of intended access control. The server-side API had no authentication or credit checks, allowing anyone to access the premium feature for free via direct requests, while a reversed visibility condition in the frontend hid the feature from users who had actually paid for it. The root cause was a silent, empty catch block masking a failed client-side credit deduction that had been quietly rejected by updated Firestore security rules for weeks. The developer fixed the issues by moving all credit checks and deductions server-side within a Firestore transaction, correcting the inverted UI logic, and adding the missing button that had never been wired up. The incident highlights a critical distinction between client-side and server-side validation, especially for revenue-sensitive features.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in