Secure File Upload Handling
A defense-in-depth checklist for handling user-uploaded files safely, covering validation, storage, serving, and the mistakes that lead to real compromises.
Category
14 articles
A defense-in-depth checklist for handling user-uploaded files safely, covering validation, storage, serving, and the mistakes that lead to real compromises.
How lockfiles, dependency audits, and software bills of materials work together to manage the risk of running someone else's code in production.
Why server-side request forgery became a top-tier risk in the cloud metadata era, and the layered defenses that actually contain it.
A practical walkthrough of the HTTP security headers that matter most, what specific attack each one mitigates, and how to roll them out without breaking your site.
Why fast general-purpose hashes like SHA-256 are unsafe for passwords, and how bcrypt, scrypt, and Argon2 defend against modern offline cracking hardware.
A practical guide to OAuth 2.0 and OpenID Connect flows for application developers, covering authorization code with PKCE and why implicit flow is obsolete.
Most backend engineers treat TLS as something a load balancer handles — until a service-to-service call or a certificate expiry proves otherwise.
Parameterized queries solve the classic SQL injection case, but ORMs, dynamic identifiers, and second-order injection still find ways through.
Your application's attack surface includes every package your dependencies depend on — here's what to actually check before trusting a build.
API keys and database passwords leak through predictable channels — git history, logs, error messages — long before an actual attacker gets involved.
JSON Web Tokens are easy to misuse in ways that look correct in a demo and fail catastrophically in production — a walkthrough of the common mistakes.
SameSite cookies made CSRF less of a default threat, but the attack is far from dead for APIs using cookie auth, subdomains, or older browsers.
React, Vue, and Angular auto-escape by default, but every one of them has an escape hatch that reintroduces XSS — here's where those hatches hide.
A practical translation of the OWASP Top 10 into concrete questions you can ask during pull request review, not just categories to memorize.