SiteShadow
Back to vulnerability library

C01 Insecure Defaults

What this means

SiteShadow flagged a configuration or "temporary" setting that weakens security (often added for convenience during development) and can accidentally ship to production.

Why it matters

Safer examples

1) Make production "secure by default"

DEBUG = False
ALLOW_INSECURE = False

2) Fail closed in config

const allowInsecure = process.env.ALLOW_INSECURE === "true";
if (allowInsecure && process.env.NODE_ENV === "production") {
  throw new Error("ALLOW_INSECURE cannot be enabled in production");
}

3) Tighten common foot-guns

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage