Returns Portal
1. Summary
On 19 Nov 2026, Keybrum ran 143 attacks against the live deployment of Returns Portal. At the time of this report, 0 critical, 0 high, 0 medium and 0 low findings are open, and 3 findings have been fixed and verified by a failed re-attack.
2. Scope
The deployed application at https://returns.rivage.example/ and the backend services its public code calls. Ownership was verified before testing (verification tag on the page).
- 1 JavaScript file, the HTML and exposed files (.env, .git, database, backup and server files) for 25 kinds of API keys
- Realtime channels: anonymous subscriptions to the change feed
- 6 database tables: read, insert and update, anonymously and as a brand-new account
- 2 database functions
- 2 storage buckets
- 1 AI function
- Automatic sign-in as [email protected], with a second isolated identity for differential checks
- 6 pages for open redirects
- Sensitive page /admin for clickjacking protection
- 1 web/API origin for baseline browser security headers
Out of scope or not testable:
- Deleting rows: it cannot be tested without deleting data. Check that no delete policy uses true.
3. Method
Black-box testing from the internet with what any visitor receives (the public web page, its JavaScript and public keys), plus a throwaway account when sign-up is open. Write tests are designed so they cannot change data. A finding is reported only with proof; a finding is closed only when the same attack fails.
| Attack | Version | Reference | Safety |
|---|---|---|---|
| Read tables with the public key | v4 | A01, CWE-862 | Read-only. Only counts, column names and one redacted row are kept. |
| Insert rows without permission | v2 | A01, CWE-862 | A null primary key or a missing required column always fails, and PostgREST's tx=rollback preference rolls the transaction back regardless: no row can persist. |
| Change other people's rows | v2 | A01, CWE-862 | Setting a required column to null always fails, and tx=rollback rolls the transaction back regardless: no row can change. |
| Call exposed database functions | v4 | A01, CWE-862 | GET is read-only. Writes use PostgREST tx=rollback and are only sent when the backend honors it; otherwise the read-only refusal is the evidence and no write is sent. |
| List and download stored files | v1 | A01, CWE-862 | Read-only; file contents are not stored. |
| Upload files into storage buckets | v1 | A01, CWE-862 | The path already exists, so the upload can only collide: the existing file is untouched and nothing is created. |
| Auth redirect accepts any site | v1 | A01, CWE-601 | One GET with a junk token; no email is sent and no account changes. |
| Use AI functions without an account | v2 | A01, CWE-306 | Three short prompts, a fraction of a cent each. Functions that don't look like AI are never called. |
| Supabase admin key in the browser | v1 | A07, CWE-798 | Counts users and tables; reads nothing else. |
| OpenAI key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Anthropic key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Google AI (Gemini) key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| OpenRouter key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Groq key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Replicate key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Hugging Face key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| ElevenLabs key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Stripe key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Resend key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| SendGrid key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| GitHub key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Slack key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| AWS key in the browser | v1 | A07, CWE-798 | Detection only. |
| Private key in the browser | v1 | A07, CWE-798 | Detection only. |
| Database connection string in the browser | v3 | A07, CWE-798 | Detection only. |
| npm key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Supabase management key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Airtable key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Notion key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| PostHog key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Sentry key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| PlanetScale key in the browser | v1 | A07, CWE-798 | Detection only. |
| Mapbox key in the browser | v1 | A07, CWE-798 | The check reads account metadata only; nothing is spent or changed. |
| Open redirect | v1 | A01, CWE-601 | GET only, redirects not followed. |
| Backup, database and server files served | v1 | A02, CWE-538 | Reads only the first bytes (a Range request); contents are not stored. |
| Guessable session signing secret | v1 | A04, CWE-1391 | Offline signature check; any optional confirmation re-signs the same payload, so nothing is escalated. The secret is never printed in full. |
| Admin page open to anyone | v1 | A01, CWE-306 | One GET per page; the page HTML is not stored, only a redacted excerpt. |
| Sensitive pages can be framed | v1 | A02, CWE-1021 | One GET. Checks response headers only; the page body is not stored. |
| Browser security header baseline | v1 | A02, CWE-693 | One read-only request per owned origin. Missing headers are defense-in-depth findings, not reported as authentication bypasses. |
| Original source code published | v1 | A02, CWE-540 | Read-only. |
| Environment file served | v1 | A02, CWE-538 | Read-only. |
| Git repository served | v1 | A02, CWE-527 | Read-only. |
| Subscribe to live database changes with the public key | v1 | A01, CWE-862 | Read-only subscription attempts; the connection is closed after a few seconds. Nothing is written or broadcast. |
| Debug and operations endpoints open to anyone | v2 | A02, CWE-489 | Reads only the first bytes (a Range request); contents are not stored. |
| Session cookies missing Secure, HttpOnly or SameSite | v2 | A02, CWE-614 | One GET. Cookie values are masked and never stored. |
| Backup of PHP source or server config is public | v1 | A02, CWE-538 | Reads only the first bytes. The file is not stored. A password inside it is rotated in the finding, not printed. |
| Directory listing of uploads or backups | v1 | A02, CWE-548 | The index is read. The files it names are not downloaded. |
| WordPress lists its users | v1 | A01, CWE-862 | One list and at most one author request. No password is tried. |
| WordPress xmlrpc.php answers strangers | v1 | A02, CWE-1188 | That one method only. Pingback is not called and no login is attempted. |
| Django debug page or open admin | v1 | A02, CWE-489 | Two GETs. Settings text is not stored. |
| Laravel Ignition or a debug error page | v1 | A02, CWE-489 | No solution is executed, even when the health check says commands are enabled. |
| Flask debugger left on | v1 | A02, CWE-489 | No PIN is sent and no Python is run. |
| Symfony profiler is public | v1 | A02, CWE-489 | The index only. Individual profiles, which hold other people's requests, are not downloaded. |
| Swagger, Redoc or GraphiQL is public | v1 | A02, CWE-489 | The page is confirmed and not stored. Operations are not executed from the console. |
| SvelteKit page data without a session | v1 | A01, CWE-862 | GET only. A finding only when the JSON holds personal data. One redacted record is kept. |
| Remix or React Router data without a session | v1 | A01, CWE-862 | GET only. A finding only when the JSON holds personal data. |
| OWASP Top 10 (2025) | Attempts |
|---|---|
| A01 Broken Access Control | 63 |
| A02 Security Misconfiguration | 54 |
| A03 Software Supply Chain Failures | Nothing of this kind on this app |
| A04 Cryptographic Failures | 1 |
| A05 Injection | Nothing of this kind on this app |
| A06 Insecure Design | Nothing of this kind on this app |
| A07 Authentication Failures | 25 |
| A08 Software or Data Integrity Failures | Nothing of this kind on this app |
| A09 Security Logging and Alerting Failures | Not testable from outside |
| A10 Mishandling of Exceptional Conditions | Nothing of this kind on this app |
4. Test history
| Date | Trigger | Attacks | New / fixed findings |
|---|---|---|---|
| 19 Nov 2026 | Deployment | 143 | 0 / 0 |
| 7 Nov 2026 | Deployment | 143 | 0 / 0 |
| 23 Oct 2026 | Deployment | 143 | 0 / 1 |
| 10 Oct 2026 | Manual | 143 | 3 / 0 |
5. Dependencies
Keybrum keeps the names and versions of the 183 packages Returns Portal runs and matches them every hour against every published vulnerability advisory (OSV.dev: GitHub, PyPI and OpenSSF records). On 3 Dec 2026, 0 critical or high advisories reach a version it runs, 0 in all. 36 were closed by an upgrade, confirmed in the lockfile or on the live app.
Keybrum is independent from the platforms that build and host this application. This report lists counts, not vulnerability details. A result without open findings means the listed attacks failed on the listed dates; it is not a guarantee against other weaknesses.