Groups | Blog | Home


Archived Months
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > asp.net security > may 2004

Filter by week: 1 2 3 4 5

easy to understand web security info
Posted by Mark St Denis at 5/30/2004 10:31:02 PM
Can anyone tell me where I might find easy-to-understand information on web security. I have read lots of stuff by Microsoft (Threats and Countermeasures, etc), but all I've seen presupposes I know alot already, which I don't. Any help would be appreciated, thanks....more >>

Encryption for QueryString
Posted by Raheel Hussain at 5/30/2004 2:05:53 AM
hi guyz. I want to put encryption for every querystring for my web application. for that right now i m using a custom function. can any body tell me if there is some builtin function available in .net which i can implement. wht i want is that the query string value should be sent in...more >>

Forms authentication fails on a few computers :-(
Posted by M. Posseth at 5/29/2004 10:10:42 AM
i have a website that has forms authentication installed http://hbase.nohausystems.nl/ it seems to work fine ,,,, however on a few client computers it wil not logon ( not even the visitor mode that i made for unknown users , that just want to see the website ) nice thingy is that one of tho...more >>

Forms Authentication
Posted by questions NO[at]SPAM resolutionsnet.co.uk at 5/29/2004 3:12:20 AM
I wonder if anyone can help. We have web application using Forms Authentication that works perfectly ok in all environments, but in the production environment the forms authentication isn't timing out and returning the user to a login screen. Instead it tries to load the requested page and fa...more >>

Another ROLE question...
Posted by ECUnited at 5/28/2004 8:26:08 AM
Thanks for your help on my previous post. I'm running XP and it was looking for a role name of : <DOMAIN>\<ROLE>, like "ABC-CORP\Administrators", and I was just evaluating "Administrators". Is that true for Win2000, too? We have some clients running Win2000 and others running XP. Do I need to eval...more >>

Win2k, IIS5, IIS Lockdown Tool, URL Scan
Posted by 13 Fallen at 5/27/2004 6:57:55 PM
I run Win2k Workstation (Spk4) with IIS and the .NET Framework version 1.1. I develop on this platform with ASP.NET using Visual Studio .NET 2003. I am planning to install the latest version of the IIS Lockdown tool (with URL scan). I understand that this may interfere with some aspects of...more >>

Getting a list of roles
Posted by ECUnited at 5/27/2004 2:21:02 PM
This may have been answered in a previous post, and if so, please excuse my redundancy. I am using Windows authentication and I know about the IsInRole check, but I need to obtain a list of roles that each user is in. How is the most simple way to do that? What I need to do is to evaluate each user...more >>

newbie seeks User.Identity and Application_AuthenticateRequest help
Posted by usenet_daughter NO[at]SPAM yahoo.com at 5/27/2004 11:22:53 AM
I'm trying to understand how security works in a ASP.NET c# project. The global.asax has this code: protected void Application_AuthenticateRequest(Object sender,EventArgs e) { HttpCookie rolesCookie = Request.Cookies["roles"]; if ((!(rolesCookie==null)) && (!(Context.User==null))) { Gen...more >>



System.IO.FileNotFoundException using file.copy
Posted by Stephen Witter at 5/27/2004 10:44:48 AM
I am trying to copy a file to a network drive. I can do it on the domain controller/web server but not from a client. Here is the code: Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext Dim currentWindowsIdentity As System.Security.Principal.WindowsIde...more >>

Forms authentication - login fails
Posted by s_erez NO[at]SPAM hotmail.com at 5/27/2004 10:36:07 AM
Hi, I have an ASP application using Forms authentication. On my development web server everything works and login is successful, but when I move my application to the production server the login page is loaded but all login attempts fail. The development server is a windows 2003 server and the ...more >>

Multiple web.config files in a virtual directory
Posted by Raghu at 5/27/2004 8:33:05 AM
Is it possible to have multiple web.config files in a given virtual directory in different directories? For example: http://localhost/myapp (Virtual directory maps to C:\MyApp) http://localhost/myapp/newFolder (web folder in the above virtual dir maps to C:\MyApp\NewFolder) Can I have on...more >>

FormsAuthentication client-side problem
Posted by Marcio Kleemann at 5/26/2004 3:33:13 PM
I'm using FormsAuthentication to secure access to a web site. The authentication process works correctly initially. The pages on the site have a "logout" button, which basically call FormsAuthentication.SignOut() and redirect the user to the login page. The problem is that after the user logs ...more >>

FormsAuthentication Class Question
Posted by Joe Reazor at 5/26/2004 2:05:47 PM
First, here's a quick description of what I have so far. I have a website that I am building that contains both asp and asp.net pages. I have configured the site using a custom HTTPHandler, web.config, and a custom HTTPModule so that all requests (both asp and asp.net) go through the asp.net r...more >>

Getting AD Groups
Posted by hanafiahh NO[at]SPAM hotmail.com at 5/26/2004 11:07:07 AM
Hi Gurus, I seek you expert advice on the following scenario:- Environment: Windows 2003, IIS6, Windows Integrated Authentication, .Net Framework 1.1, ASP.Net, C# Based on the Integrated Windows Authentication, I'm trying to get the AD groups where the user's belong to from my ASP.Net page....more >>

Need help with impersonating for GetCurrentProcess call.
Posted by Ken Varn at 5/26/2004 10:59:08 AM
I am fairly new to ASP.NET, and am not sure about a problem that I am having and how to resolve it. My web page needs to make a call to Process.GetCurrentProcess() for some logging class that I am using in my web page. However, when the call is made I get an exception indicating that Access i...more >>

Changing Windows password by .NET code?
Posted by Jens Weiermann at 5/26/2004 8:13:42 AM
Hi! I'm using Windows authentication in one of my ASP.NET projects because this way it's easy for me to define which users has access to which page (using the NTFS file system security settings). Now my users want to change their passwords via a web interface. Does anyone know if it is at all...more >>

Double number of calls when Basic Authentication?
Posted by Joe H at 5/26/2004 7:17:16 AM
I have a web service that is set to use Basic Authentication (for users outside the firewall). They are coming in over SSL. It uses Integrated Authentication for internal users. For the users who are requesting service with Basic Authentication, there is a VB.Net client application which is ...more >>

Secure Downloads in Shared hosting
Posted by Dave Lambert at 5/26/2004 2:01:04 AM
Hi there, I have created a download website for members, all downloads are held in a folder and a user can access a specific download when he has paid for them, i then write a record into the database to say the user is entitled to download this item. I then wish when the user logs on, to display al...more >>

Opposite of RedirectFromLoginPage? Preset page to direct to...
Posted by Nugs at 5/25/2004 5:12:32 PM
How can I set the page that the login page needs to send the user to. I have a login page that does the RedirectFromLoginPage method, but I am now needing to explicitly tell the login page where to go instead of it looking for the previously requested page. How would I do that? My code is as f...more >>

Preventing script attacks from text boxes
Posted by DDK at 5/25/2004 2:48:58 PM
I am trying to figure out the best way to allow users to submit HTML in a textbox, and allow them the ability to edit the text HTML submitted afterwards safely in ASP.NET + C# (submitted to a sql server database), so that the application is not subject to script attacks. Any ideas on the best op...more >>

Access Denied w/Impersonate=true
Posted by Rich Yadach at 5/25/2004 2:25:19 PM
Does anyone have any ideas or comments on this? The problem seems to stem from having Impersonate=True set in our web.config files (Version 1.1). Here is the error we encountered . The actual filename changes every time you try to load the page: An error has occurred: Access...more >>

Security and Audit functionality
Posted by MattC at 5/25/2004 11:09:18 AM
Hi, I have a requirement that security be devised at page level, I'm am also required to keep an audit trail of who performed what action, when and what on. My current solution is as follows: Create 5 DB tables: Users, SecurityProfiles, SystemTasks, TasksProfileLinks, Audit. For this ...more >>

Converting Win32 API to VB.NET for Folder Security
Posted by i23bam at 5/25/2004 9:11:04 AM
For the record, I am a newbie to API. Anyway, I am trying to use the Win32 API in VB.NET to set NT Security (Administrator ACE) on a remote server folder from within a backup executable I have created. The problem is I am trying to implement my translated version of the NTFS Permission example, at h...more >>

Machine.Config -- ProcessModel vs Impersonation
Posted by Wm. Scott Miller at 5/24/2004 12:00:19 PM
What is the difference between using a username and password in the processmodel section vs using one in impersonation in the machine.config file? What are the advantages of each and what are the usages of each? Thanks for any replies, Scott ...more >>

IPrincipal
Posted by Veronica Jacobs at 5/23/2004 11:28:18 PM
Anyone work with the IPrincipal object in an ASP.NET web app? Just wondering how it is used and if there are any best practice documents anyone is aware of that help describe the proper way to implement it. Thanks. V.J. EncryptaSoft.com www.encryptasoft.com ...more >>

Beginners question: Form based authentication
Posted by Oliver Kharraz at 5/23/2004 1:58:03 PM
Hello, the following question may be trivial, but after scrolling documentations on my screen for hours I'd absolutely appreciate your help: I want to have two kind of pages on my site: the ones everyone can access (allow users="*" in the web.config) and those that require forms based authe...more >>

Cannot read a Security Log from ASP.net web service
Posted by Ian Wright at 5/22/2004 5:13:34 PM
I'm attempting to read the security event log for a WinXP Pro machine using a web form that calls a web service. Both files are stored in the same directory in IIS. The directory is set to use Windows Integrated security and I've set up the web app to use impersonation with the local admin acc...more >>

IUSR_COMPUTERNAME vs ASPNET
Posted by Anatolij at 5/21/2004 3:50:12 PM
Hello people.Sorry for stupid question.But who can exlplain to me difference between IUSR_COMPUTERNAME and ASPNET account. ...more >>

Could not load type error
Posted by Sumit Thomas at 5/21/2004 3:30:49 PM
Hi, I have created sub directories for my application, however, when I try to access the aspx files in the subdirectory, I get the following error : "Could Not Load A1.A2" where A1 is the name of my project and A2 is the name of my subdirectory. It looks like the program is looking for the bi...more >>

Global.asax Inheritance?
Posted by Joe Reazor at 5/21/2004 11:33:08 AM
I understand how Web.Config inheritance works between a parent application and sub applications under the parent. But what I was wondering was if there was a similar way to do the same thing for the Global.asax class? Reason being, I am setting up user authentication and authorization. I have...more >>

ASP.NET Authorization
Posted by popman at 5/20/2004 9:52:19 PM
I'd like to use role in Forms authentication and I found the following words from .net SDK about ASP.NET Authorization. " Identifies a targeted role for this element. The associated IPrincipal object for the request determines the role membership. You can attach arbitrary IPrincipal objects t...more >>

Windows Authentication Question.
Posted by Tom Callahan at 5/20/2004 10:03:42 AM
I have windows authentication setup and is working fine except for one problem. If the user wants to login using a different User ID, How do I tell windows authentication to re-authenticate the user without closing the browser. It seem that one the user logs into the system, windows authentica...more >>

Authentication using HttpModule
Posted by don smolen at 5/20/2004 7:51:05 AM
I know that we can perform authentication of .aspx pages with an HttpModule, and that the same module can probably be used for static content (.htm, .jpg, etc.) by sending them through the ASP.Net pipeline. Can this approach be extended to include non-ASP.Net dynamic pages such as .asp and .jsp? I c...more >>

Session variables in asp.net
Posted by Newbie at 5/19/2004 6:03:34 PM
Hi All, I would really appreciate any ideas / clues on this issue which I am facing. I have a asp.net application, the problem is with maintaining session variables while using authentication for different users. My users are divided in groups , and have a username and pwd to login. Now if suppo...more >>

Question about redirecting to a "session expired" page...
Posted by John Smith at 5/19/2004 3:25:52 PM
This may sound trivial but I cannot figure out how to do this... When a logged in user's session expires, I want that user redirected back to the login page with a label that says "session expired". Sounds easy, eh? First, am I correct in assuming that a session is totally separate from the "...more >>

Windows authentication Redirect /CustomErrors Issue
Posted by Ivan Smith at 5/19/2004 1:51:05 PM
I am using asp.net (1.1) and am setting application security in web.config using: <customErrors mode="On" defaultRedirect="Denied.htm"><error statusCode="401" redirect="Denied.htm" /><error statusCode="403" redirect="Denied.htm" /></customErrors If I try to authenticate with invalid credentials m...more >>

Accessing Cluster Disks from a WEB Application
Posted by Programmer at 5/19/2004 1:26:45 PM
Well here is my problem I have a web application running in 2 web servers and I have also a cluster system. I want using the web application to write some files in the cluster discs. So I have created in my web servers a virtual directory located on the cluster discs. (Before that I ha...more >>

SSL Performance HIT in REVERSE? the clients are PEGGED as opposed to the server?
Posted by anon at 5/18/2004 10:33:59 PM
I am trying to stress test the effects of SSL on a web server using Web Application Stress Tool (WAST). However, when using SSL and according to the WAST Help files, the peformance HIT is in the opposite direction. It's on the clients at 5 times the load!!! as opposed the server I want to test...more >>

How can I setup SSL on my LOCAL COMPUTER?
Posted by anon at 5/18/2004 7:14:07 PM
Hello, I already have setup SSL on my production server via purchasing a certificate and that seems to work fine as I can type in https:// and it works fine. However, I want AND need to be able to test my .ASPX webpages via SSL on my local server. What is the best way to this? Thanks....more >>

accessing remote OLAP cube through WSS cause an error...
Posted by Jéjé at 5/18/2004 7:04:40 PM
Hi, I receive this error when I try to access an olap cube with the DSPanel web part: No connection could be made because the target machine actively refused this error appear only when I access my server remotly and if the NT authentication is activated. if I use the clear/text authenti...more >>

Role based security and Domains
Posted by Sammy_63 at 5/18/2004 4:36:02 PM
Does any one know how to find my windows domain name with .Net Here's what I'm trying to do, I'm implementing role based security by calling WindowsPrincipal.IsInRole. This requiers the group names to be passes as DOMAINNAME/GROUPNAME. I use the same group names at all the installations but the...more >>

Rindjael and testing failure
Posted by Eugen Feraru at 5/18/2004 10:48:36 AM
Hello all, I am trying to test the business logic of an application that uses Rindjael encryption, by testing it when 'tampering' with the encrypted cipher. The scenario assumes that the encrypted cipher has been tampered with (by changing some of the values, but not removing them). I expected...more >>

How to Encrypt password
Posted by Robin at 5/17/2004 10:39:37 PM
In the web.config how do you generate the encrypted string that can be used to store password of the identity element? ...more >>

using System.Net.NetworkCredential class
Posted by cnett858 NO[at]SPAM hotmail.com at 5/17/2004 4:42:29 PM
I am using NUnitASP and I have run into problem "faking" user credentials. In my ASP.Net/C# application, I have turned off anonymous access to the web app and I allowing Windows groups to handle the permissions to the app. Things are working perfectly, i.e. only user groups that are allowed ca...more >>

Find Cookie Else Redirect
Posted by JC Foust at 5/17/2004 9:11:02 AM
Hello I'm in the finishing stages of a new CMS site and we've recently discovered a tear-out-my-hair authentication problem. Essentially, what I have is a news site. We list articles on the index page requiring registration. What I need to do is this When a user clicks on an article headline/...more >>

Files become ReadOnly
Posted by Miro at 5/17/2004 4:06:02 AM
Hello For some strange reasons, some of my files become ReadOnly when I copy them to a subfolder to my ASP.NET application. For each new session I clear the temp folder using this code private void ClearTempFolder( //Remove all dwg-files from Tem String[] dwgFiles = Directory.GetFiles(Se...more >>

Reading the public key inside a strongly signed assembly from the assembly itself???
Posted by Bob Rock at 5/16/2004 8:49:32 PM
Hello, is it possible to programmatically read (and how) the public key that is embedded into an assembly that has been strongly signed??? What code would be needed??? Bob Rock ...more >>

Can't get ASP.Net to access remote folder share
Posted by Garrek at 5/16/2004 2:25:54 AM
I have a WebService executing on one server in a workgroup which needs to reach out to a folder share on another server for read/write access. I've created an identical user account on both systems (matching in username and password). I've approached the problem by writing a utility class ...more >>

obfuscation question
Posted by vadim at 5/14/2004 4:25:20 PM
Hi, Will obfuscation help in securing hard coded key in asp.net application? Thank you Vadim ...more >>

Secure Multiple Applications in one Domain
Posted by Joe Reazor at 5/14/2004 2:52:33 PM
I have a fairly simple scenario. I have a root web that is set-up with a web.config file that has forms authentication on and authorization to only allow logged in users to get in. Under the root web I have another web application that has its own web.config file. If I request a file in the r...more >>


DevelopmentNow Blog