spectrawl
spectrawl copied to clipboard
Server hardening request: auth guard + safer CORS defaults for /search, /browse, /act
Thanks for the project — we tested in a local docker sandbox and found security defaults that are risky if exposed beyond localhost.
Observed
src/server.jssets:Access-Control-Allow-Origin: *
- No built-in auth token/API key gate for HTTP endpoints.
Risk
If user accidentally binds publicly, endpoints can be abused (especially /act).
Request
Please add:
- Optional required auth token mode (e.g.
SPECTRAWL_SERVER_TOKEN) - Safer CORS defaults:
- default localhost-only origin policy
- explicit allowlist config for non-local deployments
- Startup warning when binding non-local without auth enabled
Environment
- spectrawl v0.3.20
- tested via localhost docker mapping (
127.0.0.1:43900->3900)