Security assessment report
yourapp.example
Prepared for Northbeam Studio Ltd · Deep scan (authorised, with test payloads) · 11 min
01Summary
This report documents an automated security assessment of the target above. 11 issues were recorded, including 1 critical and 2 high severity. Of these, 0 were demonstrated with the request and the response included below, 8 were read directly from the application, and 3 were recognised by a check without being demonstrated and should be confirmed before you act on them. Since this report was produced, 1 finding has been confirmed fixed by a scoped re-check (marked below); the result above reflects the scan as run.
Active testing was authorised in writing by the account holder on 28 September 2026 (co-signed by the client).
02What this means for your users
The same findings, sorted by what they put at risk. Each line is the worst case the findings in that group would allow.
Someone could reach data that is not theirs.
- critical Service-role key shipped in the client bundle
- high Invoices readable across organisations
- low Directory listing enabled on /uploads/
Sign-in and sessions could be handled more safely.
- medium Session cookie without SameSite attribute
Nothing found that bends your business rules.
- info GraphQL introspection disabled
A few basics need tightening.
- medium Content-Security-Policy header not set
- low Server header reveals version
- info HSTS max-age under one year
03Without an account
What a visitor who has never signed up can reach or do. 3 findings in this report concern such a visitor; each is explained in full under Findings.
- criticalService-role key shipped in the client bundle
- highMissing rate limiting on password reset
- lowDirectory listing enabled on /uploads/
04Findings
11 issues, most serious first. Each one shows which test found it, where it is, and how to fix it.
// .env.local (server only - never NEXT_PUBLIC_)
SUPABASE_SERVICE_ROLE_KEY=...
// app/api/admin/route.ts
import { createClient } from "@supabase/supabase-js";
const admin = createClient(process.env.SUPABASE_URL!, process.env.SUPABASE_SERVICE_ROLE_KEY!);
create policy "invoices: members only" on public.invoices
for select using (
org_id in (select org_id from public.memberships where user_id = auth.uid())
);
Not directly demonstrated: a check recognised a pattern that usually means this. Worth confirming before acting on it.
Not directly demonstrated: a check recognised a pattern that usually means this. Worth confirming before acting on it.
// next.config.js
headers: async () => [{ source: '/(.*)', headers: [{ key: 'Content-Security-Policy', value: "default-src 'self'; script-src 'self' 'nonce-...'; object-src 'none'; base-uri 'self'" }] }]
Not directly demonstrated: a check recognised a pattern that usually means this. Worth confirming before acting on it.
05How the target was tested
Scope: https://yourapp.example (host: yourapp.example). Signed in with the test account supplied by the account holder; checks behind the login ran as that user.
Test payloads were sent by:
- Sign-in, sign-up and reset forms - About four form submissions per form, all with made-up addresses at example.com. It never creates, changes or deletes an account.
- Access-check bypass - Read-only GET requests only. No credentials are guessed and nothing is written.
- Account system abuse - One sign-up and about five requests, all with addresses at example.com that cannot receive mail. Nothing is sent to a real person and no existing account is touched.
- Cross-site request forgery - One POST per route, up to six, carrying the project’s own saved session. Values are placeholders and addresses are at example.com.
- Record enumeration (IDOR) - Read-only GET requests carrying the project’s own saved session. Nothing is written.
- Cost and resource limits - At most five requests per route, sent one after another, never in parallel. One request carries a two-megabyte string.
- Server-side request forgery - One request per field with an address we control, then up to three with internal addresses. Nothing is written and no payload is stored.
- Server-side race conditions - Five write requests per route, sent together, on at most three routes, using the project’s own saved session. The report names what was sent so duplicates can be removed.
- Payment and workflow logic - A small number of write requests per route, using the project’s own saved session where there is one. Values are deliberately obvious so any record left behind is easy to find.
- Assistant data and actions - About six chat messages per assistant route, in plain language. No hidden instructions and no payloads.
- Unlinked content (ffuf) - About 100 GET requests, ten at a time, at most 40 a second. Nothing is written.
- Exposed services - One connection attempt per port, 15 in total, each closed immediately.
- Mass assignment - One or two create requests per route. Records it creates are named "scanwright-test-…" so they can be found and removed. Nothing is sent that would grant a privilege.
- Demo accounts from a template - Up to nine sign-in attempts, each for a different address, stopping at the first success or the first sign of rate limiting.
- ZAP full scan - REAL ATTACK PAYLOADS - SQL injection, cross-site scripting, path traversal, command injection, XXE, SSTI and more, against every crawled parameter.
- dalfox (XSS) - REAL ATTACK PAYLOADS - XSS probes injected into application parameters.
- DOM XSS (browser) - Scripted page loads carrying a harmless marker payload. A finding is raised only when the marker executes in the browser.
- sqlmap (SQLi) - REAL ATTACK PAYLOADS - SQL injection probes at level 2 / risk 1, so no destructive or data-modifying statements are used.
- Injection probes (SSRF, RCE, SSTI, LFI) - REAL ATTACK PAYLOADS - template expressions, /etc/passwd traversal strings, and SSRF / shell-callback payloads pointing at the OAST server - injected into discovered query parameters. Bounded to 25 URLs.
- Stored XSS - POST form submissions carrying a benign marker (so it writes data), then GET requests to look for the marker. No executing payload is planted.
- NoSQL / prototype pollution / mass assignment - REAL ATTACK PAYLOADS - operator, __proto__, extra-field and node-serialize payloads - to discovered parameters and endpoints. The mass-assignment probe uses a harmless marker field so no privilege is planted.
- Client-side race conditions - A short burst of identical requests to a once-only action. Several may be recorded where one was intended.
- Server actions as the wrong person - Up to four real calls per allowed action, up to twenty actions, plus page reads. The calls run for real when the application lets them through, so they leave records carrying "sentinel-" markers, which are listed so they can be removed.
- AI agent pentester - ADAPTIVE, MODEL-CHOSEN REQUESTS to the authorised host only. In active mode these include POST/PUT/PATCH/DELETE, so data may be created, changed or deleted; in read-only mode only GET/HEAD/OPTIONS are sent.
- JWT attacks - Offline analysis needs no traffic. When a token is fetched, one Supabase sign-in for a test user. In active mode, a few forged tokens are sent to a read-only identity endpoint (never to a write endpoint).
06Test coverage
Every module that ran, what it attempted, and how the target responded. Finding counts here appear in full in the Findings section.
| Test | What was attempted | Response |
|---|---|---|
| SPA crawler | Drives a real headless Chromium (Playwright) to load the application the way a browser does, so client-rendered routes, links and forms that only exist after JavaScript hydration are discovered. It opens one page of each kind (one client’s pages, not the same page for every client), up to 150, and does not follow sign-out or delete links. With a test login it maps the application twice: signed in, then as a visitor without an account (the front page, sign-in, reset and the usual public addresses). It records the XHR/fetch requests the app fires, which reveals the actual API endpoints and their parameters. On a Deep scan it also fills each form with made-up values and presses it, and presses each button, with the page cut off first: every request made from then on, other than scripts, styles, images and fonts, is written down and cancelled inside the browser, and live connections and service workers are blocked. That records which server action or API each form and button calls without any of them reaching the application. The discovered surface is handed to the other dynamic scanners so they test the whole app, not just the landing page. Sent: Ordinary navigation requests (GET) to same-origin routes it discovers, plus whatever requests the application itself makes when a page loads. While recording, nothing beyond reloading the page. Stays on the authorised host and port. No attack payloads. |
ran, clean |
| Security headers | Issues a single HTTP GET to the site root, follows redirects, and inspects response headers and Set-Cookie attributes for the standard browser-enforced protections. Sent: One HTTP GET request. |
3 findings |
| TLS posture | Performs one TLS handshake and inspects the presented certificate chain - expiry, chain validity and the negotiated protocol version. Sent: One TLS handshake. No HTTP requests. |
ran, clean |
| DNS & mail posture | Queries public DNS resolvers for the domain’s SPF, DMARC, CAA and MX records to assess the mail-spoofing and certificate-issuance surface. Sent: DNS queries to public resolvers. No traffic to the application. |
ran, clean |
| testssl.sh | Repeated TLS handshakes that enumerate supported protocol versions and cipher suites, and probe for known TLS-layer vulnerabilities. Sent: Many TLS handshakes on port 443. No application-layer requests, no payloads. |
ran, clean |
| Exposed files | Requests a fixed list of known-sensitive paths (.git/config, .env, database dumps, private keys, backup files) and confirms each hit with a content signature so a catch-all page is not misreported. Sent: One GET request per path (~15). No payloads. |
2 findings |
| Open redirect | Appends a benign off-site canary URL to common redirect parameters (url, next, redirect, …) and checks whether the response redirects to it. Sent: One GET per parameter with a harmless external canary as the value. No payloads reach the app’s logic beyond the redirect. |
1 finding |
| CORS policy | Sends a request with an attacker Origin header and inspects Access-Control-Allow-Origin / Allow-Credentials for reflection. Sent: One GET carrying a crafted Origin header. |
ran, clean |
| Subdomain takeover | Resolves CNAMEs for common subdomains and, where one points at a third-party service, fetches it to detect an "unclaimed resource" fingerprint. Sent: DNS queries plus one GET per third-party-pointing subdomain. Nothing to the primary host. |
ran, clean |
| API security | Reads the API surface from the OpenAPI/Swagger spec (well-known paths or a configured URL) AND from the endpoints the SPA crawler observed the app calling - so it works even on the majority of apps that publish no spec. For each endpoint it checks unauthenticated access to auth-required routes, privileged-looking endpoints that answer anonymously, leaked stack traces, and - in active mode - a short rate-limit burst. Sent: GET requests only (never POST/PUT/PATCH/DELETE), so nothing is created or changed. In active mode, a burst of ~20 GETs to a few endpoints to probe rate limiting. |
ran, clean |
| GraphQL security | Locates a GraphQL endpoint (common paths, the discovered surface, and the Supabase /graphql/v1 endpoint) and sends read-only queries: an introspection query, an invalid-field query to detect suggestions, a 50-alias query to test amplification, and a nested query to test depth limits. Sent: POST GraphQL queries only (no mutations). Nothing is created or changed. |
1 finding |
| Excessive data exposure (BOPLA) | Replays the session against the discovered API endpoints and inspects the JSON returned, matching key names against a list of fields that should never reach a client (password hashes, secrets, tokens, government and card identifiers, MFA secrets, authorization flags). Sent: GET requests to discovered endpoints. Read-only; no payloads. |
ran, clean |
| Host header & cache | Sends crafted Host / X-Forwarded-Host headers and checks whether they are reflected into the body or a redirect (host-header injection). Requests authenticated pages under a fake static extension to detect web cache deception. Reflects unkeyed headers into a unique cache-busted URL to detect cache poisoning without touching the real cached page. Sent: GET requests carrying crafted headers. No attack payloads in the body. |
ran, clean |
| Frontend bundle & Server Actions | Fetches the JavaScript bundles the app serves to every visitor and reads them for credentials and for the Server Action identifiers that form a hidden POST surface. Sent: Ordinary GET requests for the app’s own script files, exactly as a browser makes. |
2 findings |
| Privacy hygiene | Reads the app’s pages and lists the third-party services each one loads, checks that a privacy policy is linked, and looks for forms that post somewhere else or recording scripts on sign-in and payment pages. Sent: Plain page reads. Nothing is submitted and no third-party service is contacted. |
ran, clean |
| Sign-in settings | Finds the Supabase project address and publishable key in the app’s own pages and scripts (or Setup), then reads the project’s public sign-in settings. Sent: One read of the public sign-in settings. No sign-in, sign-up or reset requests. |
ran, clean |
| Sign-in, sign-up and reset formspayloads | Submits each discovered sign-in, sign-up and password-reset form a few times: twice with addresses that cannot exist, once with an address at the app’s own domain, and once with a malformed value. Compares the replies and their timing. Sent: About four form submissions per form, all with made-up addresses at example.com. It never creates, changes or deletes an account. |
ran, clean |
| Hosted database exposure | Finds the hosted-database project in the app’s own pages and scripts, reads the schema the public key is allowed to see, then requests up to two rows from each table and lists the storage buckets. For Firebase, reads the top level of the Realtime Database and one Firestore page. Sent: Read-only GET requests carrying the app’s own public key. No writes, no deletes, at most two rows per table. |
ran, clean |
| Access-check bypasspayloads | Requests each likely private page without credentials and keeps the ones that are refused or sent to sign-in. Re-requests those with the framework’s internal header, and with eight alternative spellings of the same address. Sent: Read-only GET requests only. No credentials are guessed and nothing is written. |
ran, clean |
| Account system abusepayloads | Signs up once with a made-up example.com address carrying fields a sign-up should decide itself, inspects the account that comes back, asks the provider to redirect somewhere unrelated, and requests four password resets for four made-up addresses. Sent: One sign-up and about five requests, all with addresses at example.com that cannot receive mail. Nothing is sent to a real person and no existing account is touched. |
ran, clean |
| Cross-site request forgerypayloads | Takes POST forms and calls the crawler recorded, re-sends each with the session cookie, a foreign Origin and Referer, and any token field removed, then checks whether the app accepted it. Sent: One POST per route, up to six, carrying the project’s own saved session. Values are placeholders and addresses are at example.com. |
ran, clean |
| Record enumeration (IDOR)payloads | Requests the original address while signed in, then up to three neighbouring ids, and compares each reply with the first once scripts, styles and spacing are removed. Sent: Read-only GET requests carrying the project’s own saved session. Nothing is written. |
ran, clean |
| Information leakage | One request for a non-existent address, then a read of up to ten pages and ten API replies, checking headers and bodies for internals, private network names and fields that should not be sent. Sent: Read-only GET requests. One of them is for an address that does not exist. |
ran, clean |
| Cost and resource limitspayloads | Up to five sequential calls per costly route, stopping as soon as the app pushes back, then one oversized body and one repeated-character value compared against an ordinary one. Sent: At most five requests per route, sent one after another, never in parallel. One request carries a two-megabyte string. |
ran, clean |
| Server-side request forgerypayloads | Submits each address-taking field with a unique address on our own callback server, waits for the server to call it, then tries three addresses only the server could reach and checks the reply for content only those services produce. Sent: One request per field with an address we control, then up to three with internal addresses. Nothing is written and no payload is stored. |
ran, clean |
| Server-side race conditionspayloads | One request alone to confirm the action works, then five at the same instant, counting how many succeeded rather than being told the action was already done. Sent: Five write requests per route, sent together, on at most three routes, using the project’s own saved session. The report names what was sent so duplicates can be removed. |
ran, clean |
| Payment and workflow logicpayloads | For each money route, one request with a negative quantity, one with a price of 0.01 and one with a changed currency, judged by whether the app accepted the request and echoed the value back. For each final step, one direct request with nothing done beforehand. Sent: A small number of write requests per route, using the project’s own saved session where there is one. Values are deliberately obvious so any record left behind is easy to find. |
ran, clean |
| Assistant data and actionspayloads | Sends a control question to confirm the route answers, then two questions asking for other organisations’ material and three asking for privileged actions, judging each reply against a refusal. Sent: About six chat messages per assistant route, in plain language. No hidden instructions and no payloads. |
ran, clean |
| Public footprint | Two public lookups (certificate logs and the web archive), then a DNS resolution and a single front-page request for up to 25 names that resolve. Sent: Two queries to public archives, and one ordinary front-page request per name, exactly as a search engine would. |
ran, clean |
| Hidden attack surface | Reads the public web archive for this site’s past addresses and re-requests up to 25, reads the app’s own script bundles for route names, and asks a few pages with candidate parameters, keeping only those that change the reply. Sent: One archive query, then ordinary GET requests for past addresses, script bundles and a handful of parameter probes. |
ran, clean |
| Unlinked content (ffuf)payloads | Runs ffuf against a short curated list with auto-calibration, then discards any set of hits that are all the same size, since that is one catch-all page answering for all of them. Sent: About 100 GET requests, ten at a time, at most 40 a second. Nothing is written. |
ran, clean |
| Exposed servicespayloads | Opens a connection to each of 15 ports and records which accept one. It does not interrogate the service or send it anything. Sent: One connection attempt per port, 15 in total, each closed immediately. |
ran, clean |
| Mass assignmentpayloads | Sends each create route an invented field to see whether unknown fields are stored at all, then offers it privilege-shaped fields with inert values and checks whether they come back in the reply. Sent: One or two create requests per route. Records it creates are named "scanwright-test-…" so they can be found and removed. Nothing is sent that would grant a privilege. |
ran, clean |
| Demo accounts from a templatepayloads | Sends one known-wrong attempt first to learn what this app does with a failure, then up to eight published template pairings, judging success against that baseline. Sent: Up to nine sign-in attempts, each for a different address, stopping at the first success or the first sign of rate limiting. |
ran, clean |
| Webhook signaturepayloads | Sends the configured webhook endpoint a few events of a type the provider does not use: one with no signature, one with a wrong signature, one correctly signed with the secret from Setup, and for Stripe one signed but deliberately stale. Sent: Three or four harmless events of an unknown type. The endpoint should reject all but the correctly signed one, and the unknown type means a handler that does act on it changes nothing. |
skipped No webhook endpoint configured in Setup. |
| ZAP baseline | Spiders the application to discover pages, then applies passive analysis rules to the traffic it observed. It never modifies requests. Sent: Ordinary crawl requests (GET) to discovered URLs. No attack payloads. |
ran, clean |
| Nuclei | Runs a community template library that requests known-sensitive paths and fingerprints responses - exposed version-control directories, backup files, admin panels, default credentials and common misconfigurations. Sent: Templated HTTP requests for known-sensitive paths (for example /.git/config, /admin, backup filenames), rate-limited to 20 requests per second, and paused if the signed-in pages slow down. |
ran, clean |
| ZAP full scanpayloads | Active scan. Crawls the application, then injects attack payloads into every discovered parameter, header and form field, analysing responses for evidence of a vulnerability. Sent: REAL ATTACK PAYLOADS - SQL injection, cross-site scripting, path traversal, command injection, XXE, SSTI and more, against every crawled parameter. |
ran, clean |
| Niktopayloads | Requests several thousand known-dangerous paths and files, and probes server behaviour for dangerous HTTP methods, outdated software and revealing default content. Sent: Thousands of HTTP requests for known-vulnerable paths, one at a time, at most about ten a second, signed in when the session is a cookie. Denial-of-service checks are explicitly excluded (-Tuning x6). |
skipped Covered by the other configuration and header checks on this target. |
| dalfox (XSS)payloads | Injects cross-site-scripting payloads into query and body parameters, then verifies which ones are reflected and whether they execute in a DOM context. One address at a time, within a time budget. Where the parameters are named to it (a Next.js app), one ordinary request per parameter first checks whether its value comes back in the page at all (outside Next.js’s own escaped data); an address none of whose values come back cannot carry reflected XSS and is counted as tested that way, which the report says. Sent: REAL ATTACK PAYLOADS - XSS probes injected into application parameters. |
ran, clean |
| DOM XSS (browser)payloads | Opens each discovered address in a real headless browser with a payload in place, and watches whether the payload actually runs rather than merely appearing in the page source. Sent: Scripted page loads carrying a harmless marker payload. A finding is raised only when the marker executes in the browser. |
ran, clean |
| sqlmap (SQLi)payloads | Probes each parameter of the addresses the crawler found (or, with none, of a depth-2 crawl) with boolean-based, error-based and time-based SQL payloads to determine whether it is injectable. One address at a time, within a time budget, so the report says exactly which were tested to the end. The scan’s own session cookie is not injected into: that only tests the sign-in library and signs the test login out. Sent: REAL ATTACK PAYLOADS - SQL injection probes at level 2 / risk 1, so no destructive or data-modifying statements are used. |
ran, clean |
| Injection probes (SSRF, RCE, SSTI, LFI)payloads | Fuzzes the parameters the crawler discovered. Reflected classes (server-side template injection, path traversal / local file inclusion) are confirmed by a marker or file-content signature in the response. Blind classes (SSRF, command injection) embed a unique URL pointing at our out-of-band (OAST) server; a callback to that URL proves the server fetched or executed the payload. Sent: REAL ATTACK PAYLOADS - template expressions, /etc/passwd traversal strings, and SSRF / shell-callback payloads pointing at the OAST server - injected into discovered query parameters. Bounded to 25 URLs. |
ran, clean |
| XXE injectionpayloads | Posts XML external-entity payloads to discovered endpoints. One reads file:///etc/passwd in-band; another references the out-of-band (OAST) server so a parser that resolves it produces a callback, confirming blind XXE. Sent: REAL ATTACK PAYLOADS - XML external-entity documents posted to discovered endpoints, bounded to 15 endpoints. |
skipped No XML-accepting endpoint was found. |
| Stored XSSpayloads | Submits a marker that reveals whether output is HTML-escaped (raw angle brackets) but does not execute, through each discovered POST form, then fetches the form page and other discovered pages to see whether the marker is stored and returned unescaped. Sent: POST form submissions carrying a benign marker (so it writes data), then GET requests to look for the marker. No executing payload is planted. |
ran, clean |
| File uploadpayloads | Uploads harmless marker files with dangerous extensions (php, phtml, jsp, aspx, svg, html) through discovered upload forms, then retrieves them to confirm the extension was accepted and the file is served. It never uploads a working web shell. Sent: Multipart uploads of small benign marker files, then GET requests to retrieve them. Bounded to 5 forms. |
skipped No file-upload forms were discovered. |
| NoSQL / prototype pollution / mass assignmentpayloads | NoSQL: replaces a query parameter with an operator form (param[$ne]=) and flags only a clear change from an error/empty baseline to a populated result. Prototype pollution: posts a __proto__ / constructor payload then reads a later response for the polluted marker. Mass assignment: posts a harmless unexpected field and checks whether it is accepted and echoed (never a privileged field). Deserialization: posts a node-serialize callback payload confirmed by an out-of-band interaction. Sent: REAL ATTACK PAYLOADS - operator, __proto__, extra-field and node-serialize payloads - to discovered parameters and endpoints. The mass-assignment probe uses a harmless marker field so no privilege is planted. |
ran, clean |
| LLM prompt injectionpayloads | Sends an assistant endpoint content carrying an instruction that contradicts its own, along with a unique marker, and reports only when the reply contains the marker, which shows the planted instruction was followed rather than the app’s. Sent: A handful of chat messages containing a harmless marker. No action is requested and nothing is stored. |
skipped No assistant or chat endpoint was found or declared. |
| Client-side race conditionspayloads | Fires a tight burst of identical requests at an action meant to happen once, from the browser’s side, and compares how many succeeded against the one that should have. Sent: A short burst of identical requests to a once-only action. Several may be recorded where one was intended. |
ran, clean |
| Client portal boundary | Signs in the project’s client portal login and asks for every staff page the crawler mapped (one of each kind, up to 40) with its session, then asks for every portal page it mapped as that client (up to 20) with no session. Each answer is compared with the same page as its owner sees it: refused or sent elsewhere is a pass; an answer sharing most of the owner’s words is the real page, and a finding. Sent: Read-only GET requests: one per page as the wrong person, and one as the owner to compare. Nothing is written. |
ran, clean |
| Server actions as the wrong personpayloads | Takes the calls the crawler recorded behind forms and buttons (Next.js server actions and API calls) that are on the project’s allow list, and makes each again: as the test login (the control), with no session, as the second test login with the first one’s record ids, and announced as coming from another website. Each call carries its own marker in place of the recorded text, and the page is read back as the test login afterwards: a marker from a wrong caller found there proves that call changed the data. The action’s own result is read from its answer: a “no” from the action is a refusal, and a wrong caller handed exactly the data the test login got back is a finding. Never calls an action whose button reads like filing, sending, deleting, paying or signing out unless the entry says force. Sent: Up to four real calls per allowed action, up to twenty actions, plus page reads. The calls run for real when the application lets them through, so they leave records carrying "sentinel-" markers, which are listed so they can be removed. |
ran, clean |
| AI agent pentesterpayloads | A large language model drives an exploration loop: it fetches a page, reads the response, and chooses its own next request - following links, tampering with ids and parameters, and replaying requests under different role sessions - hunting broken access control (IDOR), information disclosure and business-logic flaws that fixed checks miss. Every request passes through a controller that locks it to the one authorised host and blocks write methods outside active mode. Bounded to ~500 requests and ~15 minutes. Sent: ADAPTIVE, MODEL-CHOSEN REQUESTS to the authorised host only. In active mode these include POST/PUT/PATCH/DELETE, so data may be created, changed or deleted; in read-only mode only GET/HEAD/OPTIONS are sent. |
ran, clean |
| JWT attackspayloads | Decodes the session JWT and checks claim hygiene (algorithm, expiry, sensitive claims, kid/jku/x5u header). Attempts to recover an HS256/384/512 signing secret offline against a weak-secret list; a hit means any token can be forged. In active mode only, it forges a token (alg:none downgrade, or a tampered claim signed with a recovered secret) and checks whether an acceptance oracle (Supabase /auth/v1/user, or a discovered authenticated endpoint) accepts it. Sent: Offline analysis needs no traffic. When a token is fetched, one Supabase sign-in for a test user. In active mode, a few forged tokens are sent to a read-only identity endpoint (never to a write endpoint). |
ran, clean |
| Session management | Signs in the Supabase test user, calls global logout, then re-uses the same access token to see whether it was invalidated. Also measures the entropy of an opaque (non-JWT) session identifier. Sent: One sign-in, one logout and two identity reads for the tenant’s own test account. |
1 finding |
| Login attacks (A07) | Compares the Supabase sign-in and password-reset replies for an address that may have an account against made-up addresses, to see whether they reveal which addresses are registered. In active mode it also sends a short burst of wrong passwords to see whether the API slows down. The Supabase project comes from Setup, or from the app’s own scripts. Sent: A handful of sign-in and reset requests with wrong passwords. It never creates or changes an account. Active mode adds ~6 wrong passwords for a made-up address. |
1 finding |
| Tenant isolation (Supabase RLS) | Authenticates as two separate test users, enumerates the objects each can legitimately see, then attempts to read one user’s objects while authenticated as the other - and again with no session at all. Sent: Authenticated API read requests only. It never writes, updates or deletes any record. |
1 finding |
| Role access-control matrix | Requests every endpoint (from the API spec or a configured list) once as each declared role - anonymous, user, admin, … - and compares who gets an authorised response. Flags administrative endpoints reachable by a lower-privilege role. Sent: One GET per endpoint per role. Never writes. |
skipped No role sessions configured - add two roles to test access control. |
| Business-logic invariants | Runs each operator-declared business rule: sends the request as the named role and checks the response against the expected status / content / JSON-field assertions. A failed assertion is a rule the app does not enforce. Sent: One GET per invariant. Mutating (non-GET) invariants are recorded but not executed in this version. |
skipped No business-logic invariants defined for this target. |
Reported by a tool, then judged not to be an issue for this app, by the AI review or by you. They are not counted in the result above; they are listed so nothing is hidden.
| Tool said | Tool | Why it was set aside |
|---|---|---|
| medium Open redirect in /login?next= | Open redirect | AI review: The redirect is validated against an allow-list server-side; the scanner saw the 302 to the login page only. |
07Recommended next steps
Automated testing covers the technical classes above thoroughly. For a complete assurance programme, pair it with periodic manual review of the following, which sit outside automated scope:
- Automated testing covers the technical classes listed above; it does not replace a manual review of business logic beyond the rules written down in Setup.
- The code scanners did not run because no repository was connected; connect one in Setup to include committed secrets and dependency checks.