NeXuS implements web application firewall protection at both the edge (Cloudflare) and application level.
Cloudflare provides automatic protection against:
nexus-waf)The WAF service runs on port 7003 and provides:
The Auth Service implements per-IP rate limiting:
20 requests per 15 minutes on /auth/* endpoints
This prevents credential stuffing and brute-force login attacks.
| Endpoint | Window | Max Requests | Response |
|---|---|---|---|
/auth/* |
15 minutes | 20 per IP | 429 Too Many Requests |
When the limit is exceeded:
{
"error": "Too many attempts, try again later"
}
All services enforce CORS with strict origin policies:
cors({
origin: ['https://nexus.sebhosting.com', 'http://localhost:3000'],
credentials: true,
})
The MCP server validates container names to prevent command injection:
function safeContainerName(name: string): string {
if (!/^[a-zA-Z0-9_-]+$/.test(name))
throw new Error(`Invalid container name: ${name}`)
return name
}
All Docker commands use execSync with validated inputs and a 15-second timeout.