CWE-638 Not Using Complete Mediation: Check Every Access
If access is checked once and cached, revoked users keep their rights. Mediate every access to a protected resource through one place.
Deep dives, practical guides, and incident analyses from engineers who build Safeguard. No fluff, no vendor FUD — just what you need to ship secure software.
If access is checked once and cached, revoked users keep their rights. Mediate every access to a protected resource through one place.
Security mechanisms that are more complicated than they need to be get misunderstood, misconfigured and bypassed. Economy of mechanism explained with real cases.
When a security check errors out and the system falls back to the weakest option, attackers only need to cause the error. Design for fail-safe, not fail-functional.
Wrong argument order, count, type or value turns a correct function into an insecure one. Usually obvious, unless it sits on a rarely tested path.
When users influence the name of a variable or function at runtime, they can read, write or call things you never meant to expose. Allowlist names or avoid the feature.
A null byte ends a string in C but not in PHP or Perl. Attackers use that gap to cut off file extensions and slip past regex checks.
A regex that matches a substring instead of the whole value lets bad input through. See the common mistakes, a real exploited case and how to fix them.
A regex that can execute code, or lets a user switch execution on, turns a text match into remote code execution. Quote user input before it enters a pattern.
Marking a restricted ActiveX control safe for scripting lets any web page drive it. Do not set the flag, and set the kill bit on controls you ship.
Weekly insights on software supply chain security, delivered to your inbox.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.