Re: StrongNameIdentityPermission
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 06:56:26 +0000 (UTC)
you could manually check the call chain - we had this discussion before...may raise the bar...but is not watertight and gives you a false sense of security...
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
OK I understand the worst case but I want to stop someone simply
logging in as Administrator or using CASPOL to fully trust their app
giving it access to my class library. This is far easier for someone
to do than decompiling my code modifying it etc. So how can I ensure
that the CAS checks run even when called by a fully trusted app or
with the admin logon?
"Henning Krause [MVP]" wrote:
You cannot effectively stop fully trusted code from doing that.
In the worst case, an attacker could decompile, modify an recompile
your assemblies and any protection whatsoever would be gone for good.
Greetings,
Henning Krause
"SteveR" <SteveR@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:715209C0-9676-4BAF-B459-20D49798287F@xxxxxxxxxxxxxxxx
I thought that was where I was going wrong. So my next question is
how can
I
stop a fully trusted app using my class library unless the strong
name
matches my criteria?
--
Steve
"Dominick Baier [DevelopMentor]" wrote:
IdentityPermissions are only enforced in partial trust - they are
not
effective
when the caller is fully trusted.
quoting
http://blogs.msdn.com/eugene_bobukh/archive/2005/05/06/415217.aspx
"The bottom line is, Identity permissions Demands could not [and
should
not]
be used as measure of Security protection against highly privileged
code.
The best they provide in Full Trust is an illusion of protection,
what
can
be even worse than no protection at all."
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
I'm trying to protect my class library by using the following code
StrongNameIdentityPermission(SecurityAction.Demand, PublicKey =
"...")]
To test if this is working I wrote another application with a
different public key. When I try to call the function it still
works. Why is it allowed to call the function?
.
- Prev by Date: ANN: Good IT Resource
- Next by Date: Re: Client Certificates Issue
- Previous by thread: Re: StrongNameIdentityPermission
- Next by thread: Going from anonymous security to Windows Security in an ASP.NET application
- Index(es):
Relevant Pages
|
|