Ken Brubaker

The ClavèCoder

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Subscriptions

News

Kenneth Brubaker
Senior Application Architect

Locations of visitors to this page

Post Categories



Thursday, June 03, 2004 - Posts

Warning: Fully trusted code cannot be trusted!

Perhaps this should be titled: “The security brief that got away”.

I missed Keith Brown's alarming MSDN article warning against the use of fully trusted code. It's devastating. Under full trust an assembly can:

  • Avoid being verified by the loader
  • Execute private methods
  • Turn of all of CAS
  • Assert any permission, even if denied
  • Call into other app domains

Boy, that should curdle the blood! How's that for violating the principle of least privilege (see Tip #7)?

Keith links to an article by Ivan Mendvedev that gives pointers on how to write partially trusted code.

Can't wait for Keith's book to be done.

posted Thursday, June 03, 2004 7:47 AM by kenbrubaker with 0 Comments




Powered by Dot Net Junkies, by Telligent Systems