all groups > dotnet security > march 2005
Filter by week: 1 2 3 4 5
User's Privileges
Posted by Feldman Alex at 3/31/2005 2:00:02 PM
Hi all,
I need to know the user privileges (does user have administrator privileges)
..
Which c# api's should i use?
Thanks a lot
... more >>
WSE SP3 FullTrust
Posted by Mike at 3/31/2005 6:09:03 AM
I have no clue what's happened. About a month or so ago I developed a VSTO
app that used WSE 2.0 SP2. I created a setup project that correctly installed
the app and set the policy correctly. All deployed and ran properly.
Now, I've installed SP3, and I keep getting security error (Execute
P... more >>
Changing folder security
Posted by Feldman Alex at 3/30/2005 4:12:11 PM
Hi all!
I need to set folder security to full control to everyone
is it possible from code (without calling any external applications and
sripts) ?
example would be nice.
Thanx
... more >>
revoke Windows authentication credentials for a session
Posted by strutt at 3/30/2005 12:31:07 PM
I am writing a web app that uses windows authentication. I have a logout
button in the app that abandons session and returns the user to the main page
of the application. I would like to force the user to provide their windows
credentials again if they choose to reenter the application.
Is ... more >>
Sharing Application and Session scope with ASP in IIS6
Posted by Angelo Brusati at 3/30/2005 11:59:32 AM
Hi everybody
I've installed my web application on a IIS6 (Windows 2003) but I've
difficulty to share caching in Application and Session scope between .NET
and ASP.
It works on a II5...
I'm sure it's something about security - but what?
Scenario:
- same web site
- same application pool
... more >>
Decoding extended ascii base64 string
Posted by Mandy at 3/30/2005 6:39:16 AM
Hi,
I have an application that sends a .NET (C#) web service an base64 encoded
string. This string sometimes includes extended ascii, e.g. é ù ô and when I
try to decode this string in the webservice using:
string decodedString = Encoding.UTF8.GetString( Convert.FromBase64String(
base64S... more >>
HELP Security in .Net framework
Posted by serge calderara at 3/30/2005 1:51:03 AM
Does anyone can point me out to good articles or documents which clearly
explain the security under .Net framework
I try to follow something but I am really getting lost indeed, a lot confuse
with the code security and security of the operating system also how they are
interact together.
H... more >>
Custom principles and DnsPermission.Demand()
Posted by andrew lowe at 3/29/2005 1:39:19 PM
Hi
We have windows application and have created our own custom principle &
identity objects that implement IPrinciple and IIdentity. When a user logs
into our system we set the threads principle to our custom principle object
by calling Thread.CurrentPrinciple = blah. This all works great for ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem with RSACryptoServiceProvider ( incorrect usage of public-private keys ? )
Posted by Linas Kricenas at 3/28/2005 6:26:23 PM
Hello,
I want to encypt a small ( I'm aware that max 117 bytes may be encryptes
with RSA ) portion of data with private key and later to decrypt it with a
public key which will be embeded in my code.
The problem I am expieriencing is that I _cannot_ decrypt anything with
public key - no mat... more >>
Need only execute rights for web app. Did I set this up right?
Posted by Kevin at 3/28/2005 2:57:02 PM
I have created a web app and now I want to make sure that it only has execute
rights to run. Below is what I put in the assembly file. Is this correct?
'Allow this web app to execute
<Assembly: Web.AspNetHostingPermission(SecurityAction.RequestMinimum,
level:=Web.AspNetHostingPermissionL... more >>
X.509 certificates and httpwebrequest
Posted by Deepak at 3/28/2005 10:27:04 AM
We retrieve data from a company called XYZ through httpwebrequest.
The program is coded using VB.NET
They have given a certificate to install.
This certificate is included with the request object.I use httpwebrequest to
retrieve data. The certificate is added to the client certificates
col... more >>
Newbie Question: Trust an Assembly Wizard
Posted by at 3/25/2005 5:40:05 PM
Hi. Under the Microsoft .Net 1.1 Wizards there are 3 wizards:
1) Adjust .Net Security
2) Trust an Assembly
3) Fix an application.
I want to use the Trust an Assembly wizard to trust several assemblies (from
a network share). However, it seems to insist that I only select one
assembly at ... more >>
ClientCertificates and IIS5 with https://localhost
Posted by Michel Gallant at 3/25/2005 5:03:42 PM
I have seen a number of postings with problems similar to this:
W2k Pro sp4 fully patched
IIS 5 web service: ssl enabled; requiring client certificates
Running on same machine as client
Client .NET 1.1 console application in C#:
(certfile is also a valid certificate in CU MY store .. wit... more >>
Windows Authentication question
Posted by Natan at 3/24/2005 10:42:56 AM
Hi.
We are creating an intranet here in ASP.NET and we decided that we are
going to use a kind of Forms Authentication but using the users in our
windows domain.
So, we are creating a default login form, but the user will use the name
and password he uses to login to his computer.
I w... more >>
Using Weak keys in DES and TripleDES
Posted by Mark Oeltjenbruns at 3/24/2005 10:10:45 AM
I'm trying to use TripleDESCryptoServiceProvider to encrypt some data to
authenticate with a DESFire card, however, the default key is 16 zeros which
causes a CryptographicExecption to be thrown; it complains about weak keys.
The card also supports Key1 = Key2, which gives DES support; This also
... more >>
Finding out if user has privileges to a diectory.
Posted by UJ at 3/24/2005 9:00:55 AM
How can I, through VB.NET, find out if somebody has access to a specified
directory? The directory will be on an 2000 Server.
TIA.
Jeffrey.
... more >>
Anyone out there using AzMan with WinForms solution?
Posted by PierreDechaine at 3/23/2005 11:52:08 PM
I have been using AzMan for a security proof of concept and really like what
it has to offer. Our company has over 3500 XP user workstations. The new
version of software that we are building and preparing to roll out needs
some interesting security in regards to the user interface. Buttons ... more >>
Difference between Full Trust and Everything
Posted by Tim Anderson at 3/23/2005 2:45:48 PM
What is the difference between Full Trust and Everything in .NET security
configuration?
I know there is a difference, because if I take the following steps, I can't
even get a simple winform app to run:
1. Create a code group for the My Computer Zone
2. Set the new code group to use th... more >>
IIS "secure communications"and "certificate" sections disabled.
Posted by GoCMS at 3/23/2005 7:27:04 AM
Hi, there:
This might be a newbie question. I want my web service to require a
certificate to access, so I go to IIS my virtual directory property and
Directory Security page. I found the "secure communication" secion including
"Server certificate" button are both greyed out. I wonder why t... more >>
Storing Client Certificates
Posted by Todd Bright at 3/23/2005 6:45:06 AM
Is there a way in .Net to specify that an embedded resource can only be
accessed from within the assembly?
Or, in general, what is the best/most secure way of storing a client-side
cert without having to have a user profile?
Thanks,
Todd... more >>
Howto obtain WindowsIdentity for client calling method on COM+ application?
Posted by Morten Overgaard at 3/21/2005 2:57:03 PM
We have a COM+ application written in C# (a serviced component) thats get
accessed by remote hosts on the network. How do I obtain the WindowsIdentity
of the caller of my serviced-component?
Regards Morten
... more >>
Howto obtain WindowsIdentity for client calling method on COM+ application?
Posted by Dominick Baier [DevelopMentor] at 3/21/2005 7:12:38 AM
You mean the name of the caller??
That's in SecurityCallContext.CurrentCall.DirectCaller.AccountName
---
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
nntp://news.microsoft.com/microsoft.public.dotnet.security/<#ttsf3hLFHA.1884@TK2MSFTNGP15.phx.gbl>
We have a CO... more >>
ildasm
Posted by vhoward at 3/19/2005 10:01:33 PM
hi,
i use compact frameword and c# to program on pocket pc
is there a way to prevent user to examine constant in a .exe using ildasm ?
thanks in advance
... more >>
License File Generator Using Digital Signatures
Posted by mr.mike.ward NO[at]SPAM gmail.com at 3/19/2005 3:03:52 PM
I've written a license file generator in C# that generates a signed XML
file for use in another program. I need to give this generator to a
third party (ShareIt.com) so they can generate license files when a
purchase is made. I can to do this with a keys stored in a container,
but on their syste... more >>
SecurityCritical, SecurityTreatAsSafe and SecurityTransparent Attributes?
Posted by Jesse Towner at 3/19/2005 5:02:26 AM
I noticed these intriguing classes have been introduced recently into
the .NET Framework 2.0. However, documentation for them seems to be
lacking, and google search turns up nothing.
I was wondering if someone could be generous and comment on the usage
of these attributes? In order to expose a... more >>
RSA Encrypt/Decrypt Problems
Posted by Joseph MCAD at 3/18/2005 3:53:02 PM
March 18, 2005
I am trying to encrypt messages typed in a textbox by encrypting them
using RSACryptoServiceProvider. If the text is shorter than about 1/2 a
sentence, then it works fine. If it is longer, say: "This is my message. It
is not very long, however.", then RSA.Encrypt(M... more >>
ASP.NET roles, authentication
Posted by Neel at 3/18/2005 11:20:05 AM
Hi all,
I am creating a web page (asp.net) with AD authentication (LDAP), I
have few set of roles created for this project.
I have roles1, roles2, roles3, roles4
Based on the above roles, i have to pull the data from a database for
that user.
Here are the steps, i plan to perform
1. Searc... more >>
full trus and 1.1 SP1
Posted by AndrewEames at 3/18/2005 10:17:05 AM
I just applied 1.1 SP1 and I am seeing some changes in behavior wrt. security
If I set my security level to no trust, my .NET application will now actualy
execute until Application.Run (previously, it wouldn't even start up without
execute permission)
So great I thought - I can put up a fr... more >>
Security Exception due to Medium trust level
Posted by vrush Deshpande at 3/17/2005 9:43:49 PM
Hello,
We have a web application developed in ASP.NET and MySQL database.
The code works fine if trust level of web server is kept high for
ASP.NET. It seems all service providers keep trust level Medium by
default.
If database read, write is commented, it works fine with Medium trust
le... more >>
A single page from an existing application under SSL?
Posted by Mike Owen at 3/17/2005 12:13:02 AM
I have developed an application which all works fine, and runs under a normal
non secure connection, e.g. http://shop.domainname.co.uk .
I now want to run just a single page, that already exists in the
application, that asks user to enter credit card information, in a secure
environment usi... more >>
any way sending S/MIME signed email with asp.NET ?
Posted by ron at 3/16/2005 5:05:09 PM
ASP.NET security for a combined intranet/Internet site
Posted by gauty at 3/16/2005 1:53:03 PM
Hi,
I'm writing an application using forms authentication, and have
implemented roles-based authorization using custom Principal and
Identity classes. This is all working fine, but now the client wants to
bypass the forms authetication when an intranet user is accessing the
system from the inte... more >>
what would disable certificate export?
Posted by nicole at 3/16/2005 1:42:42 PM
I have several certificates in my user store. When I inspect them with
MMC snap-in, I can see that I have the private keys. When I try to
export them, it doesn't let me export private keys. I am pretty sure
that private keys are marked exportable when I first got these
certificates. I wrote a ... more >>
Java encryption <--> .NET encryption
Posted by Gawel at 3/16/2005 12:56:05 PM
Hajo,
I need to exchange encypted data between
..NET and Java environments. The first
problem I encountered is that symmetric
ciphers in .NET needs initialization
vector and Java counterparts don't.
Can some one point me out the place
where I can find any practise and
patterns for encrypte... more >>
Re: Custom IPrincipal and declarative security checking
Posted by Dominick Baier [DevelopMentor] at 3/16/2005 5:34:15 AM
My point is that you run in even bigger trouble when you only copy the IPrincipal to Thread.CurrentPrincipal - a common mistake i have seen.
Do you have a practical example of code that demands PrincipalPermission before
HttpApplication.SetPrincipalOnThread is run (besides code you've written ... more >>
CryptographicException problem on Server 2003
Posted by dingfahd at 3/15/2005 1:13:03 PM
This is my first attempt at cryptography, and I'm a bit stumped. The
following code is meant to encrypt an image on a client, then decrypt the
image on a server. When the client and server are both running on the same
machine running Windows XP SP2 w/ .NET 1.1 the code below works. However,... more >>
Custom IPrincipal and declarative security checking
Posted by Baileys at 3/15/2005 5:29:03 AM
Hi,
I'm having trouble getting declarative checks (using
PrinciplePermissionAttribute) to work with my custom IPrincipal
implementation in a web scenario.
I created a custom principal class (MyPrincipal), implementing the
IPrincipal interface
I added code to the global.asax Application_... more >>
Certificate install impossible - W2K & MMC
Posted by Matthew.DelVecchio NO[at]SPAM CapitalOneAuto.com at 3/14/2005 6:04:28 PM
hey gang,
i am a developing webapp that requires a client-side certificate in
order to consume our partner's webservice. i have finished this app
and, on Windows XP, i can install their cert via MMC and everything is
honky dory.
but on a Windows 2000 Server (W2K), things are not. While usin... more >>
Code Access Security - User Policy Level
Posted by Kjetil Kristoffer Solberg at 3/14/2005 11:19:05 AM
How can I set Code Access Security, User Policy Level, policy for a certain
user
on a machine?
regards
Kjetil Kristoffer Solberg
... more >>
Secure files on virtual
Posted by Chris Kennedy at 3/11/2005 7:07:31 PM
I am designing a document store. I want user to login and then be able to
download files presented to them in the form of a list of links. Obviously I
don't want nonlogged user to be able to see the files over http. I have
tried to secure the diectory by mapping the the pdf extension to the aspne... more >>
Error instantiating RSACryptoServiceProvider
Posted by Ignus Fast at 3/11/2005 5:42:16 PM
I'm trying to instantiate an RSACryptoServiceProvider in a web service,
which works fine on my local machine. But when I move the web service out
to my production server, it blows up with the following error:
System.Security.Cryptography.CryptographicException: CryptoAPI cryptographic
s... more >>
best practice for encrypting in app
Posted by Homer at 3/10/2005 4:17:08 PM
I have a general question where is the best practice to store and how to pass
in the key for symmetric encryption to an app.
I have created a helper dll to aid with the encrypting\decrypting
sensitive scripts that we have. How should I interact with this DLL by
passing in the key for the e... more >>
Error from CAS Config util
Posted by Trevor Lawrence at 3/10/2005 2:28:36 PM
I am attempting to construct a custom implementation of IMembershipCondition
(which actually does a bit of work and then delegates to a
UrlMembershipCondition object).
I hjave given it a trong name and successfully installed it in the GAC, but
an attempt to add it to the policy assemblies i... more >>
Newbie error on output
Posted by larzeb at 3/8/2005 1:50:59 PM
I wrote a program and installed it xcopy logged onto User A.
Everything works OK. When User B logs on and attempts to run a part of
the program which writes to a log file, the following error comes up.
I don't know where to begin.
The program runs on XP in a peer-to-peer network.
TIA Lars
... more >>
Running programs located on server
Posted by Steen at 3/8/2005 4:39:03 AM
I have a Win98 laptop which is connected to our local network.
I want to run a .NET program which is located on a server, but I am not
allowed to by the laptop.
If I copy the exe to the harddisc, it will run ok.
I guess its something about security settings in Win98, but I cannot find
any... more >>
get remote server's SSL public key
Posted by tragic_hip at 3/7/2005 6:35:04 AM
I'm looking for a way to get a remote HTTPS server's public certificate. I
want to use this to encrypt data that will eventually be sent to that server
via HTTPS, but I don't want the data to be readable on the computer's hard
disk.
The only way that I can see to do this is to create my own... more >>
.NET thin control & IE
Posted by JFN at 3/6/2005 10:01:49 PM
Hi,
I'm in process to develop thin control, that will be used in our web pages
and IE.
Control itself uses tag <object> and compiled in one assembly, that
referenced another 2 assemblies,
generated by VS as wrappers around COM object (Ax & regular version).
Assembly for control is signed b... more >>
StrongNameIdentityPermission and Web Services
Posted by Henrik Skak Pedersen at 3/5/2005 11:12:17 PM
Hello,
I would like to make sure that my web service only can be called from my
strong name assembly. But I get a SoapException when I try to call a web
method with the StrongNameIdentityPermissionAttribute set. So I guess that
that there are problems using this attribute when I am calling ... more >>
SignedXml fails under .NET 2.0 Beta
Posted by gfogante NO[at]SPAM gmail.com at 3/5/2005 1:34:54 PM
Hi,
I'm using the following code to check signed xml files:
SignedXml signedXml = new SignedXml();
// http://support.microsoft.com/default.aspx?scid=KB;EN-US;322371
CspParameters cspParams = new CspParameters();
cspParams.Flags = CspProviderFlags.UseMachineKeyStore;
RSACryptoServiceProvid... more >>
IIS Authentication Problem?
Posted by Les P at 3/4/2005 7:55:03 PM
IIS Authentication Problem?
Since '95 I have been a contractor develoing applications using Borland
Delphi (Object Pascal) creating win32 C/S stuff.
Having recently completed amy last contract I decided to try my hand at
dotNet stuff.
I downloaded the trial version of Visual Studio 2003. So... more >>
|