Security
Sign-in, payments, what the server trusts, cross-site protections, privacy, deletion, the 22 Nov 2026 audit and known limits.
How TagBalls keeps accounts, payments and games safe, and what we have checked.
Signing in and sessions
- Sessions. Signing in gives your browser a random 256-bit token. We store only a hash of it. The cookie is HttpOnly (page scripts can't read it), SameSite=Lax, Secure on https, and lasts 180 days in your browser.
- Passwords are stored as PBKDF2-SHA256 hashes (100,000 rounds), compared in constant time.
- Google sign-in. We accept only Google's signed ID tokens for our own app, and check who issued them and that they haven't expired. Linking a Google account that already belongs to another account is refused.
- The desktop app signs in through your browser. The app shows a 6-character code and you type it on the sign-in page. The browser page is never sent the code, so a link alone can't hand anyone your account. The code works once, for 10 minutes, and 5 wrong tries end it. The page says when the sign-in was asked, whether it came from your network or another one, and the country when it is known. From another network it shows a warning, and you tick a box before you can continue. Tries are limited per code and per signed-in account, and starts and polls are limited too.
Payments
- Card details never reach us. Card payments run on Stripe's own page. We see the amount, the product and a payment reference, never the card.
- The webhook that tells us a payment happened is checked before anything is credited: Stripe's signature, a 5 minute window against replays, and one credit per payment even if the message arrives twice. Messages for other products on the same Stripe account are ignored.
- Prices come from the server. The amount and currency paid must equal our own price for that pack or plan; a price sent by the browser is never trusted. A Plus period is capped at the plan length.
- Refunds and chargebacks. The trading page has the rules (Refunds and disputes): a refund other than a goodwill one takes back the payment's TagCoins or gems in proportion, and a dispute also pauses trading while it is open. People you traded with keep what they got.
- Gems bought in the last 30 days can't pay for a gift. Trades and the market hold recently bought gems for 30 days, so a payment that is later reversed can be taken back. Gifts follow the same hold: item gifts, fun gifts and the monthly gems of Plus.
- Deleting an account cancels Plus first. Plus is set to end at the date already paid for, so nothing more is charged, and if Stripe can't be reached the account is not deleted. While deletion is pending, store checkouts are refused, and Plus is cancelled again before the account goes. Keeping the account turns back on exactly the subscriptions the deletion set to end, and says whether Plus runs on.
What the game server trusts
- The room plays the game. It decides what happened from your inputs; the page only draws it and guesses ahead.
- Joining a game needs a signed ticket from the site: signed, good for 60 seconds, used once, tied to your network. Staff and moderator powers in a room come from that ticket, never from a message you send.
- Vote kick counts one vote per account, or per network for guests.
Cross-site protections
- Origin check. A request that changes something (post, edit, delete, buy) and carries your session is refused unless it comes from the site the request went to or one of TagBalls' own names. Forum writes and the game and relay sockets get the same check. Messages from Stripe and our email providers, which carry no session, are exempt.
- No framing. Every answer says no other site may put it in a frame, so a page can't be laid over the store or a trade to trick a click. Staff's email preview is the one exception, and only our own pages may frame it.
- Security headers: nosniff, a strict referrer policy and HSTS for one year on https.
- Content policy. A policy for the page that limits where scripts can load from is sent in report-only mode: browsers note what it would block but block nothing. It is not enforced yet (see Known limits).
- No cross-site data. We send no CORS headers, so other sites can't read our answers.
Text you write
- Chat, posts, names and bios are drawn as text, never as HTML, so nothing in them runs. Links in posts open only if they are http, https or a site path.
- Database queries are parameterised.
- Our server fetches only from fixed addresses, never from a link you give it.
Uploads and imports
- Map pictures: webp, png or jpeg, checked by their contents (not their name), at most 8 per map and 2 MB each, served so a browser can't run them.
- Forum pictures: webp or jpeg, up to 300 KB each, 4 a post and 20 a day, for accounts at least a day old.
- Clips have a size cap. How texture packs and map files are read on import has not been audited yet (see Known limits).
Rate limits
Limits exist where abuse would cost something: sign-in codes, desktop polling, forum pictures, email confirmation links (one a minute, three a day), gifts from new accounts and chat. We don't list every number, and they change.
Privacy
- Under 13. The age answer is enforced on the server. Under-13 accounts can't use typed chat, messages, the wall, bios, comments, forum posts, trades, the market, bot keys, email or purchases, and their profiles are hidden from everyone but themselves and staff.
- Skipping the age question. If you skip it you get the limits of a 13 or older account. The owner decided on 22 Nov 2026 to keep it this way.
- What others see is what your profile and settings show; the privacy page and Account say more. Staff keep the networks an account was seen on, for fraud checks.
- Activity by day. A profile shows games and time played by day for the last 30 days, and per period. Show my activity off hides when you played from everyone else: no periods or bars; no dates, times, lengths or game numbers in History, Recent matches, ranked results or record times; the rating graph goes by game number. Their totals and lists stop at the start of the current day (UTC), so a game you play today shows to them tomorrow, undated. It can't hide what is public by design: your level, rating and board places move when you play, the day and week boards list who played most, and a game's own page shows everyone in it and when. Guests may see the old view up to 30 seconds after you turn it off. A block does the same for the blocked player while signed in; signed out or on another account they see what anyone sees. Under-13 profiles show none of it to others. Download my data has your play days; deleting your account removes them.
- Download my data gives a JSON file of your rows.
Deleting your account
- Delete account starts a 7-day undo. Sign in during it and choose Keep my account.
- After 7 days everything that held the account is deleted or made anonymous, and the name is held 180 days so nobody can pass as you.
- Ranked ratings, seasons and match rows are deleted too. On a finished season's board your place stays as Deleted player, so nobody else moves.
- Payment, refund, trade and economy records stay (accounting, disputes and fraud checks) without your profile attached.
Audits
22 Nov 2026: before launch
A read-only audit of the site's server code, then fixes, then an independent review that tried to break the fixes. It found 0 critical, 0 high, 4 medium, 5 low and 1 note. Each fix has a test that fails without it.
- Medium: a sign-in link could hand your session to whoever made it. The desktop code is now typed from the app, never shown to the browser.
- Medium: deleting an account left Plus billing. Deletion now cancels Plus first.
- Medium: no framing protection or security headers. Added everywhere, with the content policy in report-only mode.
- Medium: gem gifts skipped the 30-day hold that trades and the market have. Gifts now follow it.
- Low: writes relied on SameSite alone. An origin check now refuses writes from other sites.
- Low: free leaves per day followed a time zone you could change. They are now counted over the last 24 hours, and each comes back 24 hours after you use it.
- Low: a deleted account's number could be reused. Numbers were already never reused on the live code; the audit had read an older file. A test now guards it.
- Low: sessions never expire on the server. Open, see Known limits.
- Low: skipping the age question gives adult limits. Kept by decision, see Privacy.
- Note: the code has no single switch that turns ranked rules off; they run by game state.
The independent reviewer broke eight of the first fixes. Each is fixed with a test:
- A second deletion within a day could leave Plus billing, because the repeated request was treated as already done.
- A subscription bought during the 7-day undo window was not cancelled at the end.
- Undoing a deletion left Plus set to end without saying so. Undo now turns back on what the deletion set to end, and says so.
- Two paths around the gem gift hold: gifting fun items, and the monthly gems of Plus.
- Forum writes had no origin check.
- Game and relay sockets had no origin check.
- The desktop page still let a fooled player continue with no warning. It now warns when the request came from another network.
What held under the review: one-use desktop codes and their try limit, gifts paid in one atomic step, other products' subscriptions on the same Stripe account (a deletion never touches them), the origin check against look-alike origins, and the return addresses sent to Stripe.
Known limits
- Sessions don't expire on the server and there is no Sign out everywhere yet. Your browser drops the cookie after 180 days, but a copied session keeps working until that browser signs out. A fix is proposed, not built.
- The content policy is report-only. Enforcing it needs more work on the page's own scripts first.
- The hold is 30 days. Card disputes can come later; after day 30 gems move freely.
- Not yet audited: the Rust room's full message list, every staff page one by one, the forum's other routes, groups, teams, cups, clips and replay sharing, texture packs and map file imports, the map editor's shared editing, and the season pass and heirloom flows start to finish.
Reporting a problem
Email contact@tagballs.com. To report a player or a message, use Report in Messages.