Home › Even a good prompt left these 5 holes
Explainer
Even a good prompt left these 5 holes
On November 23, 2026, Astra Security published The Security Cost of Vibe Coding. They gave four AI coding platforms the same detailed security prompt, let each one build the app, and then attacked the four apps with an automated pentest. They confirmed 137 exploitable vulnerabilities.
Five kinds of gaps showed up in every one of the four apps. None of them is exotic. They are missing settings and missing checks with well-known fixes, so they are worth checking in any AI-built app, whichever tool you used.
What Astra did
- Four platforms, one prompt. Emergent, Lovable, Replit and Base44 each got the same requirements. The prompt was specific about some things, such as bcrypt password hashing, 15-minute access tokens and rate limiting on all authentication endpoints. Other parts were brief, such as "Configurable CORS."
- An automated attack, then checks. Two pentest agents probed each app, one that mapped attack chains and one that went in with no prior knowledge. A separate validator tried to exploit every finding again, and a human security engineer reviewed each result. Anything that could not be confirmed was dropped.
- A point-in-time sample. The builds and tests were done between April and June 2026. Astra says the findings may not hold for current platform versions, and the report does not rank the platforms. (Astra also discloses that Emergent is a paying Astra customer, and that its app was built on a paid plan while the other three used free tiers.)
Astra's conclusion is that the five shared gaps showed up where the prompt was vague or silent. Rate limiting is the exception worth noticing: the prompt asked for it on all authentication endpoints, and it still came back missing or insufficient in all four apps. Astra's own summary: "An explicit instruction was not the same as an enforced one."
The 5 gaps, by Astra's count
| Gap | Confirmed findings |
|---|---|
| Missing or bypassed authentication | 17 |
| CORS misconfiguration | 16 |
| Missing frame protection (clickjacking) | 11 |
| Missing Content-Security-Policy header | 11 |
| Missing or insufficient rate limiting | 11 |
| All five patterns | 66 of 137 |
Astra notes that some findings fit two patterns at once, for example a single finding covering both a missing CSP and missing X-Frame-Options, so these pattern totals can count one finding twice.
01
Loose CORS
What it is. CORS is how your server tells browsers which other websites may read its responses. In every app Astra tested, the server copied back whatever website asked (it "reflected the origin") and also allowed credentials such as cookies.
Why it matters. That combination lets any website a logged-in user visits send requests to your API as that user and read the answers. Astra's description: it "lets any external website make authenticated requests on a logged-in user's behalf and read the response."
How to fix it. Use an explicit allowlist of your own domains. Never echo the request's Origin header back, and never pair Access-Control-Allow-Origin: * or a reflected origin with Access-Control-Allow-Credentials: true.
02
Missing or bypassable login checks
What it is. Some endpoints answered without checking who was asking. Astra found endpoints "reachable without any authentication check at all," including some that handled password changes and admin invitations. In one app, an attacker could forge admin invitations, delete audit logs and change another user's password without logging in, even though the prompt required authentication on every endpoint by default.
Why it matters. The login screen in your app's interface does not protect the API behind it. Anyone who finds the endpoint can call it directly.
How to fix it. Make "logged in" the default on the server. Every route requires a valid session unless it is on a short, named public list (sign-up, login, password-reset request, health check). Apply the check once in shared middleware rather than route by route, and add a test that calls every route without a session and expects a 401.
03
No clickjacking protection
What it is. In all four apps, pages could be loaded inside an invisible frame on someone else's site, because there was no X-Frame-Options header and no frame-ancestors rule in a Content-Security-Policy.
Why it matters. An attacker can lay your real, logged-in page under a fake one and trick a user into clicking buttons they cannot see, such as "delete" or "confirm."
How to fix it. Send X-Frame-Options: DENY and frame-ancestors 'none' in your CSP on every route, including the login page and dashboard pages. If a page truly must be embedded, name that page and the one parent site allowed to embed it.
04
No Content-Security-Policy
What it is. A Content-Security-Policy (CSP) is a response header that tells the browser which scripts, styles and other resources your pages may load. None of the four apps sent one.
Why it matters. A CSP is a backstop. If an attacker ever slips a script into your page, a strict CSP can stop it from running or sending data away. Without one, nothing limits the damage.
How to fix it. Set a CSP at your hosting or framework layer for all responses. A reasonable starting point is default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'none', then allow only the outside services you actually use. Avoid blanket 'unsafe-inline' and 'unsafe-eval' for scripts. If you are unsure what will break, start with Content-Security-Policy-Report-Only, fix what it reports, then enforce it.
05
Weak or missing rate limits
What it is. Each app allowed unlimited or nearly unlimited login attempts. Two of the four also allowed unlimited account sign-ups. This happened even though the prompt asked for rate limiting on all authentication endpoints.
Why it matters. With no limit, an attacker can try password after password against your users' accounts until one works, or flood your app with fake accounts.
How to fix it. Track failed logins per account and per IP address on the server, and block further attempts for a period after a small number of failures. Astra's example threshold is five: attempt six should get 429 Too Many Requests. A rule in your interface alone is not enough. The limit has to be enforced where the login request is handled.
A 10-minute self-check
Run these on your own app only, using your own account. Replace https://yourapp.example with your app's address and /api/... with a real path from your app. Astra's report includes its own 10-minute checklist; this is our version of the same idea.
1. Security headers (2 minutes)
In Chrome or Firefox, open DevTools (F12), go to the Network tab, reload, click the first request and look at Response Headers. Check a couple of pages, not just the home page. Or from a terminal:
curl -sI https://yourapp.example/ | grep -iE 'content-security-policy|x-frame-options'
Good: a Content-Security-Policy header, and either X-Frame-Options: DENY (or SAMEORIGIN) or frame-ancestors inside the CSP. Bad: no output.
2. CORS (2 minutes)
Send a request that pretends to come from another website, and see whether your API trusts it:
curl -sI -H "Origin: https://evil.example" https://yourapp.example/api/... \
| grep -i '^access-control-allow'
Bad: Access-Control-Allow-Origin: https://evil.example together with Access-Control-Allow-Credentials: true. Good: no Access-Control-Allow-* headers for that origin, or only your own domain listed.
3. Login checks (3 minutes)
While logged in, use the Network tab to note the API requests your app makes when it loads private data, such as a profile, settings or an admin page. Then log out (or open a private window) and request those same URLs directly in the browser or with curl:
curl -s -o /dev/null -w "%{http_code}\n" https://yourapp.example/api/...
Good: 401, 403, or a redirect to the login page. Bad: 200 with real data. Try the pages that change things too, such as password change and invite screens, since those were among the endpoints Astra found open.
4. Rate limits (3 minutes)
On your own login page, using your own account, enter the wrong password 8 times in a row. Then check the response in the Network tab.
Good: after about five failures you are blocked or slowed down, and the response is 429 Too Many Requests or a clear lockout message. Bad: the eighth attempt behaves exactly like the first. (If your app has sign-up, check that creating many accounts quickly is limited too.)
Check my app
Our free scan checks your security headers, clickjacking protection, and how the address you scan answers a request from another website (CORS), from the outside, the way a stranger's browser would see them. It is look-only: it never logs in, submits forms or writes anything.
Check my appScan only an app you own or have permission to test. Login checks and rate limits need you, logged in to your own app, so use steps 3 and 4 above for those.
If you'd rather have it done for you
Most of these fixes are small, but they live in different places: hosting headers, server middleware, the login handler. The 5-Gap Lockdown closes these five gaps for you and re-checks each one from the outside after you merge and deploy.
5-Gap Lockdown: $99 one-time
CORS locked to your own domains, CSP and clickjacking protection added, login rate limits and login checks enforced. Every change arrives as a pull request, or as SQL or rules for you to run, for you to review. One app per purchase.
Get the 5-Gap Lockdown for $99Fix delivered (pull request, or SQL/rules for you to run) within 48 hours of receiving working repo access plus your written authorization, or a full refund. The outside re-check happens after you merge and deploy, so it falls outside the 48 hours. See what's included.
For other issues your scan finds — such as row-level security, Firebase rules, or exposed keys — see the regular Fix Pack.
Sources
- Astra Security press release: Want Secure AI-Built Apps? Astra's Study Shows What to Write in the Prompt (GlobeNewswire, November 23, 2026)
- Astra Security: The Security Cost of Vibe Coding (report page and PDF; findings counts from section 6.3 and sections 7.1 to 7.5)
Warditor is not affiliated with Astra Security. Figures are Astra's, from four apps tested between April and June 2026. Questions or corrections: [email protected].
More guides: Security notes.