Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a reverse proxy make node.js safe?

I want to put node.js on the cloud for an application which has sensitive corporate information. I am afraid node.js is not as secure as some of the older servers since it has not been in the wild a lot. I saw people recommending to use a reverse proxy with it to make it safer. I understand how it is safer since it is not directly exposed to the world. But still, xss and other attacks are possible. From a security perspective only, anyone thinks that node.js is on par with the older servers? Any tips on "how to convince your boss + the corporate security team"?

like image 750
Yaron Naveh Avatar asked Aug 14 '11 00:08

Yaron Naveh


1 Answers

In theory, a reverse proxy wouldn't pass on any requests that it itself couldn't process (including those it's designed to block intentionally).

However, if there were bugs on node.js that would for example make it disclose the contents of certain variables when a request like

GET /x0c/xa0

is received, then the proxy would just pass on that request and relay the answer to the client (attacker).

So there are still risks...

like image 100
0x6A75616E Avatar answered Sep 19 '22 17:09

0x6A75616E