You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
security: harden API endpoints against injection, open redirect, and abuse
- Fix shell injection in install scripts via base64 encoding of custom_script
and sanitization of username/slug before shell interpolation
- Fix open redirect in OAuth login and callback (validate return_to at both
entry and redirect points)
- Add input validation for custom_script (max 10k, no null bytes) and
dotfiles_repo (HTTPS-only, allowlisted hosts)
- Add in-memory sliding window rate limiting across all API endpoints
- Add security headers (CSP, HSTS, X-Frame-Options, nosniff) to all responses
including early-return script/redirect responses
- Use crypto.getRandomValues() for CLI device code generation
- Add payload size validation (100KB max) for snapshot uploads
- Genericize error messages to prevent information leakage
0 commit comments