Email teamplushrobotics@gmail.com with:
- a description of the issue and where you found it,
- steps to reproduce (a proof of concept if you have one), and
- the impact you think it has.
Please give us a reasonable window to investigate and fix the issue before disclosing it publicly. We do not run a paid bug-bounty program, but we are grateful for responsible reports and will credit you if you would like.
This site is a public marketing website plus one private area, /admin, for
team leads. The newsletter form posts to a same-origin server function
(CSRF-checked, rate-limited, zod-validated) that forwards the address to a
Google Form; "join the team" is an external Google Form link.
/admin holds the team's inventory, orders, expenses, grants and sponsorships,
and membership fees (member names, payment status and optional contact emails).
None of that data is in this repository: it lives in the project's Upstash
Redis store and is only sent to a signed-in browser.
- Personal accounts with roles, checked on the server for every request:
owner (everything, including accounts), editor (add / edit / delete
records), viewer (read only). Member contact emails are withheld from
viewers' server replies, not just hidden on the page. Passwords are PBKDF2-
SHA256 hashes (210,000 rounds, per-password salt); new people get a one-time
password and must choose their own at first sign-in. The built-in
ownersign-in usesADMIN_PASSWORDso the team can't lock itself out. - Sign-in is limited to 10 attempts per IP and 50 per username per 15 minutes, counted in Redis; unknown usernames take the same time and get the same message as wrong passwords.
- Sessions are an HMAC-signed
__Host-cookie (HttpOnly, Secure, SameSite=Strict, 12 h) whose random id must also be live in Redis, so signing out, resetting a password, or turning an account off ends sessions at once; an owner's "Sign out everyone" ends all of them. RotatingADMIN_PASSWORDorADMIN_SESSION_SECRETalso signs everyone out. - Every change, sign-in and account action is recorded with the person's name in an activity log (last 1,000 entries), written in the same atomic step as the change itself; rows also carry who added and last edited them.
- Every write is schema-validated (zod; unknown fields dropped, sizes capped)
and saved with an atomic compare-and-set; the last 50 versions are kept as
backups under
plush:admin:v1:history. - Admin responses are
Cache-Control: no-storeandnoindex. - "Import an order" (Inventory tab) reads CSV / PDF files in the browser with pdf.js — files are never uploaded. Only the rows a person reviews and confirms are sent, through the same validated, editor-only import.
See also /.well-known/security.txt and the
operational hardening checklist in
docs/security-operations.md.
- Nonce-based Content-Security-Policy on every HTML document
(
script-src 'self' 'nonce-…' 'strict-dynamic'), built per request insrc/lib/security-headers.tsand applied insrc/server.ts. - HSTS,
X-Content-Type-Options: nosniff,Referrer-Policy,Permissions-Policy, COOP, CORP,X-Frame-Optionson documents, and the same transport headers on static assets / the sponsorship PDF via NitrorouteRulesinvite.config.ts. - The page body is first-party HTML compiled into the bundle (no runtime fetch,
no user-supplied markup), so it is not sanitised at runtime; every
target="_blank"link in it carriesrel="noopener noreferrer". - No inline event handlers or inline
<script>in shipped HTML, so the CSP needs no'unsafe-inline'for scripts. - Dependencies are watched by Dependabot
(
.github/dependabot.yml) and every push / PR runsnpm audit(.github/workflows/security.yml). - Secrets live only in Vercel environment variables;
.env*is git-ignored.