Re: Authorization question, w/ "Windows" authentication mode
- From: "Joe Kaplan \(MVP - ADSI\)" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 12:42:17 -0500
That's exactly right. Essentially, things like cookies and query strings
need to be treated as input. If you want to ensure that they have not been
tampered with, then you typically want to encrypt (which doesn't ensure
tamper resistance, but it make it difficult for a hacker without the key to
create valid data that has been altered) and/or use signatures/MACs (which
do provide tamper resistance, but do not provide privacy of the data).
The System.Security.Cryptography namespace includes features for encrypting,
signing and adding MACs. You would probably want to find some samples of
how to use these things rather than figuring out how to code them yourself,
as there are some pitfalls and many developers struggle to implement these
things correctly.
Note that this is not absolutely required, but you can't really consider
your system secure if you are taking input from the user that has not been
properly validated. That is web security 101.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<matt@xxxxxxxxxxxxxx> wrote in message
news:1151593316.190807.24320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Joe Kaplan (MVP - ADSI) wrote:
Yes, that is normal. To avoid a database hit, you can use the cache or
use
session state or perhaps a cookie (if it is properly MACed or encrypted
to
prevent tampering).
thanks, joe. ill likely store them in the session or a cookie. i did a
quick google on MAC -- is this message authority checking? an article
(non-.NET) mentioned an MD5 algorythm.. know of any nifty .NET code for
this?
thanks!
matt
.
- References:
- Authorization question, w/ "Windows" authentication mode
- From: matt
- Re: Authorization question, w/ "Windows" authentication mode
- From: Joe Kaplan \(MVP - ADSI\)
- Re: Authorization question, w/ "Windows" authentication mode
- From: matt
- Authorization question, w/ "Windows" authentication mode
- Prev by Date: Re: Authorization question, w/ "Windows" authentication mode
- Next by Date: Re: Authenticate newly created Member
- Previous by thread: Re: Authorization question, w/ "Windows" authentication mode
- Next by thread: Re: Authorization question, w/ "Windows" authentication mode
- Index(es):
Relevant Pages
|