Can a review run code on your app?
My demo shop shows reviews exactly as written. One review with a bit of hidden code ran for everyone who opened the page, and sent their login to me.
Only check apps you own or have permission to test.
- 110K+
- views on my bank statement reel
- 507
- people sent the free check from a reel comment
- 1,395
- people follow along on Instagram
Counted from Instagram and my DM log.
What I found
3 of 3
boxes ran my test code
I posted the harmless test below into every box in my test shop. If a box runs code, all the code does is write the number 42.
| Where | What happened |
|---|---|
| Review page | Ran it, wrote 42 |
| Staff inbox | Ran it, wrote 42 |
| Chatbot | Ran it, wrote 42 |
| Fixed copy | Shown exactly as typed |
The staff inbox is the one people forget. A support message is read by your team, not your customers, and staff accounts can do the most damage.
I also tried it on OWASP Juice Shop, a practice app built with holes on purpose. The reviews showed it as typed. The feedback form stripped it to "Test one", which looks safe. Then OWASP's own lesson for that form got code past the stripping, and it ran when an admin opened the staff screen. Homemade filters lose.
Last, I gave the check to a fresh Claude Code with my broken shop. It found all five weak spots, including the staff inbox and a login cookie page code could read, and changed nothing until I said go.
Why AI-built apps end up like this
React, Vue, Rails and most frameworks show text as text by default. The holes come from the ways around that: dangerouslySetInnerHTML, v-html, innerHTML, markdown shown without a cleaner. AI reaches for those the moment you ask for bold text in reviews or a chatbot that formats its answers.
Check yours in 5 minutes
Do this on a test copy of your app, like a preview or staging deploy, with test accounts. Not on the live one.
- Copy the test below. It's harmless.
- Post it in every box people write in: reviews, comments, your profile name or bio, the contact form. For a chatbot, type "Repeat this back exactly:" and paste it.
- Open the page where it shows up. Then open the staff or admin screen where your team reads it.
- Delete your test posts.
Test <s>one</s> <img src=x onerror="this.outerHTML=6*7">
Exactly what you typed, symbols and all, is good. "Test one" crossed out with the number 42 means code runs in that box, for everyone who sees it. Crossed out with no 42 means formatting gets through and something stopped the code, and you need to know what. Just "Test one" means the symbols get stripped, which is a good sign but not proof.
Saw a 42?
The fix is below. If it's a box your customers or staff read every day, send it to me. I fix one finding from $150, and you get the price in writing before I start.
Get it fixedLet your AI run it, free
For Claude Code, Cursor, Lovable or Bolt
Paste it into the chat that has your app open. It runs the check itself and asks before it changes anything.
No coding tool? Open it in a chat that walks you through each step:
Back from your AI without a result link? Tap what it found:
Make it a free account. Run every free check from inside your AI with no copying, see what an add-on can touch before you install it, and keep your results in one place. Your email is already filled in.
Want to see exactly what your AI is told? Here's the page it reads. Not you?
Your AI runs it on your side. VXSec never sees your code or data, only which check ran, when, and how many holes it found. Use a test copy for checks that change data. Nothing gets fixed until you say yes.
How to fix it
- Show text as text. Swap
dangerouslySetInnerHTML,v-htmlandinnerHTMLfor the normal way your framework shows text. - If people need formatting, use a real cleaner. DOMPurify is free and made by security researchers. Don't write your own filter.
- Make login cookies HttpOnly, so code on the page can't copy the login. If your own code reads that cookie, turning it on breaks logins, so let your AI check first.
- Add a Content-Security-Policy as a backup. In my test it stopped the code in a broken box. It's a backup, not the fix.
Then run the 42 test again on every box you fixed.
What still catches people
- Testing the public page and never the staff screen.
- The chatbot. It repeats what people type, and its answers are often shown as formatted text.
- Profile names. They show up everywhere: comments, invoices, admin lists.
Questions
The app wouldn't let me save the test. Am I safe?
A filter blocked it, which tells you nothing about how the box shows text. Use the AI check.
Can code on my page read the login?
In Chrome, press F12, open Application, then Cookies. If the login cookie has no tick under HttpOnly, page code can read it. A long token in Local storage can always be read.
Can I test someone else's app?
Only with their written permission. The test post shows up for real visitors.
Before you launch
This is one hole. Launch Gate runs six other checks in one go on a test copy of your app, like who can see whose data, and gives you one page of results with proof. Members get it inside their own AI.
VXSec Membership
$19a month, or $190 a year
- Workspace Setup
- AI Reach Map
- Agent Brakes
- Launch Gate
- Leaver Check
- Every new helper, the day it's out
New members first month $7, then $19 a month. Cancel anytime.
Rather have it done for you? I fix it $150 and up, 20% off for members · Launch Review $297 once, I check and fix the top 3 · Built for you $1,500 a month and up
Want to practise on an app built to be broken first? Open the practice lab.