CWE-646 Reliance on File Name or Extension of Uploaded Files
Trusting a filename or extension to decide how an uploaded file is handled lets attackers disguise code as an image. Decide by content on the server.
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.
Trusting a filename or extension to decide how an uploaded file is handled lets attackers disguise code as an image. Decide by content on the server.
Lockout stops password guessing, but a trigger that is too easy lets attackers lock real users out on purpose. Tune it so it defends without becoming a weapon.
Reflect user input into an HTTP response header without neutralizing it and clients that read raw headers can run attacker script. Encode output, in headers too.
Build an XPath query from user input and an attacker can rewrite its logic, bypass logins and read restricted XML. Parameterize the query and validate input.
Roles, prices and flags stored in cookies, hidden fields or environment variables can be edited by the user. Keep state on the server or sign it.
Let users pick names for files or resources and a crafted name can run script in a browser or exploit a parser on the server. Control names yourself.
A weak reset flow undoes a strong login. Common failures, real WordPress plugin and token reuse cases, and how to harden password recovery.
If your app opens a file that turns out to be a .lnk shortcut, it may read or write something the user was never allowed to reach. Here is how to think about CWE-64.
Change an ID in a URL and read someone else's record. How CWE-639 works, how to test for it and how to enforce ownership on every lookup.
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.