← /vaultShipping9 min read

Claude built the same small-business site twice, with Sonnet 5.5 and with Opus 5.5. Mythos found six holes in each. Here's every one, the fix, a prompt that checks your own app for them, and how to apply for Mythos.

The first prompt checks your own app for the same holes. Paste it into Claude Code opened in your project, fill in the first line, and it reports before it changes anything.
Paste into Claude Code
My app is: [one line on what it does, and the stack: framework, host, database, auth, payments].

Below are 8 checks. Together they cover 12 security holes an audit found in two apps Claude built from a basic prompt. For each check, tell me whether it applies to my app and how you can tell from the code, the database policies or the config. If it doesn't apply, say so in one line and move on. For the ones that do, tell me what the fix would change. Report on all 8 first. Fix only the ones I approve, one at a time, and run the project's checks after each. Don't install anything, change or rotate any keys, or touch production without asking me first. If a check depends on a database or host setting you can't see, tell me where to look.

1. Prices written by the client. Can a logged-in user insert or change a row that holds a price, a total or a quantity (orders, order items, bookings) straight through the database API with their own numbers? Read every insert and update policy on those tables. Prices should be set by the server or by a database function that reads them from the product table.
2. Bookings and reservations. Same question for anything bookable: can the client choose the name, the price or the duration of what it books? Can one account create unpaid holds without limit?
3. Open redirect after login. Does a next, redirect or returnTo parameter accept /\example.org or //example.org? Resolve it with new URL(next, origin) and accept it only when its origin is my site.
4. Names and paths sent by the client. Can a user post a review or a comment under any display name by sending their own author field? Can they point a photo or file field at any path? Is there a limit on how many they can post, and a length limit on every free-text field?
5. AI endpoints. Can anyone call a route that spends my AI API credits without logging in, as often as they like? It needs a rate limit per visitor, and the key needs a monthly spend cap.
6. Framing. Do my responses send X-Frame-Options or a Content-Security-Policy with frame-ancestors? If not, another site can load mine inside its page.
7. Holds outside the rules. Does the server accept a booking or an order at a time I'm closed, or off my slot grid? Do unpaid holds expire, and is there a cap per user?
8. Text from the URL. Does any page show a message taken from a query parameter, like ?error=...? Show fixed text for known codes only.

Run it in Claude Code, Cursor or Codex opened in your project, so it can read the code and the database policies. It only asks for a review of your own code, so it's written for the normal models.

What I tested

I had Claude build the same small-business site twice from one basic prompt, once with Sonnet 5.5 and once with Opus 5.5. The prompt listed features (a menu, accounts, orders, bookings, reviews with a photo, an admin page) and the stack (Supabase, Stripe, Vercel). It said nothing about security. The business is Jones BBQ and Foot Massage, a parody, with a banner on every page saying so and only fake test data.

Then I gave both to Claude Mythos 5.2. It read the code, then checked each finding on the live sites with test accounts. It found 12 holes, six in each build, and confirmed 10 of them live. The other two are the AI chat endpoint, which it could only read in the code because the sites ran without a real AI key.

HoleSonnetOpus
Order prices set by the customerCriticalNone
Booking prices set by the customerHighNone
Open redirect on loginMediumMedium
Reviews under any nameMediumMedium
AI chat with no login or limitMediumMedium
No anti-framing headersLowLow
Unpaid holds block the calendarSee row 2Medium
Login shows any message from the URLNoneLow

Both builds had six holes, but they weren't equally bad. Opus had no critical or high hole, and Sonnet had one of each. That's one build per model from one prompt, so a different run could come out differently.

1. Customers set their own order prices (Sonnet)

The site's server code did the right thing. It looked up every price in the menu table before it created an order, and Claude even left a comment there: "Prices always come from the database." The hole was one layer down. The database had a row level security policy that let any logged-in customer insert an order row for themselves, with any total and any items, straight through Supabase's public API. Nothing made them go through the site.

Mythos logged in as a normal customer and wrote an order for 50 briskets at $0.00. The brisket is $18.00 on the menu, so that's $900.00 of food. The site's test checkout marked it paid. With real Stripe connected the code shows a second route: start a normal order, then add free items to it before you pay.

Fix: drop the customer insert policies on the orders and order items tables. Create orders through a database function that takes item ids and quantities and reads the prices from the menu itself. That's how the Opus build did it, and it's why this hole wasn't there.

2. Customers set their own booking prices (Sonnet)

The same policy shape on the bookings table. A logged-in customer could write a booking with any massage name, any price and any time. A $0.00 booking went through the test checkout as paid and took the slot. Unpaid ones showed as booked to everyone for 20 minutes and could be made again as often as you like, so one account could keep real customers out of the calendar.

Fix: drop the insert policy. Create bookings through a function that reads the name, price and duration from the options table, checks the slot is valid and free, and caps unpaid holds per user.

3. Open redirect on the login page (both)

Both login pages take a next parameter and send you there after you log in. Both checked that it started with a slash and didn't start with two. Neither blocked a slash followed by a backslash, which browsers read the same way. So a real link to the real login page, /login?next=/%5Cexample.org/x, landed on example.org after the login. Someone uses that to drop your customer on a fake "log in again" page.

Fix: resolve the value against your own origin and accept it only if the origin still matches.

Check the destination by origin
function safeNext(next: string | null, origin: string) {
  try {
    const url = new URL(next ?? "/account", origin);
    return url.origin === origin ? url.pathname + url.search : "/account";
  } catch {
    return "/account";
  }
}

4. Reviews under any name (both)

The review form sent the author's name as a field, and the database stored whatever it got. A one-star review signed "Jones BBQ (Owner)" showed up on the reviews page of both sites. Any logged-in customer could post as many reviews as they liked without buying anything. The Opus build accepted a 20,000-character name. On the Sonnet build the photo field took any path on the storage address.

Fix: set the name from the user's profile inside the database, require the photo path to start with the poster's own user id, limit reviews to one per customer or per paid order, and put a length limit on every free-text field.

5. AI chat endpoint with no login or limit (both)

Both sites have a chat assistant, and both routes answer anyone, logged in or not, as often as they ask. The live sites ran in demo mode with no AI key, so this one was read in the code and not run. With a real key in place, a stranger with a loop runs up your bill.

Fix: add a rate limit per visitor before you turn on a real key, and set a monthly spend cap on that key.

6. No anti-framing headers (both)

Neither site sent X-Frame-Options or a Content-Security-Policy. Another website can load yours invisibly inside its own page and get a logged-in customer to click things on it, like a one-click Pay button.

Fix: send the headers from your Next.js config.

next.config.ts
// next.config.ts
const nextConfig = {
  async headers() {
    return [
      {
        source: "/(.*)",
        headers: [
          { key: "X-Frame-Options", value: "DENY" },
          { key: "X-Content-Type-Options", value: "nosniff" },
          { key: "Content-Security-Policy", value: "frame-ancestors 'none'" },
        ],
      },
    ];
  },
};

export default nextConfig;

7. Unpaid holds block the booking calendar (Opus)

The Opus build priced bookings correctly, but it let any logged-in customer start as many as they wanted without paying. Each unpaid hold blocks that time for everyone for 30 minutes and can be repeated. In the test one account held three slots and never paid, and a second account trying the same time got "That time slot was just taken." The orders side had a smaller version: it accepted a pickup at 3 AM on a closed Monday.

Fix: cap unpaid holds per user at one or two, accept start times only on your slot grid and inside opening hours, and add the opening-hours check to orders.

8. Login page shows any message from the URL (Opus)

The Opus login page prints the error parameter in its red error box. So /login?error=Account%20locked.%20Call%20555-0100 shows a believable scam message on your own domain.

Fix: pass a short code like ?error=expired and show fixed text for the codes you know.

What held up on both builds

  • No secret keys in either site's JavaScript.
  • Logged-out visitors could read only the menu, the massages and the reviews.
  • One customer couldn't read or change another customer's profile, orders or bookings.
  • Nobody could make themselves admin or change menu prices.
  • The payment-confirm functions rejected wrong, empty and default secrets.
  • Uploads were limited to images, in the uploader's own folder.
  • Admin pages refused non-admin accounts, and the Stripe webhook refused unsigned calls.

So Claude got the famous ones right on both builds. What it missed was who can write: prices, names, holds.

The prompt I gave Mythos

This is the audit prompt. It says up front that the sites are mine and hold fake data, and it asks for steps I can follow myself.

The Mythos audit prompt
This repo has two versions of my small business website, Jones BBQ and Foot Massage: /sonnet and /opus. I built both with Claude this week. They're mine, they're live on my own Vercel and Supabase projects, and they only hold fake test data.

Sonnet version: [SONNET URL]
Opus version: [OPUS URL]

Find every security hole in each version, the way a stranger on the internet would. Read the code, then check each finding against the live site. You can sign up your own test accounts. Stay inside these two sites and their Supabase projects, and don't run load or denial-of-service tests.

For each version separately, give me a numbered list, worst first. For each hole:
- what a stranger can do, in one plain sentence
- what they get (whose data, whose money)
- where it is in the code
- confirmed on the live site, or only seen in the code
- the steps I can follow in my browser to see it myself with two test accounts
- the fix

Finish with the count for each version and the one hole you'd fix first.

I ran it on Mythos. Anthropic says its generally available models "have conservative cyber safeguards that block most cyber work", so a normal model may refuse the live-testing half. The prompt at the top of this page is the one written for normal Claude Code.

How to apply for Mythos

Anthropic's page says Claude Mythos 5.2 "is available to vetted cyberdefenders and life scientists through our trusted access programs". For security work that program is the Cyber Verification Program.

The tier that covers work like this is Defense Access, which Anthropic describes as "for defensive work, including security operations center and incident response tasks, reverse-engineering malware, and analyzing and validating vulnerabilities". Its examples of who qualifies include "smaller security firms; open-source maintainers; and individual researchers with a track record of reported vulnerabilities".

You apply through Anthropic's portal. They say "we will verify all applicants and request proof of the required security controls for the relevant access tier", and "We aim to respond to applications within a few days." It's an application, so nobody can promise you get in. Everything on this page was done on my own sites with fake data. Only test what's yours.

The fine print

  • Holes 1, 2, 4 and 7 need a logged-in customer account. On a real shop anyone can make one. On my demos the sign-up emails didn't deliver, so the test accounts were made by hand.
  • Paid means the sites' own test checkout. No real Stripe key was connected, so no real payment was run.
  • One build per model from one prompt, at medium effort.
  • Both sites are parody demos with fake data, and they come down after the video.

Keep reading

Two minutes of questions, and our first call starts with the work instead of an intro.

Tell me about your appBuilds start at $500