To prevent DOM-based XSS, start from what it is: a cross-site scripting bug that lives in your own page script, not in your server. The server can send a clean page, and then a script on that page takes data an attacker…
Security testing
113 posts
AJAX security is the work of protecting the calls your page makes in the background and the way it shows what comes back. Your page fetches a cart, saves a setting or loads a feed without a reload, and every one of those…
OAuth 2.0 security decides whether "sign in with an account you already have" is safe or a way into your users' data. OAuth lets your app get limited access to a person's account, or sign them in, without ever seeing…
DOM clobbering is an attack where someone injects plain HTML, with no script in it, and uses it to overwrite a variable your JavaScript trusts. It matters because many teams stop at "we block script tags". This guide…
IDOR prevention is about one question your server must ask every time: is this user allowed to touch this record? IDOR stands for insecure direct object reference. It is the bug where someone changes an ID in a request,…
Cryptographic storage is how your app protects sensitive data while it sits in a database, a file or a backup. Turning on "encryption at rest" is often where teams stop, but it answers only one of the questions that…
Extension security matters because a browser extension sits closer to your users than almost any other software you ship. Depending on what it asks for, it can see every tab, every page and every form they fill in. If…
This HTML5 security checklist gives you one check per browser feature, taken from the OWASP sheet, so you can run it on your own front end in an afternoon. HTML5 security is about the features modern browsers give your…
Cookie theft mitigation is the work of noticing when someone else is replaying one of your users' session cookies (people call it a pass-the-cookie attack) and shutting them out. It matters more now that logins are…
Multifactor authentication asks for a second kind of proof after the password, so a stolen password alone no longer opens an account. The OWASP Multifactor Authentication Cheat Sheet says it plainly: any MFA is better…
WebSocket security is easy to skip. Your REST API gets reviewed and your login form gets tested, while the chat feature or live dashboard runs over a socket nobody looks at twice. This guide follows the OWASP WebSocket…
Credential stuffing is the attack where someone takes username and password pairs leaked from another site and tries them on yours. It works because people reuse passwords. Your own app was never breached, yet accounts…
A transaction approval code that says only "your code is 481920" proves a message arrived, not what the user agreed to. Signing in proves who your user is. It does not prove they agreed to send this payment, to this…
Cross-site leaks let another website learn private things about your users without ever reading one of your pages. Is this visitor signed in to your app? Are they an admin? Is a given email address in their contacts?…
This Node.js security checklist covers every risk a web app faces, plus a few that come from how Node.js itself works. The OWASP Node.js Security Cheat Sheet says Node.js apps are prone to all kinds of web application…
Microservices security comes down to one habit: check every call, not only the ones that arrive from the internet. When an app is split into many small services, a request passes through a gateway and then hops from…
Prototype pollution is a JavaScript flaw that lets an attacker add properties to every ordinary object in your app at once, often through nothing more than a crafted key in a query string or JSON body. MDN describes the…
Database security is about the layers around the database your app talks to: who can reach it, how the traffic travels, which account logs in and what that account may do. Most app teams think hard about SQL injection…
Multi-tenant security is the work of keeping each customer's data apart when they all share one app, one codebase and often one database. It is what most SaaS products run on, and it has a sharp edge: one missing check…
Your TLS settings decide how well HTTPS actually protects your users, and outdated or unsafe TLS security settings are easy to miss. This is the list to check yours against. A padlock in the browser only says that some…
An app does not need a flood of traffic to go down. One client that makes your server parse a huge upload, hold a slow connection open, or run an expensive search on every request can be enough. Denial of service…
An API is only as safe as its weakest endpoint. A team can protect the main routes well and still leave one admin route, one old version or one checkout step open. REST API security works best as a checklist you run…
Every analytics tag, chat widget and ad script you add to a page runs with the same power as your own code. If the vendor's server is compromised, the attacker's code runs in your users' browsers, on your domain.…
When someone types your domain without https:// or clicks an old http:// link, their first request can travel in plain text, where an attacker on the same network can tamper with it. HSTS (HTTP Strict Transport Security)…
A content security policy (CSP) tells the browser which scripts, styles, frames and connections a page may use. Writing one is easy. Writing one that survives the next release is the hard part, and a policy loosened…
If your app reads XML from outside, its parser may follow instructions hidden in the document. XXE prevention means making sure no parser in your app resolves external entities from untrusted input. This guide explains…
Command injection happens when text from a user ends up inside a shell command your server runs. The fix fits in one line: keep user input away from the shell. This guide to command injection shows how attackers break…
A stack trace on a public error page can tell a stranger your framework, its version, your file layout and sometimes your database queries. Good error handling keeps that story in your logs and gives users a calm,…
How should an app store passwords? With a slow, salted hash such as Argon2id, never in plain text and never with a fast hash like MD5. This password storage guide shows how to check what your app does in under an hour: a…
SQL injection testing comes down to one job: find the queries your app builds by joining strings with user input. If a query pastes in text from a form field, a URL, a header or a cookie, an attacker can change what that…