Information stored on the internet may become available to unauthorized users who exploit security vulnerabilities. A common exploit involves a web site that includes two frames that a user may navigate to. One frame may select and cache an object in the other frame. When the one frame causes the other frame to navigate to another web site, the one frame may use the cached object to access unauthorized data in the other frame. The one frame may then upload the unauthorized data to the original web site.
For example, a hypertext markup language object includes a reference to a markup domain from which it was created. The object may be cached in one domain. During subsequent navigation to another web site, the markup domain associated with the object may change. The cached object may be exploited to access the contents of an inner document associated with the changed markup domain. An unauthorized user may exploit this security vulnerability to obtain information that is intended to be unavailable to the user.
The present invention is directed toward a method and system for validating access to a group of related elements. The group of elements may be associated with the same markup domain or separate domains when generated. The elements within the group include a reference to a security context associated with the markup domain. The security context is an identity associated with a web page when an element is created on the web page. The security context is accessed when a call is made to an element to authorize the call. An authorized call to an element is enabled such that the markup domain is navigated to a new web page. However, an unauthorized call is prevented or invalidated so that the navigation to the new web page is not permitted. Thus, objects that are cached from the old web page cannot be exploited to access unauthorized data associated with the new web page.
After the markup domain has been navigated to a new web page, the security context associated with the markup domain is invalidated. A new security context is generated and associated with the markup domain. The elements associated with the web page navigated from are inaccessible after navigation of the markup domain to the new web page. The association of the new security context with the markup domain prevents an unauthorized user from accessing any element that references the previous security context.
According to one aspect of the invention, a computer-implemented method validates access to a first element within a group of related elements. A security context is associated with each element within the group of related elements. Access to the first element is verified by comparing a security context associated with the first element with a security context associated with a second element that is requesting access to the first element. Access to the first element is invalidated when the security context associated with the first element does not match the security context associated with the second element.
According to another aspect of the invention, the security context associated with the second element is modified in response to navigating a markup page associated with the first element.
Briefly stated, a method and system for validating access to a group of related elements are described. The group of elements is associated with the same markup domain or separate domains when generated. The elements within the group include a reference to a security context associated with the markup domain. Calls to the elements may be validated against the security context. When a navigation to a new web page occurs, the markup domain navigated is associated with a new security context. The previous security context is modified such that any elements associated with it can no longer be used. The objects associated with the previous security context therefore become inaccessible because the checks against the security context before invoking an application program interface (API) on that object will no longer succeed. Accordingly, a previous security breach that allowed access to these objects is made secure by the present invention.
Illustrative Operating Environment
With reference to
Computing device 100 may have additional features or functionality. For example, computing device 100 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in
Computing device 100 also contains communication connections 116 that allow the device to communicate with other computing devices 118, such as over a network. Networks include local area networks and wide area networks, as well as other large scale networks including, but not limited to, intranets and extranets. Communication connection 116 is one example of communication media. Communication media may typically be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. The term computer readable media as used herein includes both storage media and communication media.
Validating Access to a Group of Related Objects
For purposes of this application, markup page refers to a document that provides the parameters for the layout of a navigable site associated with a domain within a computer network. Element refers to an item within a markup page that a user may access and perform operations upon. A security context is an identity associated with a markup domain when objects are created within the markup domain. The security context addresses the vulnerability of exploiting an object in a cache to access unauthorized information while navigating the markup domain.
In Scenario 1, window 200 hosts markup page 202. Markup page 202 is associated with a particular domain (e.g., domain A). A navigation occurs to new markup page 204 within the same domain (e.g., domain A).
In Scenario 2, window 210 hosts markup page 212. Markup page 212 is associated with a particular domain (e.g., domain A). A navigation occurs to a new markup page 214 in a different domain (e.g., domain B).
In Scenario 3, window 220 hosts markup page 222 and markup page 224. Markup page 224 may not be a different page from markup page 222, but may instead be a frame within markup page 222. For example, markup page 222 may be the topmost page in window 220, and markup page 224 is a lower level page in a frame within window 220. Markup page 222 is associated with a first domain (e.g., domain A) and markup page 224 is associated with a second domain (e.g., domain B). In another embodiment, both markup pages 222, 224 are associated with the same domain (e.g., domain A). In this scenario, the top markup page (e.g., 222) is navigated to new markup page 226 associated with the same domain (e.g., domain A).
In Scenario 4, window 230 hosts markup page 232 and markup page 234. Markup page 234 may not be a different page from markup page 232, but may instead be a frame within markup page 232. For example, markup page 232 may be the topmost page in window 230, and markup page 234 is a lower level page in a frame within window 230. Markup page 232 is associated with a first domain (e.g., domain A) and markup page 234 is associated with a second domain (e.g., domain B). In another embodiment, both markup pages 232, 234 are associated with the same domain (e.g., domain A). In this scenario, the top markup page (e.g., 232) is navigated to new markup page 236 associated with a different domain (e.g., domain C).
In Scenario 5, window 240 hosts markup page 242 and markup page 244. Markup page 244 may not be a different page from markup page 242, but may instead be a frame within markup page 242. For example, markup page 242 may be the topmost page in window 240, and markup page 244 is a lower level page in a frame within window 240. Markup page 242 is associated with a first domain (e.g., domain A) and markup page 244 is associated with a second domain (e.g., domain B).
In Scenario 6, window 250 hosts markup page 252 and markup page 254. Markup page 254 may not be a different page from markup page 252, but may instead be a frame within markup page 252. For example, markup page 252 may be the topmost page in window 250, and markup page 254 may be a lower level page in a frame within window 250. Both markup pages 252, 254 are associated with the same domain (e.g., domain A). In this scenario, the lower level page (e.g., 254) is navigated to new markup page 256 associated with a different domain (e.g., domain B).
Before navigation, markup page 252 may access markup page 254 through window 250 or via document objects. Markup page 252 caches an object within markup page 254. After navigation to domain B, markup page 252 retains access to the cached object in new markup page 256. The invention prevents use of the cached object to read data from markup page 256.
Scenario 6 is described in greater detail with respect to
After navigation of subframe 330 to subframe 340 within domain B, the configuration of the in-memory components is modified, as shown in the lower portion of
Security checks are followed when accessing element 326 such that only authorized users in domain B are allowed to access element 326 from any element in markup page 310. However, the link between element 324 and element 326 (shown as path 350) has not been removed or placed under similar security, such that element 326 may be accessed using the object in the local cache (i.e., element 324) via element 320 in markup page 310. The presence of the object in the local cache permits unauthorized access to element 326 along path 350 and all associated elements (e.g., any elements associated with element 326) within subframe 340 without encountering any security checks. Thus, the security vulnerability of element 324 stored in the local cache may be exploited to gain unauthorized access to elements within domain B.
Markup page 420 is hosted by the network site and is associated with domain A. Elements 430-434 are located at markup page 420 in domain A. Elements 432, 434 are located within subframe 450 in domain A. Element 432 includes web page information associated with domain A. Element 434 is a cached object that is stored in a local cache in markup page 420 in domain A. Elements 430-434 may be any item that can be individually selected and manipulated during network navigation. In another embodiment, elements 430-434 may include nested frames created from a markup page.
Security context 1410 is associated with element 430 in markup page 420. Security context 2412 is associated with elements 432, 434 in subframe 450. Elements that could be created in the context of a markup domain associated with markup page 420 may inherit the same security context. If a new navigable markup page is created, it is assigned a unique security context.
Security context 1410 provides context for actions taken on markup page 420. Security context 2412 provides context for actions taken on subframe 450. For example, security context 2412 is accessed to determine if an action taken on subframe 450 is permitted. If the action is not permitted, the action is invalidated. In one embodiment, when element 434 calls to element 432 along path 460, the call is directed to security context 2412. Any time an element is called through an interface, the security context associated with the element is accessed to determine if the user is authorized to initiate execution of the call. Security context 2412 enables or disables the call depending on whether the user who is navigating subframe 450 is authorized to access element 432 from element 434. For example, the call is disabled when an unauthorized user attempts to access element 432 from element 434 via element 430 in markup page 420 if markup page 420 is in a different domain than element 432.
If the user requesting access to element 432 is authorized, the call to element 432 is enabled. A new subframe associated with element 432 is navigated when the call to element 432 is a navigation to different markup domain (e.g., domain B). The lower portion of
Security context 3414 is created and associated with element 436 when subframe 455 is navigated in domain B. Security context 3414 is associated with all subsequent elements created in subframe 455. In one embodiment, security context 3414 may be created even if subframe 455 is located in the same domain as subframe 450 (e.g., domain A). The creation of security context 3414 prevents an unauthorized user from accessing any object that references security context 3414. For example, a user who is only authorized to access objects associated with security context 2412 is not permitted to access objects associated with security context 3414. Execution of a call to any object associated with security context 3414 is denied because security context 2412 is invalidated with regard to elements associated with security context 3414.
After navigation of subframe 455, path 460 is invalidated by the creation of security context 3414 because element 436 is associated with security context 3414. Elements associated with one security context may not access elements associated with a different security context. Therefore, an unscrupulous user with access to the object in a local cache can no longer exploit the security vulnerability described in reference to
The security context may have a large number of associated elements. All of the elements associated with the security context may be easily invalidated by modifying the security context. Thus, a large group of elements may be rendered inaccessible without having to reference the objects individually because all the elements are linked to the same security context.
Many elements may be created that are associated with one markup page. Some elements may include a direct reference to the markup page. Thus, it is unnecessary to cache the security context on such elements because the associated security context is included with the original markup page, which may be easily referred to by such elements. A direct reference to the markup page also provides an indirect reference to the corresponding security context.
For some elements, providing a reference to the markup page may not be secure, or it may not be possible to reference the markup page at all times. In these cases, the security context remains linked to the element such that the element may be locally cached safely. Every element remains associated with the correct security context whether the security context is a local cache or a reference to the markup page.
The security context of the present invention as described in reference to
Proceeding to block 510, a call is made to one of the elements. Moving to block 520, the security context associated with the element is accessed by the scripting engine. The security context is accessed whenever an element is called through an interface.
Advancing to decision block 530, a determination is made whether the call to the element is authorized. The determination is performed by inspecting the security context associated with the element. If the security context permits authorization of the call, processing moves to block 550. If the call is not authorized, processing continues at block 540.
Transitioning to block 540, the call to the element is disabled. In one embodiment, an “access denied” error occurs when a subsequent unauthorized call is made to the element along the same navigation path. The process then terminates at an end block.
Continuing to block 550, the call to the element is enabled. Moving to decision block 560, a determination is made whether the call results in web page navigation. If the call results in web page navigation, processing continues at block 580. If the call does not result in web page navigation, processing continues at block 570.
Proceeding to block 570, the call is executed without navigating to a web page. For example, reading a title of a page is a type of call in which the title element is protected but web navigation is not required. The process then terminates at the end block.
Moving to block 580, the new page associated with the markup domain is navigated. In one embodiment, the new page that is navigated may be a subframe or a web page located in the same domain as the markup domain.
Advancing to decision block 590, a determination is made whether the new web page is located in a different domain than the markup domain. If the new web page is located in a different domain than the markup domain, processing continues at block 595. If the new web page is located in the same domain as the markup domain, processing terminates at the end block.
Transitioning to block 595, the security context associated with the element is invalidated. In one embodiment, the security contexts of the elements that could navigate the markup domain are also invalidated. In another embodiment, the security context is invalidated by modifying the security context to create a new security context associated with the element. Modifying the security context invalidates all associated elements such that the new security context prevents an unauthorized user from accessing any element that references the previous security context. The process then terminates at the end block.
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.
Number | Name | Date | Kind |
---|---|---|---|
5805884 | Sitbon et al. | Sep 1998 | A |
6185567 | Ratnaraj et al. | Feb 2001 | B1 |
6272485 | Sragner | Aug 2001 | B1 |
6275868 | Fraley et al. | Aug 2001 | B1 |
6327608 | Dillingham | Dec 2001 | B1 |
6421729 | Paltenghe et al. | Jul 2002 | B1 |
6463534 | Geiger et al. | Oct 2002 | B1 |
6546397 | Rempell | Apr 2003 | B1 |
6567918 | Flynn et al. | May 2003 | B1 |
6686932 | Rath et al. | Feb 2004 | B2 |
6717593 | Jennings | Apr 2004 | B1 |
6732109 | Lindberg et al. | May 2004 | B2 |
6748418 | Yoshida et al. | Jun 2004 | B1 |
6792459 | Elnozahy et al. | Sep 2004 | B2 |
6874084 | Dobner et al. | Mar 2005 | B1 |
6904453 | Shuster et al. | Jun 2005 | B2 |
6934757 | Kalantar et al. | Aug 2005 | B1 |
6950983 | Snavely | Sep 2005 | B1 |
6959393 | Hollis | Oct 2005 | B2 |
6961929 | Pelegri-Llopart et al. | Nov 2005 | B1 |
6985953 | Sandhu et al. | Jan 2006 | B1 |
6993596 | Hinton | Jan 2006 | B2 |
7000107 | Hewett et al. | Feb 2006 | B2 |
7076786 | Burd et al. | Jul 2006 | B2 |
7143195 | Vange | Nov 2006 | B2 |
7143347 | Su | Nov 2006 | B2 |
7225225 | Kuki et al. | May 2007 | B2 |
7293034 | Paya et al. | Nov 2007 | B2 |
7340604 | Hewett et al. | Mar 2008 | B2 |
7359976 | Ross et al. | Apr 2008 | B2 |
7437558 | Fenton et al. | Oct 2008 | B2 |
7458096 | Knouse et al. | Nov 2008 | B2 |
7467399 | Nadalin et al. | Dec 2008 | B2 |
7469302 | Whittle et al. | Dec 2008 | B2 |
7487262 | Cardina et al. | Feb 2009 | B2 |
7735094 | Varshney | Jun 2010 | B2 |
7802238 | Clinton | Sep 2010 | B2 |
7809785 | Appleton et al. | Oct 2010 | B2 |
7912924 | Cantrell | Mar 2011 | B1 |
20010051885 | Nardulli et al. | Dec 2001 | A1 |
20020007317 | Callaghan et al. | Jan 2002 | A1 |
20020116407 | Negishi et al. | Aug 2002 | A1 |
20020124172 | Manahan | Sep 2002 | A1 |
20020161835 | Ball et al. | Oct 2002 | A1 |
20020184491 | Morgan et al. | Dec 2002 | A1 |
20030023873 | Ben-Itzhak | Jan 2003 | A1 |
20030028762 | Trilli et al. | Feb 2003 | A1 |
20030093666 | Millen et al. | May 2003 | A1 |
20030159063 | Apfelbaum et al. | Aug 2003 | A1 |
20040015580 | Lu et al. | Jan 2004 | A1 |
20040103200 | Ross et al. | May 2004 | A1 |
20040128546 | Blakley, III et al. | Jul 2004 | A1 |
20040139314 | Cook et al. | Jul 2004 | A1 |
20040210536 | Gudelj et al. | Oct 2004 | A1 |
20040260754 | Olson et al. | Dec 2004 | A1 |
20050044197 | Lai | Feb 2005 | A1 |
20050050547 | Whittle et al. | Mar 2005 | A1 |
20050060427 | Phillips et al. | Mar 2005 | A1 |
20050108353 | Yamamoto | May 2005 | A1 |
20050174974 | Sonntag et al. | Aug 2005 | A1 |
20050187895 | Paya | Aug 2005 | A1 |
20050223412 | Nadalin et al. | Oct 2005 | A1 |
20050259656 | Dollar et al. | Nov 2005 | A1 |
20050268100 | Gasparini et al. | Dec 2005 | A1 |
20050278792 | Ramani et al. | Dec 2005 | A1 |
20060010134 | Davis | Jan 2006 | A1 |
20060053276 | Lortz et al. | Mar 2006 | A1 |
20060053293 | Zager et al. | Mar 2006 | A1 |
20060143688 | Futoransky | Jun 2006 | A1 |
20060218403 | Sauve et al. | Sep 2006 | A1 |
20060221941 | Kishinsky et al. | Oct 2006 | A1 |
20070006148 | Varshney | Jan 2007 | A1 |
20070050854 | Cooperstein et al. | Mar 2007 | A1 |
20070074169 | Chess et al. | Mar 2007 | A1 |
20070107057 | Chander et al. | May 2007 | A1 |
20070113282 | Ross | May 2007 | A1 |
20070136809 | Kim et al. | Jun 2007 | A1 |
20070150603 | Crull | Jun 2007 | A1 |
20070162394 | Zager et al. | Jul 2007 | A1 |
20070192494 | Yamakawa et al. | Aug 2007 | A1 |
20070234060 | Tsubono | Oct 2007 | A1 |
20070256003 | Wagoner et al. | Nov 2007 | A1 |
20070282951 | Selimis | Dec 2007 | A1 |
20070288247 | Mackay | Dec 2007 | A1 |
20080034425 | Overcash et al. | Feb 2008 | A1 |
20080059634 | Commons | Mar 2008 | A1 |
20080133540 | Hubbard et al. | Jun 2008 | A1 |
20080263086 | Klemba et al. | Oct 2008 | A1 |
20080298342 | Appleton et al. | Dec 2008 | A1 |
20080313648 | Wang et al. | Dec 2008 | A1 |
20090037806 | Yang et al. | Feb 2009 | A1 |
20090048915 | Chan | Feb 2009 | A1 |
20090070663 | Fan et al. | Mar 2009 | A1 |
20090070869 | Fan et al. | Mar 2009 | A1 |
20090119769 | Ross et al. | May 2009 | A1 |
20090125595 | Maes | May 2009 | A1 |
20090132713 | Dutta et al. | May 2009 | A1 |
20090161132 | Sato | Jun 2009 | A1 |
20090183227 | Isaacs et al. | Jul 2009 | A1 |
20100017461 | Kokkevis et al. | Jan 2010 | A1 |
20100023884 | Brichford et al. | Jan 2010 | A1 |
20100100823 | Ewe et al. | Apr 2010 | A1 |
20100125895 | Shull et al. | May 2010 | A1 |
20100262780 | Mahan et al. | Oct 2010 | A1 |
20100281537 | Wang et al. | Nov 2010 | A1 |
20100306642 | Lowet et al. | Dec 2010 | A1 |
20110015917 | Wang et al. | Jan 2011 | A1 |
Number | Date | Country |
---|---|---|
WO-2005091107 | Sep 2005 | WO |
Number | Date | Country | |
---|---|---|---|
20050278792 A1 | Dec 2005 | US |