Engineering Deep Dives: Code Refactoring & Bug Hunt Case Studies
In-depth engineering teardowns of broken AI codebases, cloud bill spikes, race condition bugs, payment bypasses, and UI/UX conversion leaks. Click any case study below to read full line-by-line postmortems.
The $18,000 Cloud Bill API Bug: How an Autosave Endpoint Multiplied GPU Spend 6x
How a project-save endpoint in an AI video editor triggered a full GPU render on every autosave and retry, pushing the monthly AWS bill from about $2,900 to $18,742, and the two-step fix that brought it down to $3,400 a month.
The Ghost Inventory Bug: How a Race Condition Double-Booked 120 Users
An engineering teardown of how non-atomic Read-then-Write database logic allowed two concurrent users to claim the exact same seat within a 5-millisecond window while returning 200 OK.
Rescuing an AI-Built MVP (Cursor & v0) from 14,000 Lines of Spaghetti Code
How a solo founder’s AI-built SaaS ($34k MRR) ended up as one 14,280-line App.jsx with 15-second checkout freezes and 30% of paid upgrades never activating, and how we split it into modular Next.js components and an idempotent webhook queue.
How a Figma UX Audit & Redesign Boosted Conversion by 242%
How we audited a high-ad-spend B2B SaaS landing page leaking $32,000/month, eliminated 3 conversion friction traps, and lifted trial conversion from 1.2% to 4.1% (+242%) after a 5-day redesign.
The $48,000 Stripe Webhook Bypass Bug: Fixing Unverified Signatures & Free Pro Account Exploits
An engineering teardown of how an unverified Stripe webhook endpoint and missing idempotency locks allowed users to forge payment completion payloads, granting 138 accounts free Pro access.
Plugging the Multi-Tenant Leak: Enforcing PostgreSQL RLS to Prevent Cross-Account Data Access
How a missing tenant_id filter in a Supabase/Postgres SaaS allowed Company A users to manipulate API URLs (IDOR Vulnerability) to inspect Company B’s confidential invoices, and how we enforced database-level PostgreSQL Row Level Security (RLS).
The 'SOC 2 Compliant' Breach: How an SSRF-to-IMDS Pivot Bypassed the WAF and Stole the JWT Signing Key in 4 Minutes
A teardown of how an attacker slipped an IPv6-mapped metadata address past a $150k/yr enterprise WAF, pulled IAM credentials from a worker that still allowed IMDSv1, and forged an admin JWT in 252 seconds, and how we contained it before any customer data left.
Get a Deep Bug Hunting & Concurrency Audit
Book a 10-minute engineering triage call. Our senior leads trace silent memory leaks, payment webhook drops, and API security vulnerabilities under strict NDA.