Node.js Cookies/Tokens (Access & Refresh) – OAUTH2 – How to store tokens and time/function refreshing

1) I am currently building a RESTful API which acts as a middleman between clients and an authentication server. A client gives me some account details and my server passes them to the auth server who then returns a csrftoken… Continue reading Node.js Cookies/Tokens (Access & Refresh) – OAUTH2 – How to store tokens and time/function refreshing

Does it make sense to consider a triggerable server software crash a DOS attack?

I’ve found a little vulnerability in a web application running on Node.js server.

It works by sending some crafted payload to the application server, which makes the application server code to throw an error and due to lack … Continue reading Does it make sense to consider a triggerable server software crash a DOS attack?

Security best practises for my first ever Node, Mongodb, Nginx production app on a Ubuntu VPS

So as the title says I’m just deploying my first ever app in production.

Because I don’t have experience, I was told to ask someone who knows this stuff.

So how should I ensure the best security for my VPS and for my app?

Continue reading Security best practises for my first ever Node, Mongodb, Nginx production app on a Ubuntu VPS