A collection of 123 tips that come in real handy when you need them. Originally posted as tweets on
my Twitter account,
and now gathered here so you can browse them easily.
Well-Known URL for Changing Passwords
💡 Help your users easily change their passwords by providing a *well-known* URL.
👉🏼 Redirect a request to "/.well-known/change-password" to the change password page on your site.
💡 HTTP Parameter Pollution (HPP) is an attack in which multiple params are sent with the same name, causing your Node.js app to parse them differently.
👉🏼 Use hpp with Express to always resolve with the last value as a String.
💡 Running Node.js as root so you can bind to ports 80/443?
👉🏼 You can relinquish privileges with "process.setuid()" & "process.setguid()" to reduce the damage potential in case of a breach. Do this right after the app starts.