Stranger makes Kane CLI sign in to your app as a second user and hunt for the first user's data, then keeps your coding agent fixing until Kane says CLEAN.
by Chicken Biryani
Stranger checks whether one user of your app can see another user's data. It's the bug behind CVE-2025-48757, where one scan found 170 of 1,645 Lovable apps letting strangers read other users' rows. You never see it, because you only test your app as yourself. Kane CLI does the looking. It signs in as the owner and saves a random canary, then signs in as a second account, saves its own control row (so a broken page can't pass) and checks the canary is nowhere on the page. Stranger then replays the page's data requests with the stranger's login and with none, and checks writes, files, live updates and record pages too. A LEAK comes with a fix brief naming the open policy. Bench: ten small Supabase apps, nine with a different leak and one with none. Real Kane runs caught all nine and called the clean one CLEAN: https://stranger-2yf3.vercel.app/bench/ A real app we didn't write: on a local copy of Notely, a Lovable app, Stranger found a leak the app's own server code hid from the page, and that test fixed two bugs in Stranger. Closed loop: a fresh Claude Code agent asked only for a search box couldn't finish. Kane found the leak (f5b2cc), the agent wrote a migration, and Kane's re-run said CLEAN (c789a7). The same loop runs in GitHub Actions on a labelled pull request, with no human in it: https://github.com/Sanchay117/stranger/pull/11 See the leak yourself, no sign-up: https://stranger-2yf3.vercel.app/duebook/?as=stranger
How the agent and Kane talk: `npx github:Sanchay117/stranger install-claude` adds a Stranger skill and a Stop hook to Claude Code. Once armed (`touch .stranger/armed`), when the agent tries to finish after changing watched files, the hook runs Stranger, which runs Kane CLI twice in agent mode and reads each run's NDJSON `run_end` line. On a LEAK the hook blocks the stop and hands the agent `.stranger/FIX.md`. The agent fixes the database with a new migration, tries to stop again, and Kane checks with a fresh canary until it says CLEAN. The loop's commits are on https://github.com/Sanchay117/stranger/tree/agent-loop The fix loop in CI: label a pull request `stranger-fix` and GitHub Actions runs Stranger with Kane against the branch, runs Claude Code headless on the fix brief, has Kane check again with a fresh canary, and commits the migration once Kane says CLEAN. Live run: https://github.com/Sanchay117/stranger/pull/11 What Kane caught: on the live app, signed in as the stranger, Kane saw the owner's canary (run f5b2cc, step 21 failed). Kane's network log keeps request URLs and headers but not response bodies, so Stranger replays those requests itself: in run 6541c9 both the stranger's login and no login at all returned the owner's canary. On the bench (19 Nov, 589 credits) the runs caught a leaky view, database functions, a record page opened by its address, a forged insert, a total that sums every account, files and live updates. On Notely, Kane's page check and the server replay missed a note the app's server code filtered out, and Stranger's direct Supabase read caught it (run 106ece). On 24 Nov Kane CLI 0.10.9 checked the redesigned live Duebook again: LEAK (https://stranger-2yf3.vercel.app/runs/e18167/). Every Kane run is saved: Kane's share links expire after seven days, so each run's steps and screenshots are kept at https://stranger-2yf3.vercel.app/runs/<id>/ (21 so far). In a clone, `npm run verify` recomputes all of the evidence and checks it holds no passwords or login tokens. CI runs it on every push. A closed loop on an app we didn't write: PennyFlow, a finance tracker, run locally. As shipped Kane said CLEAN (https://stranger-2yf3.vercel.app/runs/3555e0/). With row level security turned off in our local database, LEAK (https://stranger-2yf3.vercel.app/runs/56eb00/). A fresh headless Claude Code agent given only the fix brief wrote the migration, and Kane's re-run with a fresh canary said CLEAN (https://stranger-2yf3.vercel.app/runs/10dfea/). Leak guards: every leak Kane finds becomes a guard that runs again on later changes. After we restyled Duebook, Kane replayed the guard recorded on the old design without healing and still found the leak. How to run it: `npx --yes github:Sanchay117/stranger demo` walks through the real evidence in your terminal with no login. Open https://stranger-2yf3.vercel.app/duebook/?as=stranger to see the leak. To check your own app, install and log in to Kane CLI, run `npx github:Sanchay117/stranger init`, add two test accounts, then `npx github:Sanchay117/stranger run`. `npm test` runs Stranger end to end against a stand-in Kane, with no credits (64 tests). Kane CLI bugs we found while building, reported upstream: a comment on https://github.com/LambdaTest/kane-cli/issues/77 (secret variables written in plain text to the authored test file), https://github.com/LambdaTest/kane-cli/issues/247 (the evidence HAR has no response bodies but keeps login tokens) and https://github.com/LambdaTest/kane-cli/issues/248 (expired share links hang instead of saying so).
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →