The AI built a sign-up system where anyone could log in as anyone
The AI via Cursor built a user registration system where anyone could log in as anyone via an unsigned cookie, plus SQL-injection-vulnerable code found on review.
This one went wrong. Read what happened so you don’t hit the same problem.
How it works
- The AI via Cursor builds the registration system
- Review finds an unsigned cookie that lets anyone log in as anyone
- SQL injection holes are found too
Why it’s worth knowing
The login worked perfectly, it just never checked who was logging in.
Where it’s from
Summarized from a public post on news.ycombinator.com. See the original ↗