Web Security Fundamentals: Protecting Your Applications in 2026
By Huzi
File #460 · 4 min read
Web security fundamentals in 2026 still come down to the ten weaknesses on the OWASP Top 10 — the 2025 edition is the current release — and every one of them folds to simple fixes like server-side ownership checks and parameterized queries, once you see the attacker's move first.
The quick answer: most breaches exploit ten well-known weaknesses, each with a cheap fix — server-side ownership checks, parameterized queries, argon2id, TLS 1.3, logs someone actually reads. Ship those defaults and most doors close before the attacker picks one.
The identity attacks
Broken access control. The attacker is already logged in as themselves: they edit /orders/1042 to /orders/1043 and read another customer's invoice. An isAdmin flag from the client is a suggestion — check ownership against the session, server-side, every request.
Credential stuffing. They feed last year's leaked passwords into your login form at scale and let password reuse do the work. Rate-limit, turn on MFA or passkeys, keep error messages unhelpful.
The input attacks
Injection. They type a stray quote into your search box to see if you build queries by gluing strings together. Parameterized queries make the input stay data, never code — that one deserves its own post, and it has one: SQL injection, walked through.
Cross-site scripting. They park a script in your comment box and let the next reader's browser execute it with your site's name on it. Encode on output and ship a strict CSP.
Server-side request forgery. They hand your import-image-from-URL feature an internal address, and the cloud metadata endpoint quietly hands over credentials. Allowlist fetchable hosts, block private IP ranges.
The quiet failures
- Cryptographic failures: passwords in MD5 or plaintext. Fix: argon2id for storage, TLS 1.3 on the wire — no legacy exceptions; the primitives behind both are the cryptography 101 file.
- Misconfiguration: forgotten debug endpoints, open buckets, default admin credentials. Fix: kill stack traces in production, rotate defaults, scan config in CI.
- Vulnerable components: they replay published exploits on your old library versions. Fix: lockfiles,
npm auditin CI, dependency bots whose PRs get merged. - Integrity failures: one script swapped on a trusted CDN. Fix: subresource-integrity hashes and signed builds.
- Logging failures: months inside, nobody looked. Fix: log every auth event, alert on the strange ones, rehearse the response.
The list itself grew a sibling in December 2025: OWASP's separate Top 10 for Agentic Applications — the first list that treats autonomous agents, their tools and their prompts as their own attack surface. If your stack now ships agents, read that list next to this one.
The whole list on one page
| Layer | The attacker's move | The one-line fix |
|---|---|---|
| Identity | Edits /orders/1042 to /orders/1043 |
Server-side ownership check, every request |
| Identity | Stuffs leaked passwords at scale | Rate-limit, MFA, identical error messages |
| Input | Stray quote in the search box | Parameterized queries |
| Input | Script parked in the comment box | Encode on output, strict CSP |
| Input | SSRF to internal metadata endpoints | Allowlist hosts, block private IPs |
| Crypto | MD5 or plaintext password tables | argon2id and TLS 1.3 |
| Config | Default creds, open buckets | Rotate defaults, scan in CI |
| Supply chain | Replays exploits on old libs | Lockfiles and merged patch PRs |
| Integrity | Swaps a trusted CDN script | Subresource-integrity hashes |
| Detection | Months inside, nobody looked | Log auth events, alert, rehearse |
Pro tip: Make your wrong-password message word-for-word identical to your wrong-email one — account enumeration is the cheapest attack here to fix, and most teams never do.
The asymmetry
Run down that list again and notice its shape. The attacker needs exactly one darwaza left ajar; you have to shut all of them, every release, forever.
The offensive move is always cheap, and someone else pays when defense fails.
The families of Gaza have been living at that failing edge for far too long — may they finally be protected rather than merely discussed. And Sudan's network has been strangled by a war between two armies — may its people get back a connection that fails only for maintenance, never for men with rifles. And Sudan's network has been strangled by a war between two armies — may its people get back a connection that fails only for maintenance, never for men with rifles.
We like being tested: ask why a visa file was refused, ask for the checklist in advance. HTG Travel has survived years of awkward questions. Quotes and itineraries come back fast from +92 317 5054959, workations with load-bearing WiFi included.




