Scott on Writing

Musings on technical writing...

Final Three Security Tutorials Published

As noted in previous blog entries, I've been working on some tutorials for the www.asp.net site on the topics of forms authentication, authorization, membership, and roles. The first set of tutorials covered security basics and examined forms authentication in detail; the second set looked at the Membership system and the SqlMembershipProvider. The third set of tutorials examined the Roles framework and the SqlRoleProvider. The final slate of tutorials includes three on implementing common administrative tasks.

  • Building an Interface to Select One User Account from Many [VB | C#] - when we needed to select a user account in previous tutorials we used a drop-down list. While a drop-down list is sufficient if there are only a handful of user accounts, it  becomes unusable when there are hundreds or thousands of users. This tutorial looks at building an interface to efficiently and easily select one user account from a large number of accounts. 
  • Recovering and Changing Passwords [VB | C#] - shows how to use the PasswordRecovery and ChangePassword controls to allow users and administrators to recover lost passwords and change existing passwords.
  • Unlocking and Approving User Accounts [VB | C#] - as a security measure, if a user supplies an incorrect password too many times, they are locked out. Users may also be unapproved. In either case, they cannot login. This tutorial examines how these properties are set, how they can be modified by an administrator, and how the user's approved status can be utilized to prevent new users from logging in until some action has been completed (such as clicking a link in an email message or receiving approval from an administrator).

All tutorials are available in C# and VB versions, include a complete, working source code download, and are available to download as PDF. The next batch of tutorials examines creating administrative pages to manage user accounts.

Enjoy! - http://asp.net/learn/security/

posted on Wednesday, April 02, 2008 10:55 PM

Feedback

# re: Final Three Security Tutorials Published 4/11/2008 5:51 AM Richard

There's a nasty bug [1] in the PasswordRecovery and ChangePassword controls, where the body of the email message will be corrupted if the new password contains any of: "$0", "$&", "$+", "$`", "$'" or "$_".

The MailDefinition.CreateMailMessage method uses Regex.Replace to insert any replacement strings, but doesn't properly escape the inserted values. All of the strings above act as substitutions [2], which causes the incorrect value to be inserted.

[1] https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=302939
[2] http://msdn2.microsoft.com/en-us/library/ewy2t5e0.aspx

# 11 april Links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, VISUAL STUDIO, Silverlight 4/12/2008 3:29 AM Scott Guthrie's Blog in Dutch

11 april Links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, VISUAL STUDIO, Silverlight ASP.NET Meer ASP.NET Beveiliging

# لینک های یازدهم آوریل: ASP.NET,ASP.NET AJAX,ASP.NET MVC, Visual Studio,Silver Light 4/17/2008 5:22 AM وبلاگ اسکات گوسری به زبان فارسی

ASP.NET: ????? ??? ????? ????? ?? ASP.NET : ?? ????? ??? ? ???? ????? ???? ?? ???? ????? ASP.NET ?? ?????

# ASP.NET,ASP.NET AJAX,ASP.NET MVC,Visual Studio,Silver Light:لینک های یازدهم آوریل 4/17/2008 5:27 AM وبلاگ اسکات گوسری به زبان فارسی

ASP.NET: ????? ??? ????? ????? ?? ASP.NET : ?? ????? ??? ? ???? ????? ???? ?? ???? ????? ASP.NET ?? ?????

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

Add To Your Reader

My Links

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<May 2008>
SMTWTFS
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Comment Stats

DayTotal% of Total
Sunday 1866.8%
Monday 38614.2%
Tuesday 45416.7%
Wednesday 50518.5%
Thursday 53319.6%
Friday 49418.1%
Saturday 1666.1%
Total 2724100.0%

Hour1Total% of Total
12:00 AM 652.4%
1:00 AM 692.5%
2:00 AM 622.3%
3:00 AM 742.7%
4:00 AM 572.1%
5:00 AM 1043.8%
6:00 AM 1084.0%
7:00 AM 1585.8%
8:00 AM 1716.3%
9:00 AM 1475.4%
10:00 AM 1716.3%
11:00 AM 1816.6%
12:00 PM 1886.9%
1:00 PM 1696.2%
2:00 PM 1585.8%
3:00 PM 1324.8%
4:00 PM 1073.9%
5:00 PM 923.4%
6:00 PM 913.3%
7:00 PM 963.5%
8:00 PM 833.0%
9:00 PM 782.9%
10:00 PM 792.9%
11:00 PM 843.1%
Total 2724100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.58145
Monday 5.25341
Tuesday 4.33420
Wednesday 7.69638
Thursday 6.93610
Friday 5.48411
Saturday 5.30159
Total 5.872724

Hour1 Entry MadeAvg.Total
12:00 AM 5.0035
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 7.0035
8:00 AM 5.45109
9:00 AM 6.32278
10:00 AM 6.50247
11:00 AM 4.49184
12:00 PM 6.83328
1:00 PM 3.00111
2:00 PM 5.41222
3:00 PM 8.70287
4:00 PM 4.0589
5:00 PM 5.92154
6:00 PM 4.52113
7:00 PM 9.67174
8:00 PM 10.50147
9:00 PM 5.05111
10:00 PM 5.5066
11:00 PM 4.5732
Total 5.872724

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles