Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Security problem/issue ASP.Net

 
Thread Tools Search this Thread
Old 02-07-2005, 04:03 PM   #1
Default Security problem/issue ASP.Net


Hello,
I'm facing a big problem in an Asp.Net application, when
users connect the application, I store their user
informations into the session object (session_start).
But when 2 users click (nearly) at the same time on the
page myprofile, the first user sees his profile (the
correct one) and the second sees the profile of the first
(very bad).
the "HttpContext.Current.User.Identity" is not the
expected one.
web.config entries:
<authentication mode="Windows"/>
<identity impersonate="false"/>
<authorization>
<allow users="*"/>
</authorization>
<sessionState mode="InProc" cookieless="false"
timeout="20"/>
Any idea ?
Many thanks for your help.
Gilles


Gilles
  Reply With Quote
Old 02-07-2005, 04:19 PM   #2
Kevin Spencer
 
Posts: n/a
Default Re: Security problem/issue ASP.Net
HttpContext.Current.User.Identity represents the currently logged-in user.
If the web disallows anonymous authentication, this will (probably) be a
different user with each client. If anonymous browsing is allowed, the user
will always be the Anonymous Internet User account.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Gilles" <> wrote in message
news:24b601c50d2e$a23116f0$...
> Hello,
> I'm facing a big problem in an Asp.Net application, when
> users connect the application, I store their user
> informations into the session object (session_start).
> But when 2 users click (nearly) at the same time on the
> page myprofile, the first user sees his profile (the
> correct one) and the second sees the profile of the first
> (very bad).
> the "HttpContext.Current.User.Identity" is not the
> expected one.
> web.config entries:
> <authentication mode="Windows"/>
> <identity impersonate="false"/>
> <authorization>
> <allow users="*"/>
> </authorization>
> <sessionState mode="InProc" cookieless="false"
> timeout="20"/>
> Any idea ?
> Many thanks for your help.
> Gilles





Kevin Spencer
  Reply With Quote
Old 02-07-2005, 04:28 PM   #3
 
Posts: n/a
Default Re: Security problem/issue ASP.Net
Thanks for your quick reply,

The Web Server is set to:
"Integrated Windows authentication"
and "Anonymous access" is disabled.
What else can I do to avoid this session mix ?

Thanks

Gilles
>-----Original Message-----
>HttpContext.Current.User.Identity represents the

currently logged-in user.
>If the web disallows anonymous authentication, this will

(probably) be a
>different user with each client. If anonymous browsing is

allowed, the user
>will always be the Anonymous Internet User account.
>
>--
>HTH,
>
>Kevin Spencer
>Microsoft MVP
>..Net Developer
>Neither a follower nor a lender be.
>
>"Gilles" <> wrote in

message
>news:24b601c50d2e$a23116f0$...
>> Hello,
>> I'm facing a big problem in an Asp.Net application, when
>> users connect the application, I store their user
>> informations into the session object (session_start).
>> But when 2 users click (nearly) at the same time on the
>> page myprofile, the first user sees his profile (the
>> correct one) and the second sees the profile of the

first
>> (very bad).
>> the "HttpContext.Current.User.Identity" is not the
>> expected one.
>> web.config entries:
>> <authentication mode="Windows"/>
>> <identity impersonate="false"/>
>> <authorization>
>> <allow users="*"/>
>> </authorization>
>> <sessionState mode="InProc" cookieless="false"
>> timeout="20"/>
>> Any idea ?
>> Many thanks for your help.
>> Gilles

>
>
>.
>



  Reply With Quote
Old 02-07-2005, 05:41 PM   #4
Kevin Spencer
 
Posts: n/a
Default Re: Security problem/issue ASP.Net
> The Web Server is set to:
> "Integrated Windows authentication"
> and "Anonymous access" is disabled.
> What else can I do to avoid this session mix ?


I'm not sure. I haven't had to deal with this issue before. But if I'm
reading the SDK correctly, you need to set the "identity impersonate"
attribute to true. From what I've read, this enables "per request"
impersonation.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

<> wrote in message
news:142e01c50d32$01c60e10$...
> Thanks for your quick reply,
>
> The Web Server is set to:
> "Integrated Windows authentication"
> and "Anonymous access" is disabled.
> What else can I do to avoid this session mix ?
>
> Thanks
>
> Gilles
>>-----Original Message-----
>>HttpContext.Current.User.Identity represents the

> currently logged-in user.
>>If the web disallows anonymous authentication, this will

> (probably) be a
>>different user with each client. If anonymous browsing is

> allowed, the user
>>will always be the Anonymous Internet User account.
>>
>>--
>>HTH,
>>
>>Kevin Spencer
>>Microsoft MVP
>>..Net Developer
>>Neither a follower nor a lender be.
>>
>>"Gilles" <> wrote in

> message
>>news:24b601c50d2e$a23116f0$...
>>> Hello,
>>> I'm facing a big problem in an Asp.Net application, when
>>> users connect the application, I store their user
>>> informations into the session object (session_start).
>>> But when 2 users click (nearly) at the same time on the
>>> page myprofile, the first user sees his profile (the
>>> correct one) and the second sees the profile of the

> first
>>> (very bad).
>>> the "HttpContext.Current.User.Identity" is not the
>>> expected one.
>>> web.config entries:
>>> <authentication mode="Windows"/>
>>> <identity impersonate="false"/>
>>> <authorization>
>>> <allow users="*"/>
>>> </authorization>
>>> <sessionState mode="InProc" cookieless="false"
>>> timeout="20"/>
>>> Any idea ?
>>> Many thanks for your help.
>>> Gilles

>>
>>
>>.
>>





Kevin Spencer
  Reply With Quote
Old 02-07-2005, 06:02 PM   #5
Gilles
 
Posts: n/a
Default Re: Security problem/issue ASP.Net
Thanks Kevin,

I'll try that tomorrow (it's 19h00 here in Belgium ),
but I'm quite sure I tried that
some time ago and it didn't work...
I'll let you informed.

Gilles


>-----Original Message-----
>> The Web Server is set to:
>> "Integrated Windows authentication"
>> and "Anonymous access" is disabled.
>> What else can I do to avoid this session mix ?

>
>I'm not sure. I haven't had to deal with this issue

before. But if I'm
>reading the SDK correctly, you need to set the "identity

impersonate"
>attribute to true. From what I've read, this enables "per

request"
>impersonation.
>
>--
>HTH,
>
>Kevin Spencer
>Microsoft MVP
>..Net Developer
>Neither a follower nor a lender be.
>
><> wrote in message
>news:142e01c50d32$01c60e10$...
>> Thanks for your quick reply,
>>
>> The Web Server is set to:
>> "Integrated Windows authentication"
>> and "Anonymous access" is disabled.
>> What else can I do to avoid this session mix ?
>>
>> Thanks
>>
>> Gilles
>>>-----Original Message-----
>>>HttpContext.Current.User.Identity represents the

>> currently logged-in user.
>>>If the web disallows anonymous authentication, this will

>> (probably) be a
>>>different user with each client. If anonymous browsing is

>> allowed, the user
>>>will always be the Anonymous Internet User account.
>>>
>>>--
>>>HTH,
>>>
>>>Kevin Spencer
>>>Microsoft MVP
>>>..Net Developer
>>>Neither a follower nor a lender be.
>>>
>>>"Gilles" <> wrote in

>> message
>>>news:24b601c50d2e$a23116f0$.. .
>>>> Hello,
>>>> I'm facing a big problem in an Asp.Net application, when
>>>> users connect the application, I store their user
>>>> informations into the session object (session_start).
>>>> But when 2 users click (nearly) at the same time on the
>>>> page myprofile, the first user sees his profile (the
>>>> correct one) and the second sees the profile of the

>> first
>>>> (very bad).
>>>> the "HttpContext.Current.User.Identity" is not the
>>>> expected one.
>>>> web.config entries:
>>>> <authentication mode="Windows"/>
>>>> <identity impersonate="false"/>
>>>> <authorization>
>>>> <allow users="*"/>
>>>> </authorization>
>>>> <sessionState mode="InProc" cookieless="false"
>>>> timeout="20"/>
>>>> Any idea ?
>>>> Many thanks for your help.
>>>> Gilles
>>>
>>>
>>>.
>>>

>
>
>.
>



Gilles
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) msandlana Software 0 04-25-2008 06:37 AM
Computer Security Information and What You Can Do To Keep Your SystemSafe! Ann.Anderson.group.com@gmail.com A+ Certification 0 12-06-2007 01:55 AM
Computer Security aldrich.chappel.com.use@gmail.com A+ Certification 0 11-27-2007 02:11 AM
Computer Security Information (Free Articles and eBooks) aditya.jaiswal.com.use@gmail.com DVD Video 0 10-10-2007 04:53 AM
I need help with the Security Tab in Asp.net Steven Moore Software 0 07-07-2006 02:42 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46