Hi newsgroup.
I ask, can a buggy ASP.net app grant root access to the server? Or are
there built-in mechanisms that prevent this?
Let's say, I have a bug in my application, that under certain
situations provokes a never ending loop, the application crashes, and
the asp.net process will get recycled.. could this provoke an attack?
Short question: Is ASP.net shielded enough from IIS, so that any
failures in .net applications, don't affect the security of IIS?
No. No general application development platform is shielded enough
such that vulnerabilities within it do not affect the security of the
underlying system. You will quickly find that platforms where you are
securely shielded by default to be very non-functional.
There is no short-cut to security. You cannot "sprinkle" security onto
a system, you cannot run in a "safe mode sand box" and say it's all
safe; it literally has to be built into the system by a developer
aware of security and its implications.
For example, reading and writing certain files can be dangerous, so
"safe mode" and sandboxes may deny those operations or limit the
resources that can be read/write, but suppose you are writing a media
streaming application or file upload application... you will quickly
find those restrictions cumbersome.
It is always a balance between Security and Functionality, and the
developer has to determine the correct balance. There is no automatic
way.
You literally have to think "suppose I need to allow file uploads...
maybe I should only ACL certain folder structures on the hard drive to
allow the user identity running the upload application to have write
access, and not make that directory otherwise visible/available by any
other service.
Let's say, I have a bug in my application, that under certain
situations provokes a never ending loop, the application crashes, and
the asp.net process will get recycled.. could this provoke an attack?
That is a Denial of Service (DoS) attack. It is a form of security
attack. Likewise, granting root access is an elevation of privilege,
another form of security attack. There are many other categories of
security attacks, and ideally, your application needs to enumerate and
address all of them.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//