CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 4/26/2006 4:48:15 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
aalexander
Asp.Net User
Password Protect None ASP.NET WebPages4/26/2006 4:48:15 PM

0/0

I am currently developing a staff and student portal for my college.  I look into LDAP to authenticate and authorize users (I am using VS 2005 C# to do this).  However, as most you know at this forum, .htm, .pdf, and etc are not protected by the ASP.NET security.  I have done some reading and found that you can change this problem in IIS. 

 

If this solution hasn?t been posted, select your project in IIS and choose properties.  Next on the Directory tab find the Configure Button and click it.  After you do that you?ll be on the Mapping tab, click the Add button.  This will take you to another window, where you will browse for the aspnet_isapi.dll file.  After you have found that file all you have to do is add the extension you wish to protect (like .pdf).

 

 

After showing this process, is there an easier way?  Maybe using web.config?  I can read XML, but I don?t know much about it to make anything work for me. 

 

Another neat thing that my portals I?m creating might contain is a password change and reset page.  So my next question is how can I make sure my page is more secure?  Like I mentioned before, I am using Forms Authentication.  I also have Digested and Integrated Authentication checked, but I have it setup for anonymous access so I can make my login page work.  After I deploy my portals they will be on SSL.  However, this will make it impossible for me to see what the attacker done if we were compromised.  Any suggestions will be welcomed.  I?m relatively new to C# and security.

zhuhua1006
Asp.Net User
Re: Password Protect None ASP.NET WebPages4/27/2006 3:33:44 AM

0/0

1. You are right. Static files are not handled by asp.net because, before the request reaches the asp.net engine, it has been handled by iis and returned to client. So as my thought, your solution is the only option.

2. I am not understand why do you think after using SSL ", this will make it impossible for me to see what the attacker done if we were compromised". Enabling SSL brings secure communcation and it protected your data from being hacked. So when you decide to use SSL, I think the security of your portal is warranted.

aalexander
Asp.Net User
Re: Password Protect Non-ASP.NET WebPages4/27/2006 1:42:45 PM

0/0

I just wanted to say thanks for the response.  And give you a reason why I think SSL will make it hard to see what a cracker has done to my portal.  I was told at a conference that SSL encrypts everything, so the log file will be encrypted or partially encrypted (I?m not for sure).  I know I am protected against SQL cross-side scripting the * or 1 = 1 - - (well at least this one).  But other than that, I?m not sure what I am protected against.  I do have my log file setup to view login success and failures.  Do you think I should log more than that?  I know that no matter how much I secure my page is, if a cracker wants to invest the time he or she will eventually get in.

rjdudley
Asp.Net User
Re: Password Protect None ASP.NET WebPages4/27/2006 9:20:56 PM

0/0

You probably don't want to map PDF files through the ASPNET ISAPI.  Since they can get really big, you'll unnecessarily bog down the filter processing something it doesn't need to.  I have another way posted on my blog at http://aspadvice.com/blogs/rjdudley/archive/2005/10/03/12984.aspx that might work for your needs.  Modifying the web.config won't help.  You can also store the PDFs in a folder outside the webroot, and give your site's impersonated user access to the folder.  That way your site can get at the files, but they can'tbe accessed by direct URL.

Another hint is to not use HTM files--make everything an ASPX, even if it doesn'thave any server site code.

SSL only encrypts the data between the client and server.  Your server must decrypt the SSL for it to understand what was sent, so you'll be able to log clear text password failures, etc.  This encryption is done before the request hits your site, so you don't have to do anything special.


If my post is your answer, please mark it as the answer. It will bring good karma.

Crystal Alliance
My Blog
Florist Blogs
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Managing an Information Security and Privacy Awareness and Training Program Authors: Rebecca Herold, Pages: 515, Published: 2005

Web:
Status Bar Message - Password Protect Your Web Pages Easily. Send ... asp net file upload ... Create any number of password protected web pages. .... Language: English Platform: Windows Requirements: None ...
Download HTMLPass Freeware - Add password protect for html file ... Easy Web Password can protect your web pages, text files and whole website with professional encryption ... It does not require that the ASP.NET account. ...
Building Secure ASP.NET Pages and Controls In this automated form of a brute force password attack, every word in a ...... The following recommendations apply to ASP.NET Web pages and controls. ...
Building ASP.NET Web Pages Please enter your user name and password.

. . . . . CHAPTER 31 ■ BUILDING ASP.NET WEB PAGES ...
Prestwood: Password protect directories for Unix Web Hosting The actual web pages are not password protected, but rather the directory in ... Development by Mike Prestwood (ASP, ASP.Net, and Delphi to MS-SQL 2005). ...
Forms Authentication Tutorial Windows Authentication - This is provided so that web pages can make use of .... Authenticate(username,password) to get ASP.NET to check the credentials of ...
CodeProject: ASP.NET Discussion Boards. Free source code and ... Oct 27, 2008 ... How to show bargraph in asp.net webpages, member, Member 3959084, 46mins ago ... protected void Page_Load(object sender, EventArgs e) ...
ASP.Net 2.0 - Dynamic Fragments in Cached Web Pages Aug 29, 2006 ... ASP.Net 2.0 offers an elaborate set of options for caching web pages. Caching improves the performance of web applications in situations ...
Dynamic Web Pages with ASP.NET Prof. Dr. Hanspeter Mössenböck ... ASP.NET. Simple Dynamic Web Pages. Web Forms. Event Handling. Web Controls. Validators ...... Uses the login name and the password of the Windows login. ...
Load/Changing webpages in vb.net/asp.net - Xtreme Visual Basic Talk ‘check to see if the username and password are in the cookie if un <> “” and pw <> “” then %> [/code] My problem is.. it looks like asp.net ...




Search This Site:










asp.net app fails - some times?

uploading images asp 2.0

how to create a custom event when a security role assigned to user

turning the commerce starter kit into a functional webshop

procedure 'adddesktopmodule' expects parameter '@businesscontroller' ??

sitelog as soap web service

controls/featuredad.asdx

can i use wap and web sites together?

was working ...

passing javascript arrays to asp.net?

problem to publish my web site with my first own database

how can i use authentication control if i use access data source ?

setting the width of a menuitem

programming right mouse clicks

javascript automatically converting %26 to an ampersand. why?

there is no row at position 0.

extending user fields - the easy way or the hard way?

how exactly do you use these?

how can i get iis?

calling a dropdown in detailsview1

formatting a field on asp.net -> excel export

remote debugging

login form to let user login to intranet?

process cannot access the file

module size?

athenticated user redirect from admin not to login page

membership and roles

are web deployment projects really this limited?

how to add a datasource prop bindable at design time to my composit custom control?

cross posback problem

 
All Times Are GMT