Claude Code wrote my affiliate app — a security audit found 4 real holes
ItsYashKapoor · reddit · 2026-11-20
The author built OpenPromoter, an open-source (AGPL) affiliate tool for SaaS, by writing specs and making design calls while Claude Code wrote the code; the cloud tier is free until partners bring in $1k/month. A PR from a security audit exposed 4 bugs the author's tests missed:
- Partners could pre-register a customer's email and earn commissions on their sales;
- Payout approval codes had no wrong-guess limit (the login library only counts failures at sign-in);
- Refunds reported twice were counted twice;
- Partner data exports leaked private notes and risk scores.
Key lesson: no test acted like a bad partner — "Claude built what I asked for, and I never asked what an attacker would try." The author asks whether money-moving AI code should be reviewed line by line or by behavior.
More from coding & agent
- Microsoft Graph MCP Server lets agents manage M365 users, licenses, and groups — modelcontextprotocol · 2026-11-20
- Sbir MCP connector wraps the free, no-auth SBIR.gov public API — modelcontextprotocol · 2026-11-20
- Demo shows controlling AI coding agents hands-free from smart glasses via open protocol — Scobleizer · 2026-11-20
- 109 AI agent conversations build a 75.9M-voxel eclipse village in a single HTML file — CurieuxExplorer · 2026-11-20
- Inside Google DeepMind's DevX team: benchmarks, agent harnesses and day-0 integrations — osanseviero · 2026-11-20
- What 1.5 Years of Building Agents Taught Me: It's All a While Loop, Tools, and Specs — khant_dev · 2026-11-20