30 KiB
30 KiB
Security Report — CollabTable
- Project: CollabTable
- Path: /workspace/Personal/Web/Originals/CollabTable
- Analyzed: 2026-10-16
- Commit:
6aec03fon main - Working tree: contains uncommitted changes from the earlier and current medium passes.
- Updated: 2026-10-20 — S-003 now enforces the approved per-list membership model; S-005 applies the shared reauthentication rule and remains open only for other-session revocation. S-002 remains Not reproduced by owner decision.
- Stack: Go 1.26 (net/http, pgx v5) API server with PostgreSQL; identity delegated to a separate AuthGuard service via
shared/backend/auth; SvelteKit 2 / Svelte 5 static dashboard embedded in the Go binary; Android client (Kotlin, Retrofit/OkHttp, Room, SharedPreferences); Docker multi-stage image onscratch; GitHub Actions. - Scope: Read all first-party backend code (
backend/*.go), the Docker and CI configuration, the frontend API client, routes and query layer, the Vite config, the Android API client, preferences, manifest, network security config and app Gradle file, and the shared auth, authclient, authproxy, coreconfig and postgres code that CollabTable calls. Git history was searched for credential-shaped strings and.envfiles. Excluded:node_modules,frontend/.svelte-kit, the Gradle wrapper, generated build output, lock files (read for versions only), and the rest ofshared/. Tracked SQLite files were inspected read-only from a copy, schema and row counts only. Available tests and builds are recorded inQUALITY_REPORT.md; no network audit or live deployment check was made.
Summary
| Severity | Count | Fixed | Not reproduced | Open |
|---|---|---|---|---|
| Critical | 0 | 0 | 0 | 0 |
| High | 0 | 0 | 0 | 0 |
| Medium | 10 | 8 | 1 | 1 |
| Low | 7 | 0 | 0 | 7 |
| Info | 2 | 0 | 0 | 2 |
No critical or high-severity issues were confirmed. Authentication is delegated to AuthGuard and fails closed when it is not configured, and sync tokens are generated with 256 bits of randomness and stored hashed. Data access is now scoped by list membership; legacy lists remain available to all API-token users present during migration, as approved. Other concerns include reflective CORS with credentials, missing rate limits and security headers, and Android token exposure through cleartext traffic or plain device preferences.
Issues
S-001 · Reflective CORS with credentials on every route · Medium · Fixed
- Location:
backend/server.go:274-290(withCORS), in particular:276-281. - Description: The middleware echoes any request
OriginintoAccess-Control-Allow-Originand setsAccess-Control-Allow-Credentials: trueon all responses, including session-protected routes (/web/data,/api/auth/users,/api/auth/token/regenerate). If the browser sends the user's cookies, any origin can read those responses. The preflightAllow-Methodslist also omitsPATCH, whichserver.go:181accepts. - Impact: Exploitability depends on the AuthGuard cookie attributes, which are not in this repository. With
SameSite=Lax, a cross-site page will not receive the cookie, but a same-site origin will (another subdomain of the same site, or a sibling app on a shared cookie domain, which the authclient docs describe as a cross-project SSO option). Such an origin could read/web/dataor callPOST /api/auth/token/regenerateand read the new sync token. Rated Medium here; it would be High if the cookie is scoped to a parent domain. Needs verification against the deployed AuthGuard cookie. - Recommendation: Replace the reflection with an explicit allow-list from configuration (for example
ALLOWED_ORIGINS) and set credentials headers only for those origins. The dashboard is same-origin and needs no CORS headers at all, so the default should be none. KeepVary: Originand addPATCHto the allowed methods if it is needed. - Status: Fixed 2026-10-19 —
withCORSnow reflects only origins listed inALLOWED_ORIGINS(empty by default), sends credentials headers only for them, and allowsPATCHin preflight. Browser clients on other origins lose cross-origin access, which the same-origin dashboard does not need. Files: backend/server.go, backend/server_test.go, backend/README.md, README.md.
S-002 · Login-disabled mode lets anyone obtain a write-capable sync token · Medium · Not reproduced
- Location:
backend/server.go:186-188(POST /api/auth/token/regeneratebehindRequireIfLoginRequired);shared/backend/auth/proxy.go:504-519(CurrentUserreturns the superadmin placeholder whenever login is not required);backend/auth.go:194-210(handleTokenRegeneratemints a token for the placeholder identity). - Description: When login is not required (
AUTH_DISABLED=true, or the login-required override pushed by ProjectConfigurator set to false),RequireIfLoginRequiredlets any caller reach token regeneration without credentials. The endpoint mints a write-capable sync token for identity 0, and the bearer-token check on the sync API then passes for that caller. - Impact: The sync API's token requirement protects nothing in that mode, and any network client can obtain full read, write and delete access. The README describes
AUTH_DISABLEDas "nothing gated", so this matches the documented intent. The override path can be set centrally in a shared deployment, however, and nobody may notice that the token API has become open. - Recommendation: Keep token minting behind a real credential even when login is off (for example, always require a session for token regeneration), or document the consequence prominently and log a warning when the override is set to false.
- Status: Not reproduced 2026-10-20 — The last step of the chain fails. With login off, callers resolve to placeholder identity 0, and
requireAPIToken(backend/auth.go) never accepts identity 0, so a token minted without a session gets 401 on/api/syncand/api/lists.TestTokenMintedWithoutASessionDoesNotOpenTheSyncAPIpins this. Write and delete access through that token is not reachable. Login-off still bypasses the browser-session gate, but/web/datareturns no list rows because identity 0 has no memberships. Devices cannot get a working sync token; accepting identity 0 would open sync and is not part of this decision.
S-003 · No object-level ownership or roles on list, field, item or value data · Medium · Fixed
- Location:
backend/auth.go:129-149(requireAPITokenonly checks that a token exists);backend/server.go:195-219(all data routes);backend/data.go(all handlers);backend/sync.go:61-209;backend/db.go:40-189(no owner or tenant columns);backend/sync.go:198-203andbackend/data.go:549-558(item values upserted byidalone). - Description: Any valid sync token (one per account) and any logged-in account can read, overwrite, soft-delete and move every list, field, item and value. The item-value conflict clause updates only
valueandupdatedat, so a write that names a differentitemIdorfieldIdthan the stored row is silently applied to the stored row. The schema has no owner column, andapi_tokens.user_idis used only for token regeneration. Item values are hard-deleted when their item or list is deleted (sync.go:88,:129,:140,:166), so those deletions cannot be undone by a later sync, even though lists and items are soft-deleted. - Impact: For a collaborative tool this may be intended, in which case every account is effectively an administrator of the data. If it is not intended, it is an authorization gap. Either way, one compromised device token can wipe or rewrite the database, and some of that loss is permanent.
- Recommendation: Confirm the intended model and document it. If the data is shared, make item-value upserts reject writes whose
itemidorfieldiddo not match the stored row. If per-list access is needed, add a membership table and check it in every handler. - Status: Fixed 2026-10-20 —
list_membershipsnow scopes REST, sync, dashboard and notification reads; cross-list item/field IDs are rejected. New lists belong only to their creator. Per the owner decision, migration grants every current API-token user access to each legacy list because prior ownership cannot be reconstructed. Login-disabled identity 0 has no list access. Item values still hard-delete with their parent, as before. Files:backend/db.go,backend/ownership.go,backend/data.go,backend/sync.go,backend/web.go.
S-004 · Managed-user routes require a login only, leaving the role check to AuthGuard · Medium · Fixed
- Location:
backend/server.go:178-182(list, create, update and delete users, behindRequireIfLoginRequired);shared/backend/auth/proxy.go:897-1013(handlers forward the caller's session to AuthGuard without a local role check);shared/backend/auth/proxy.go:618(RequireUserManagerexists but CollabTable does not use it). - Description: The handlers document that AuthGuard enforces authorization, which holds only if AuthGuard rejects non-admin sessions. CollabTable does not check the role before proxying. If AuthGuard does not reject it,
GET /api/auth/usersreturns every account's username, email and role to any logged-in account. - Impact: No defense in depth. A bug or policy change in AuthGuard would expose administrative functions here. Needs verification against the deployed AuthGuard version.
- Recommendation: Gate these routes with
RequireUserManager(orRequireAdminIfLoginRequired), which the shared package already provides, so the policy is visible in this repository. - Status: Fixed 2026-10-19 — Managed-user routes now pass the shared
RequireUserManagergate, so the role check happens in this repository as well as in AuthGuard; accounts without user-management rights get 403 locally. Files: backend/server.go, backend/routes_test.go.
S-005 · Password change does not require the current password, and existing sessions stay valid · Medium · Open
- Location:
shared/backend/auth/proxy.go:664-705(UpdateMeaccepts onlyemail,usernameandpassword);backend/auth.go:39-43(documented behavior: a credentials change "simply returns the updated account and leaves the current session valid"). - Description: Anyone holding a session cookie can change the account password without knowing the current one. Sessions on other devices also remain valid, and there is no re-authentication step.
- Impact: A stolen or unattended session can lock the owner out. The usual defenses (re-authentication, and revoking other sessions on password change) are absent.
- Recommendation: Require
currentPassword(and the TOTP code when enabled) onPOST /api/auth/credentialswhenever the password changes, and have AuthGuard revoke other sessions on a password change. - Status: Open 2026-10-20 — Partly fixed: the mirrored shared
UpdateMerequires the current password and TOTP proof when enabled, and the dashboard forwards both values. Still open: revoking other sessions after a password change; no owner decision was made for that behavior. Files:frontend/src/lib/api.js,frontend/src/lib/features/layout/AppShell.svelte,shared/backend/auth/proxy.go.
S-006 · No rate limiting or request budgets on login, token use, writes or body size · Medium · Fixed
- Location:
shared/backend/auth/proxy.go:1093-1142(Loginforwards every attempt to AuthGuard with no local throttling);backend/auth.go:129-149(sync-token check, no throttling);backend/server.go:188(token regeneration);backend/server.go:253-259(up to 50 MB per request, see P-007). - Description: A search of CollabTable and the shared auth packages finds no rate limiter, lockout or request throttle. Brute-force protection for passwords and TOTP codes depends entirely on AuthGuard. Sync tokens carry 256 bits of entropy, so guessing them is not a practical concern; the issue is request volume and availability.
- Impact: Credential stuffing against the login proxy, load from unthrottled token checks, and memory exhaustion from large bodies.
- Recommendation: Add per-IP and per-account limits on
/api/auth/login,/api/auth/totp/*and/api/auth/setup, either in-process or at the proxy. Confirm AuthGuard's own limits. Enforce body size per route (see P-007). - Status: Fixed 2026-10-19 — In-process budgets (owner decision 5) on setup, login, the TOTP routes and token regeneration: 30 requests per minute per client IP, and 10 failed logins per account identifier per 15 minutes, answered with 429 and
Retry-After. The client IP is read fromX-Forwarded-Foronly when the socket peer is in the newTRUSTED_PROXIESlist, and is the socket address otherwise. Not throttled per request: the sync API and writes, because the bearer token is 256 bits and devices sync often; body size and concurrent syncs bound their cost (P-007). Still to confirm: AuthGuard's own login limits on the deployed instance. Verified by Go unit and route tests only, not against a running instance. Files: backend/clientip.go, backend/ratelimit.go, backend/server.go, backend/clientip_test.go, backend/ratelimit_test.go, backend/.env.example, backend/README.md, README.md.
S-007 · No security headers on the dashboard or API · Medium · Fixed
- Location:
backend/server.go:118-125(no header middleware);backend/server.go:292-316(spaFileServerwritesindex.htmlwith onlyContent-Type);backend/web.go:74-76(cache headers only). - Description: Responses carry no
Content-Security-Policy, noX-Frame-Optionsorframe-ancestors, noX-Content-Type-Optionsand noReferrer-Policy. The app can be framed, which allows clickjacking of user-management and token-regeneration actions. Without a CSP, an injected script would have no restrictions. No unsafe HTML rendering was found in first-party code, which limits the immediate risk. - Impact: Clickjacking of logged-in actions and a weaker defense against future XSS. HSTS belongs at the TLS terminator and is not set here.
- Recommendation: Add middleware that sets
X-Frame-Options: DENY(orframe-ancestors 'none'),X-Content-Type-Options: nosniff,Referrer-Policy: strict-origin-when-cross-origin, and a CSP such asdefault-src 'self'with hashes or nonces for SvelteKit's inline bootstrap script. Set HSTS at the proxy. - Status: Fixed 2026-10-19 — The dashboard page (
index.htmland the deep-link fallback) now sends a full Content-Security-Policy (backend/csp.go, set inspaFileServer):default-src 'self',script-src 'self'plus the SHA-256 of the page's inline bootstrap script (read from the embeddedindex.htmlat request time, so it follows each build),style-src 'self' 'unsafe-inline'(the page shell uses a style attribute),connect-src 'self',object-src 'none',base-uri,form-actionandframe-ancestors 'none'. Other responses keepframe-ancestors 'none'. HSTS stays with the TLS proxy, as recommended, andbackend/README.mdsays so. Checked on a real build: the Go hash equals an independent computation, and the bundle has no eval, workers, external URLs or CSSurl(). Not loaded in a browser (none available here), so open the dashboard once after deploying.
S-008 · Android app logs full HTTP traffic, including the bearer token, in every build · Medium · Fixed
- Location:
CollabTableAndroid/app/src/main/java/com/collabtable/app/data/api/ApiClient.kt:20-23(HttpLoggingInterceptoratLevel.BODY), and:55-64(the interceptor is added to the client unconditionally;authInterceptorat:58sets theAuthorizationheader first). - Description: The logging interceptor is not gated on the debug build type, and it does not redact headers. Its output includes the
Authorization: Bearer <token>header and the full request and response bodies, which carry all list and item data, in release builds. - Impact: The long-lived sync token and user data end up in logcat and in any log capture or bug report. Exploiting this requires access to device logs (ADB, a debugging tool, or a bug report), not a remote attack.
- Recommendation: Use
Level.NONEfor release builds (for exampleif (BuildConfig.DEBUG)), callredactHeader("Authorization"), and do not log bodies in production. - Status: Fixed 2026-10-19 — HTTP logging now uses
Level.NONEunlessBuildConfig.DEBUG, and theAuthorizationheader is redacted in every build;buildConfigis enabled because AGP 8.8 does not generateBuildConfigby default. The Kotlin compile could not run in this environment (the JVM hit the process limit), so it is unverified. Files: CollabTableAndroid/app/src/main/java/com/collabtable/app/data/api/ApiClient.kt, CollabTableAndroid/app/build.gradle.
S-009 · Cleartext HTTP is allowed for all domains and is the default server URL · Medium · Fixed
- Location:
CollabTableAndroid/app/src/main/res/xml/network_security_config.xml:3-4(cleartextTrafficPermitted="true"inbase-config);CollabTableAndroid/app/src/main/java/com/collabtable/app/data/preferences/PreferencesManager.kt:298(defaulthttp://10.0.2.2:8080/api/);CollabTableAndroid/app/src/main/java/com/collabtable/app/data/api/ApiClient.kt:25-44(the bearer token is attached to every request). - Description: The release app accepts
http://server URLs for any host, and the bearer token is sent with every request. Traffic is unencrypted and can be read or altered on the network path. - Impact: Token and data exposure on untrusted networks whenever an operator configures an HTTP URL. Cleartext is needed only for the emulator default.
- Recommendation: Keep cleartext only for debug builds (a debug resource overlay) or for
10.0.2.2andlocalhost. Require HTTPS for remote hosts and rejecthttp://in the settings UI otherwise. - Status: Fixed 2026-10-19 — Handled by owner decision 11 (LAN HTTP allowed, with a warning). Cleartext stays permitted, so the network security config and the default emulator URL are unchanged.
ApiClientlogs a warning whenever the server URL ishttp://. The backend logs a warning at startup while TLS is off.PRODUCTION=truerefuses plain HTTP requests unless they arrive over TLS or through aTRUSTED_PROXIESproxy that sendsX-Forwarded-Proto: https(/healthstays open). The Android app has no production profile, so release builds keep cleartext. The settings screen does not rejecthttp://for remote hosts, which the decision replaces. Files: CollabTableAndroid/app/src/main/java/com/collabtable/app/data/api/ApiClient.kt, backend/server.go, backend/.env.example, backend/README.md, README.md. The Kotlin change is not compiled: the Android build cannot run on this Alpine (musl) host, because the SDK's aapt2 needs glibc.
S-010 · Long-lived sync token stored in plain SharedPreferences, with app backup enabled · Medium · Fixed
- Location:
CollabTableAndroid/app/src/main/java/com/collabtable/app/data/preferences/PreferencesManager.kt:73-80and:283(token written tocollab_table_prefswithMODE_PRIVATE, unencrypted);CollabTableAndroid/app/src/main/AndroidManifest.xml:11(android:allowBackup="true"). - Description: The API token is written to ordinary SharedPreferences. With
allowBackup="true"the file is included in device backups, and on a rooted device or with ADB backup access it can be read directly. - Impact: The token grants full sync access (see S-003) and can be recovered from a backup or a compromised device.
- Recommendation: Store the token with
EncryptedSharedPreferencesor the Android Keystore, exclude it from backups withdataExtractionRulesandfullBackupContent, or setallowBackup="false". - Status: Fixed 2026-10-19 —
android:allowBackupis nowfalse, so the sync token is kept out of device backups and transfers. Users must re-enter the token on a new device, and the token remains plain text on the device, which a rooted device can still read. Files: CollabTableAndroid/app/src/main/AndroidManifest.xml.
S-011 · Sync token has no expiry, scope or per-device identity · Low
- Location:
backend/db.go:181-188(api_tokenshas no expiry column);backend/auth.go:159-170(32 random bytes, stored as an unsalted SHA-256 hash);backend/auth.go:194-210(regeneration replaces the account's single token). - Description: The token is well built: 256 bits from
crypto/rand, stored only as a hash, and checked through an indexed lookup. It never expires, carries no scope, and cannot be revoked per device. Regenerating invalidates every device at once. - Impact: A lost or retired device keeps write access until the operator regenerates the token, and regenerating also breaks every other device.
- Recommendation: Issue per-device tokens with
last_usedandexpires_atcolumns and a revoke action, or at least document a rotation procedure.
S-012 · Shared-secret comparisons are not constant-time · Low
- Location:
shared/backend/coreconfig/coreconfig.go:182(r.Header.Get("X-Internal-Auth") != secret);shared/backend/auth/proxy.go:819(same pattern inSetLoginRequiredInternal). - Description: A
!=comparison on strings can exit early. Other helpers in the workspace usesubtle.ConstantTimeCompare(shared/backend/auth/reset.go:73,shared/backend/auth/totp.go:82), so these two are inconsistent. - Impact: A theoretical timing side channel on the internal
SECRET. Network jitter makes practical exploitation unlikely. - Recommendation: Compare with
subtle.ConstantTimeCompareon byte slices, after confirming that the expected secret is non-empty.
S-013 · COOKIE_SECURE does not govern the session cookie; its attributes come from AuthGuard · Low
- Location:
shared/backend/authclient/client.go:411-417(ForwardCookiesreplays AuthGuard'sSet-Cookieunchanged);shared/backend/auth/proxy.go:1140(login forwards those cookies);shared/backend/authproxy/authproxy.go:72-83(only the logout-clearing cookies use thesecureflag);README.md:55. - Description: The README says
COOKIE_SECURE=truemarks cookiesSecure. In practice that flag affects only the cookies CollabTable clears on logout. The live session cookie'sSecure,SameSiteandDomainattributes come from AuthGuard. Needs verification against the AuthGuard configuration. - Impact: An operator may believe the session cookie is
Securewhen it is not, and the cookie's scope (see S-001) is not visible from this repository. - Recommendation: Document that AuthGuard controls these attributes, and verify them in a deployed environment (
Secure,HttpOnly,SameSite,Domain).
S-014 · No length or format limits on input, and item-value upserts do not check row ownership · Low
- Location:
backend/models.go:50-94(all IDs and free-text fields are unconstrained strings);backend/data.go:223-263(list creation checks only for an empty ID and name);backend/sync.go:96-98(fieldTypeaccepts any string);backend/sync.go:198-203andbackend/data.go:549-558(the upsert conflict clause ignoresitemidandfieldid);backend/data.go:206-214(theX-Device-Idheader is stored verbatim in notifications). - Description: Client-chosen primary keys and free-text fields have no length or character limits, and
fieldTypeis not checked against the types the UI understands. The item-value conflict clause (see S-003) silently ignores a mismatcheditemIdorfieldId. The device identifier is stored without limits. - Impact: Oversized rows and storage growth, inconsistent typing, and a data-integrity problem that is as much a correctness issue as a security one.
- Recommendation: Bound string lengths (IDs to a sensible maximum such as 64 characters, names to a few hundred, values to a configured limit). Validate
fieldTypeagainst the known set. Reject item-value writes whoseitemIdorfieldIddo not match the stored row, or add that check to the conflict clause.
S-015 · Public first-run setup can be claimed by whoever reaches the server first · Low
- Location:
backend/server.go:173(POST /api/auth/setupis public);shared/backend/auth/proxy.go:1014-1091(Signupregisters the first AuthGuard account while setup is unclaimed). - Description: Until an operator completes setup, anyone who can reach the URL can create the first account, which in AuthGuard is the superadmin. The claim flag prevents a second setup, but not a first-visitor takeover.
- Impact: Matters only for a deployment reachable from untrusted networks before setup is completed. It is a common pattern for setup flows, but it should be stated.
- Recommendation: Complete setup before exposing the service, or protect
/api/auth/setupwith a one-time setup token printed at startup or supplied through the environment.
S-016 · CI and supply-chain hygiene · Low
- Location:
.github/workflows/docker.yml:52(echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login ..., with the secret interpolated into the shell script);.github/workflows/docker.yml:34-65,.github/workflows/lint.yml:35-39and.github/workflows/tests.yml:35-62(third-party actions pinned to major tags, not commit SHAs);.github/workflows/tests.yml:70(web-ui installed with--no-package-lock). - Description: The Docker Hub token is interpolated into a shell command rather than passed through an environment variable. Actions are referenced by mutable tags.
- Impact: Lower risk on GitHub-hosted runners, but a compromised action tag would run with access to the secret on pushes to
main. - Recommendation: Pass the secret through an
env:entry and pipe it todocker login --password-stdinfrom that variable. Pin actions to full commit SHAs, which Dependabot can maintain. Use a lock file for web-ui.
S-017 · Dependency versions need an audit, which was not possible offline · Low
- Location:
backend/go.mod(github.com/jackc/pgx/v5 v5.10.0,golang.org/x/crypto v0.54.0,github.com/joho/godotenv v1.5.1);frontend/package-lock.json(svelte 5.56.8,@sveltejs/kit 2.70.2,vite 8.2.0,@tanstack/svelte-query 6.1.38,tailwindcss 4.3.3);frontend/package.json(21"latest"specifiers, see Q-011 in the Quality report);CollabTableAndroid/app/build.gradle(okhttp3:logging-interceptor 4.12.0,retrofit2 2.9.0,kotlinx-coroutines-android 1.7.3). - Description: Versions were read from manifests and locks only. No vulnerability database was queried, because that requires network access. Several Android libraries are older releases, for example Retrofit 2.9.0 and kotlinx-coroutines 1.7.3.
- Impact: Known-vulnerable dependencies may be present. This review can neither confirm nor rule them out.
- Recommendation: Run
govulncheck ./...inbackend,npm audit(including build tooling) infrontend, and a Gradle dependency vulnerability scan (for example OWASP Dependency-Check) for the Android app. Upgrade whatever is flagged.
S-018 · Committed-secret scan found no live credentials · Info
- Location: Tracked files (
git ls-files); full history ofbackend/.env.example(commits07e25a3and9a6ec94for theSECRETandDATABASE_URLlines);git log -Gover all refs for credential-shaped strings;docker/Dockerfile;README.md. - Description: No
.env, key or certificate files are tracked. The only env file isbackend/.env.example, which holds placeholders. The historicalSECRETvalue at07e25a3was the placeholder text, and the historicalDATABASE_URLat9a6ec94was empty. The history search matched only test fixtures inshared/and documentation placeholders, and those hits were reviewed and redacted. The tracked SQLite filebackend/data/collabtable.dbhas empty tables and no credentials (see Q-014 in the Quality report). - Impact: None found.
- Recommendation: Keep
.envignored (it is, inbackend/.gitignore), and consider a pre-commit secret scanner.
S-019 · Controls verified as sound · Info
- Location:
backend/data.go:107-113,:145-149,:178-182(dynamic SQL only adds numbered placeholders);backend/db.goandbackend/data.go(all values bound as parameters);backend/server.go:292-316(static files served only from the embedded build, so no path traversal);frontend/src(no{@html},innerHTMLoreval; Svelte escapes text);backend/auth.go:159-170and:194-210(token generation and hashing);shared/backend/coreconfig/coreconfig.go:182andshared/backend/auth/proxy.go:817-820(internal endpoints refuse requests whenSECRETis empty);shared/backend/auth/proxy.go:359-361and:838-841(auth fails closed whenSECRETor the AuthGuard URL is missing);shared/backend/authclient/client.go:116(5-second timeout on outbound calls);docker/Dockerfile:41-47(non-root user,scratchbase, no build tools in the final image); noInsecureSkipVerifyor similar TLS bypass in CollabTable's own code or in the packages it imports. - Impact: Positive findings.
- Recommendation: None.
Notes
- Source review and available checks are recorded in
QUALITY_REPORT.mdunder Verification. No live AuthGuard instance or browser session was available, so delegated auth behavior was not exercised end to end. - AuthGuard, the identity service, is outside this repository. S-001 (exploitability), S-004, S-005, S-006 and S-013 depend on how it behaves and should be verified against a running instance.
- Android findings come from source, manifest and Gradle review. The sync-page JVM test source was added, but could not be compiled or run here because Java and Gradle are unavailable.
shared/was reviewed selectively.shared/backend/syncsocket/syncsocket.go:269setsInsecureSkipVerify = true(which disables WebSocket origin checks in the library) when the allowed origin is*. CollabTable does not import this package, so it is not counted here, but its owners should review it.shared/.githooks/post-commitrunsshared/scripts/sync-consumers.ps1 -Commiton commit once the hook path is configured (seeinstall-sync-hook.ps1).-Pushis opt-in (sync-consumers.ps1:11-12and:370). This is a developer-workflow concern rather than a runtime one.