473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Authentication loop-hole?

In the design stage, so I don't have the ability to test this scenario at
the moment, so I would be grateful if someone could prove to me that the
following scenario does not exist...

The idea is that we will have one website with multiple URLs pointing to it.
For example www.mySite.com and another being www.theirSite.com.

There will be a common authentication database holding the role information
etc (in ASP.NET 2.x).

So, envisage the following scenario:

I log on to the site www.mySite.com and it immediately asks me to
authenticate myself by re-directing me to the log-on page. I put in my
credentials user="john" and password="somethingSecure". The system then
recognises me and issues me with a security token. It then re-directs me to
the web page www.mySite.com/editYourCompanysData.aspx.

Having come to that page, I can see all my sensitive company's data which I
can edit because I'm in the correct membership role.

I then edit the URL in my browser to now say
www.theirSite.com.editYourCompanysData.aspx.

My question is will the website now accept my security token and give me
access to their data or will it barf and force me to re-log on?

If anyone can answer this and provide any links to resources to back up
their answer then I'd be extremely grateful (I've failed to find this
information myself)

Thanks

Griff

Oct 6 '06 #1
2 1455
I log on to the site www.mySite.com and it immediately asks me to
authenticate myself by re-directing me to the log-on page. I put in my
credentials user="john" and password="somethingSecure". The system then
recognises me and issues me with a security token. It then re-directs me to
the web page www.mySite.com/editYourCompanysData.aspx.

I then edit the URL in my browser to now say
www.theirSite.com.editYourCompanysData.aspx.

My question is will the website now accept my security token and give me
access to their data or will it barf and force me to re-log on?
Depends on your setup. MySite.com and TheirSite.com should be set up to
autneticate using different realms / domains, so you should get prompted
again when switching sites. Also, you may be confusing authentication and
authorisation. Even if the two sites are using the same authentication realm
/ domain, the user 'john' will not be able to access secure pages in
theirsite.com because he should not have the role or permissions to.

For example, If the machine is in a domain, as are all the users of the two
sites, then you should have at least two active directory groups called e.g.
"Theirsite Admin Users" and "Yoursite Admin Users". Only the users who were
allowed in each of the website's protected sections would be in the selected
groups.
Oct 6 '06 #2
depends on how you are storing the authentication ticket. with standard
forms authentication it stored in a cookie. a cookie could not be shared
between the two domains. you will need to find a way to send the token from
one site to the other. typically this is done with a one time ticket passed
in the query string on the redirect. if you implement this correctly, then
the token can not be passed to a second site.

-- bruce (sqlwork.com)
"Griff" <ho*****@the.moonwrote in message
news:uL*************@TK2MSFTNGP02.phx.gbl...
In the design stage, so I don't have the ability to test this scenario at
the moment, so I would be grateful if someone could prove to me that the
following scenario does not exist...

The idea is that we will have one website with multiple URLs pointing to
it. For example www.mySite.com and another being www.theirSite.com.

There will be a common authentication database holding the role
information etc (in ASP.NET 2.x).

So, envisage the following scenario:

I log on to the site www.mySite.com and it immediately asks me to
authenticate myself by re-directing me to the log-on page. I put in my
credentials user="john" and password="somethingSecure". The system then
recognises me and issues me with a security token. It then re-directs me
to the web page www.mySite.com/editYourCompanysData.aspx.

Having come to that page, I can see all my sensitive company's data which
I can edit because I'm in the correct membership role.

I then edit the URL in my browser to now say
www.theirSite.com.editYourCompanysData.aspx.

My question is will the website now accept my security token and give me
access to their data or will it barf and force me to re-log on?

If anyone can answer this and provide any links to resources to back up
their answer then I'd be extremely grateful (I've failed to find this
information myself)

Thanks

Griff

Oct 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
1
by: Bryan Freeman | last post by:
I have an interesting forms authentication issue ... Our application has many co branded sites (ie. http://cobrand.application.com). These URLs actually point to the physical folder structure of...
9
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
1
by: dotCore | last post by:
Hi, FormsAuthentication.SetAuthCookie DOES NOT create an authentication ticket and add it to cookie collection. I am in an infinite loop of logins. See also this post which explains much better...
1
by: The Eeediot | last post by:
Hello, ASP.NET gurus! I have read many pages on setting up a login screen to access a number of web pages using Forms Authentication and I am still trying to wrap my brain around the whole thing. ...
4
by: david.moran | last post by:
Hi Our site is hosted at www.data-visualzation-software­.com and forms authentication works fine. We have just set up a redirect from www.apricot-software.com to this site and when this way is...
0
by: Vaibhav Shah | last post by:
Hi, Of late, we have been facing a very strange problem in working with crystal report in asp.net the code executes without any exception but as soon as the reportviewer is initialized with...
4
by: awebguynow | last post by:
My Auth code works locally but not on my host, and I'm debugging it to find out, why not. Except where noted, I'll be referring to my webhost's configuration. I'm using a .htaccess "AddHandler"...
3
by: kpg | last post by:
ASP.NET 2.0 I have an unusual situation dealing with forms authentication, not doubt brought on by how I have structured the application. The setup: Users enter the site from one of several...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.