6 points · by rman666 · 13y ago · 19 comments
I'm a CISSP and CISM and a Ruby/Rails developer. I practice secure coding techniques and know the benefits of security testing.
What I'm asking, if it isn't obvious, is which has more outstanding vulnerabilities. I'm also asking for opinions on the _current_ security of each.
In all seriousness, I wholeheartedly agree with Patrick. A given platform (ASP.NET or Ruby On Rails) will not be a dominating factor. It's about whether or not you know about risks involved in writing web applications and how you mitigate against it as a developer. If you don't know what you are doing, both .NET and Ruby On Rails solutions will be vulnerable to SQL Injection, CSRF, XSS etc.
Patrick gave you the correct answer in the most concise possible fashion, concision being a virtue on HN. You might try thanking him instead of yelling at him.
Your question doesn't have a good answer. If you're picking based solely on security, my professional opinion is "flip a coin".
The "security" of a web framework is not a well-defined quantity.
Your question is malformed, and you got an answer that you should listen to: your choice of web framework is not a very important factor in the security of your site.
If you decide to go with certain versions of .NET, entire attack vectors will be closed, but ONLY because there are entire sets of features missing that you might get with Rails.
Obviously, now and then security vulnerabilities opens up, in all such occasions RoR prompts before you think about MS patch! It is something to do with MS release cycles, even though you can fix it as most of this frameworks (ASP.NET MVC or Web Api) are opensource ones.
I think your question is open ended that you cannot expect one answer.
For example, if you're worried about SQL Injections it is purely a framework like Entity Framework or NHibernate is to question about or in other cases how you're dealing with SQL queries (Are you using StringBuilder to build your query yet?) otherwise there are answers in both the land for every known security issues.
After all the fun we had with the NSA lately, and the stories of eg. skype calling home with your (at least) https:// links posted in the chat... Do you trust microsoft that every single piece of their softwarestack has no backdoors? Oh, and security patches for .NET are released regulary, so there are enough bugs, too.
This is my current opinion as you asked for it.
If the NSA wants your server stack, they're going to use the hardware to get it. But the reality is, the NSA doesn't need to backdoor your servers.
To start with, security isn't really a scalar measurement; a vector maybe closer. But all it takes is one tiny vulnerability in a remote corner of the application to open up the door to complete compromise.
Rather than vulnerabilities in underlying platforms such as .net/asp.net ruby/rails, more vulnerabilities are the result of erroneous application programming or mis-configuration.
And the age of the articles that you mention won't be much help in your search, as vulnerabilities are noticed in very old platforms, such as the recent issue with the old version of rails.
You are more likely to introduce a vulnerability in your application than being exposed to risks by either of these two platforms.