logo
  • Jobs
  • About Me
  • Contact
  • Home
« Improving .NET Application Performance and Scalability
The Provider Design Pattern in .NET 1.1 »

Solving problems by elevating permissions

Posted April 30th, 2004 by Matt Berther

I’ve recently been participating in several .NET newsgroups, and I cringe everytime I see a posts asking for help where the answer involves elevating permissions.

When all else fails, throw excessive permissions at the problem. ARGH!!! Some of the better ones Ive seen are:

  • Grant EVERYONE full control of c:\windows\microsoft.net\framework. I dont think I even need to explain why this is bad.
  • Apply the APTC attribute. Keith Brown talks about this in one of his Security Briefs.
  • Give the ASPNET account full control to a folder. Uh sure, let’s open that folder up to anyone with a web browser and an imagination…

When will people realize that elevating permissions unnecessarily to work around something, without finding the *real* reason to the problem, is why Windows has such a shoddy reputation when it comes to security?

If an application has problems writing a file, then grant write access, not full control. If an application can’t read a value from the registry, then grant read access, not full control.

Ideally, an application would be developed where the absolute bare minimum permissions are required. Should additional functionality require additional permissions, *then and only then*, just enough permission would be added to make the app work. I believe this is defined as the Principle of Least Privilege.

I’m ever so glad that VS.NET 2005 is making strides in this area by allowing debugging to occur with specific permission sets. Hopefully soon we will see an end to this madness.

*Update:* Looks like Keith Brown has a new article on MSDN discussing security in Longhorn and the focus on least privilege. Wahoo!

No Comments

This entry was posted on Friday, April 30th, 2004 at 2:02 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
-->

flag
Favorite Charity
wounded warrior project
Search
Social
  • mattberther on twitter
  • mattberther on linkedin
Syndication
Archives
  • January 2010
  • September 2009
  • July 2009
  • June 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • September 2008
  • August 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • December 2004
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • April 2004
  • March 2004
  • February 2004
  • January 2004
  • December 2003
  • November 2003
  • October 2003
  • September 2003
  • August 2003
  • July 2003
  • June 2003
  • May 2003
  • April 2003
  • March 2003
mattberther.com © 2003 - 2010