by mattmanser · 13y ago · 0 comments
How is that a security hole? It's actually .Net having a bad default configuration for ASP.Net MVC, a lot of us made this same mistake when doing our first MVC projects. It's not actually exposing anything dangerous (in fact it's hiding the actual error like it should do).
The actual error will be something like this:
http://stackoverflow.com/questions/5967103/a-potentially-dan...
It's .Net disallowing at the root level and if you don't know about it, you can't code for it.
Or am I missing something? Given it's Troy Hunt who's usually quite knowledgeable about this stuff, I'm confused?
Those might not seem a big deal, but you've just provided quite a lot of hints about what the attack surface looks like. Most vulnerability scans will flag up "leakage" of data. IIS also does annoying things by default like "powered by IIS" type HTTP headers (it's not alone in that of course). You'll usually be warned to switch that off because you don't want to make attacks easier than they otherwise would be. Internal error form leakage is just another example.
So that's not what I, or I would think any reasonable developer, would considered even a vague security concern as an experienced developer with exposure to a few different frameworks can often tell the platform, and thus the probable server, by just looking at the HTML.
If it were a serious security concern MS would have patched the header by now! Instead they've added even more with MVC.
So are there any other reasons? Or is Troy just wrong in this instance?
More info: https://asafaweb.com/Scan?Url=telegraphcottages.co.uk#Custom...
But what does that even mean? We've already discussed below that thinking you can hide an ASP.Net MVC site is wishful thinking unless you totally strip out every identifying part of the framework client-side, there are so many ways I can think of, including the ones below, like the js libraries, the CSRF style, the CSS style the validation uses, the wrapping of JSON responses in a object named d, etc. etc.
I even have vague recollections of coming across odd behaviours in IIS when it sends the allow-continue header in certain scenarios that no other webserver does. Though I can't remember the details now so might be wrong there.
I think you should stop classifying this as a vulnerability and just call it what it actually is, a misconfiguration.
I do like asafaweb, nice tool.