Trust & Security Center
Web Application & API Safeguards
Defense-in-depth protections implemented in Fusion Bot’s backend and static documentation portal.
Implemented Security Controls (Verified in security.js)
| Layer | Control Implemented | Purpose |
|---|---|---|
| Transport & Headers | TLS encryption, Helmet CSP, HSTS, X-Content-Type-Options: nosniff, frame-ancestors: none | Mitigates clickjacking, MIME sniffing, and downgrade attacks. |
| Docs Portal CSP | Zero inline scripts (script-src 'self', style-src 'self', object-src 'none') | Prevents unauthorized script execution on documentation pages. |
| Session Cookies | Random sessionId with HttpOnly; SameSite=Lax & 60-day expiry (instant wipe on logout) | Prevents client JavaScript cookie theft via XSS. |
| Input & Query Safety | NoSQL sanitizer stripping $ operators, dot keys & prototype keys; explicit validators | Prevents MongoDB query injection and prototype pollution. |
| Authorization (Anti-IDOR) | Server-side checkGuildAdminAccess verifying Discord Administrator (0x8) or ManageGuild (0x20) | Blocks unauthorized writes to another guild’s configuration. |
| Bot & Form Abuse Defense | 3-tier IP rate limiting (120/m, 10/15m auth, 15/10m forms) & Cloudflare Turnstile checks | Mitigates credential stuffing and contact/ticket form spam. |
| Webhook Authentication | Constant-time crypto.timingSafeEqual signature check for Patreon webhooks | Rejects forged webhook payloads. |