Home > Articles > Security > Network Security

  • Print
  • + Share This
Like this article? We recommend

Risks of Passport

In the following two sections, we look at some practical risks of the Passport protocol and some specific attacks.

Practical Matters

In this section, we look at some security issues related to the chosen architecture and protocols. These are meant to highlight some of the risks of using Passport, without discussing specific attacks. Those are covered in the following section.

User Interface

In security systems, the user interface is one of the most crucial and frequently inadequate parts. For example, any merchant site that uses Passport displays a Passport signout icon that is supposed to remove Passport cookies. One of the most popular Passport services currently deployed is the Hotmail e-mail service from Microsoft. We set up some Hotmail accounts and did some experimentation. One thing we discovered is that, in addition to the Passport signout icon, there is also a Hotmail logout option on the page. So, what does this mean to a user? Presumably, the Hotmail logout button is used to remove the Hotmail credentials, while the Passport signout button is used to remove the Passport credentials to all services. While this may be clear to computer security experts, it is unlikely that the average nonexpert computer user will understand the distinction. A user making the mistaken, but reasonable, presumption that the Hotmail Logout button will remove Passport credentials could easily walk away from a browser still able to authenticate on behalf of the user.

A curious interaction between Netscape's browsers and the Passport signout process demonstrates how difficult it is to design a user interface that makes sense and works correctly. After signing in to Hotmail with our Passport credentials, we clicked on the Passport signout icon. The redirect occurred, and our screen said that the Hotmail credentials were being removed. The point was made with a page that said Passport credentials were being removed and that displayed a check mark next to the Hotmail service. We were then redirected to a generic page with links, news stories, and shopping opportunities. One of the links on that page was to Hotmail. When we clicked on that link, we found ourselves back in our Hotmail account, without reauthenticating. We tried this on several different machines. It turns out that regardless of whether we clicked on the Passport signout button or the Hotmail logout button, the message that we were logged out appeared, but, in reality, we were not logged out. We tried this in Internet Explorer, and the logout was successful. There is something about the interaction of Passport and Netscape that invalidates the Passport logout procedure (at the time of this writing).

The risk of this flaw in Passport on the Netscape platform is clear. Imagine a user reading Hotmail e-mail from a public browser. When finished, the user clicks the signout button and is told that the credentials have been removed and that he is signed out from the account. The user confidently walks away from the machine. Then, when another user steps up to that machine and goes to Hotmail, he is automatically logged into that account.

It turns out that the flaw that we discovered was a problem with the Microsoft Passport server when running Netscape with the option to only return cookies to the server from which they came. We pointed out this flaw to Microsoft. Microsoft indicated that they were already aware of the flaw, and it was fixed that same day. Nonetheless, the problem makes an important point: The Passport user interface indicated that the signout process had succeeded without ensuring that it had. The value of the data maintained by Passport (its users' identities) turns this otherwise relatively minor and obscure user interface gaffe into a potentially dangerous flaw.

Key Management

In this section, we identify areas of potential concern with regard to the usage of keys in Passport. The Passport protocol requires that the Passport server share triple DES keys with each merchant. The keys are used to encrypt information transferred from Passport to the merchants in redirect messages. These keys must be generated securely, (that is, randomly) and assigned out of band. Many systems have been broken because poor randomness was used to generate keys.3 It is a difficult problem that requires careful attention.

Assigning the secret keys out of band is a nontrivial task. The mechanism for transferring keys is not stated in the current version of the specification. Ideally, these keys are transferred by physical mail or over the phone. The intuitive solution, to transfer the keys over an SSL connection, requires authentication of the merchant in some way and is likely to lead to potential breaches.

Passport encrypts information for itself and stores the information in Passport cookies on client machines. A single key is used to encrypt all of the cookies. This represents an unnecessary risk of exposure of that key. A better solution is to use a master key to generate a unique key per client. This is accomplished as follows: Using the master key that is currently used to encrypt cookies, generate a unique key per client by encrypting the client address with the master key, and using the resulting ciphertext as the encryption key for that client. Thus, the master key is used only as a key encryption key. If an individual key is compromised, Passport cookies on other clients are not directly vulnerable.

To illustrate, take three clients, CLIENT_1, CLIENT_2, and CLIENT_3, and say that the passport master key for storing keys in the browsers is MK. Assume that CLIENT_n represents the IP address of client n. To store a cookie on client CLIENT_1, Passport computes K_1 = 3DES(MK, CLIENT_1) and uses K_1 to encrypt the cookie that is stored on CLIENT_1. Likewise, Passport computes K_2 = 3DES(MK, CLIENT_2) and K_3 = 3DES(MK, CLIENT_3). Now, if Passport later receives a cookie from CLIENT_n, it first uses MK to compute the key for that host and then decrypts the cookie. Of course, this solution would not work for clients whose IP address changes frequently, so perhaps using the domain name is a better idea. The main point is that a compromise of one of the keys does not compromise cookies stored on other hosts.

Since triple DES is used, the three keys needed can be obtained by encrypting the client address with each of the three keys in the master key in turn and using the resulting three ciphertexts as the triple DES keys.

Central Point of Attack

As with all single-sign-on systems, Passport establishes a service trusted by all others to make authoritative decisions about the authenticity of a user. Whereas in traditional Web authentication each merchant is responsible for safeguarding the authentication information of customers, all data is centralized in Passport. Compromise of this central service would be particularly disastrous. Besides authentication data, the Passport login service maintains consumer profile information on all registered users. Storing this information in a central location, while convenient, makes the server an extremely attractive target for attack, both for denial-of-service and for unauthorized access. The centralized service model is antithetical to the distributed nature of the Internet that has made it so robust and so popular.

The effects of a denial-of-service attack on the login server are particularly acute. Obviously, the usefulness of a system like Passport increases in direct proportion to the number of merchants who subscribe. But as the number of merchants supporting the service grows, the effects of an outage (deliberate or accidental) increase. An operator of a large online shopping site not affiliated with Passport might see a significant increase in traffic (and hence income) by making it impossible (or even difficult) for Passport users to access their Wallet and Passport. The unscrupulous competitor might accomplish this by simply flooding the Passport site with bogus profile registrations or logins.

The usual response to such problems of service availability is to replicate the service sufficiently to make catastrophic failure unlikely. No information is provided on how the system could handle the fundamental problems of key distribution and database replication in scale. Furthermore, replicating the service would require multiple copies of the secret keys shared with the merchant and the master secret key of Passport, thus increasing the exposure of those keys to risks of compromise.

One specific denial-of-service attack that exists is due to the fact that single signon tokens are stored as cookies in the browsers. An active attacker can impersonate the Passport server and delete cookies at will on the clients. Furthermore, attacks such as the Cookie Monster bug (see http://help.netscape.com/kb/consumer/19981231-1.html and http://homepages.paradise.net.nz/~glineham/cookiemonster.html) for domain names outside of .com, .org, .gov, .edu, .net, and .mil could easily overwrite merchant cookies on any client.

Cookies and JavaScript

The Passport whitepaper describes two Web technologies used in support of Passport. Cookies are used to store encrypted credential information in the browsers, and JavaScript is used to "make certain transactions more efficient (fewer redirects) and also to enable co-branding for participants on most centralized Web pages." According to the whitepaper, JavaScript may be disabled without significantly impairing the function of Passport (the system is said to "gracefully degrade"), but the system will not function without cookies.

Usually, the danger with cookies is limited to the exposure of sensitive cookie payloads to unintended recipients. Because the Passport cookie contains sensitive data, the system encrypts these cookies using triple DES (as described above). Passport cookies, though, are also proofs of authentication whose lifetimes are determined only by the lifetime of the Web browser and the (encrypted) time window in the cookie. On a public machine, a user who forgets to log out of a Passport account could leave valid authentication tokens behind on the machine for any user to recover.

The most important problems, however, with cookies and JavaScript are more social than technological. Regardless of their actual value or security, these technologies have been shown to compromise user privacy. Dictating (or even strongly recommending) the use of technologies that are not felt to be trustworthy in a system whose purpose is to establish trust can undermine significantly the perceived value of that system.

Persistent Cookies

Passport leaves authenticators, in the form of browser cookies on the client machine. As the whitepaper states, "This option keeps a consumer signed in to Passport at all times on that computer even if the consumer disconnects from the Internet, closes the browser, or turns off the computer." The idea is to have a persistent authenticator so that users are not required to retype their passwords. The Passport server does not have to reissue credentials if the cookie has not expired yet. As mentioned in the introduction, this is reminiscent of single signon in Kerberos.

Kerberos uses tickets, which are encrypted credentials, to establish continuous authentication within a specified amount of time, without requiring a return trip to the authentication server. However, Passport is lacking one of the fundamental properties of single signon with tickets. Namely, there is no concept of an authenticator. In Kerberos, the client must send an authenticator that proves knowledge of the key inside the ticket. To accomplish this, the client simply encrypts a timestamp. If the timestamp can be decrypted, the client must have used the correct key. This prevents theft and misuse of a ticket found lying on a machine. In Passport, where cookies stand in for tickets, possession of the cookie is all that is necessary to impersonate the valid user of that cookie. No further proof is required. Furthermore, the breach is undetected, and the attacker gets unlimited use of the victim's authentication information and wallet. This is especially dangerous if a user uses Passport on a public machine, or if the user's machine is broken into. Given the recent surge in e-mail viruses that compromise integrity and privacy, it is not unreasonable to assume that attackers may get access to a user's cookie file.

Automatic Credential Assignment

To demonstrate the ability of Passport to scale, all of Microsoft's Hotmail accounts were automatically moved on top of Passport. In a sense, every Hotmail user ID and password became Passport credentials, and when users log into Hotmail, they actually run the Passport protocol, with the Hotmail server acting as the merchant. Unfortunately, Hotmail has been fraught with security problems. One compromise allowed an attacker to log into any Hotmail account without knowing the password (see http://www.zdnet.com/zdnn/stories/news/0,4586,2323960,00.html). This presents a problem if users use their Hotmail credentials, which are already automatically usable as Passport credentials, to shop online with other merchants. Any compromised account, and, for that matter, any future compromise of Hotmail, could result in abuse of their account at these other merchants.

Attacks

In this section, we look at some specific attacks on the Passport protocol that can result in compromise of user credentials and wallet information.

Bogus Merchant

The bogus merchant threat is probably the weakest aspect of Passport. Imagine that users get accustomed to using Passport. They enjoy the convenience of single signon and wallet services, while trusting that the service is secure. Perhaps the first time that they use the service and authenticate to the Passport server, they actually bother to check the certificate in the SSL connection. It is unlikely that they will do this. It is even more unlikely that they will continue to check this certificate every time they return.

Now, to attack the system, a merchant sets up a phony Web store, selling something attractive. In addition, the attacker obtains a certificate for a domain he has set up, called pasport.com. Notice that pasport.com is an incorrect spelling of passport.com. The attacker must convince some legitimate certificate authority to certify his use of the domain name. Given the aforementioned quantity of root certification authorities, the existence of one vulnerable to deception seems likely. The attacker sets up his Web site with all of the Passport images that would appear on a legitimate Passport customer site. When the user visits the phony Web site, the server simulates a redirect to pasport.com, and the user is prompted for his credentials on a page that looks exactly like the legitimate Passport server. The user is in the habit of filling this out every once in a while, so he does not notice the misspelled URL or check the certificate. Even if he did check the certificate, he might not notice the misspelling. In practice, any URL, even one that does not resemble the word "passport" would probably work as well.

After the user fills in all of his information and submits it, the bogus Web site can proceed to process the request any way the attacker wants. The important thing to note is that the attacker has obtained the user's valid authentication information, and he can now authenticate to Passport on behalf of the user, use wallet services, sell the credentials, or exploit them any way he pleases.

The fundamental problem is that users tend to inherently trust the Web, and services such as Passport serve to increase that confidence. However, by simply simulating a valid merchant, an attacker can abuse this confidence to bypass the entire system.

Active Attack

An attacker with access to the network between the client's Web browser and the merchant server (and able, therefore, to rewrite packets passing between the two hosts) can take advantage of this access to achieve the same result described above while permitting the client to interact normally with the merchant site. Such access is not prohibitively difficult to obtain. Large ISPs concentrate the traffic of thousands of users through a fairly small set of routers and servers. Obtaining unauthorized access to one of these hosts interposes the attacker between these users and all services they wish to access. Any traffic passing through such a compromised host could potentially then be read and rewritten.

As before, this attack makes use of the fact that users are unlikely to check the contents of URLs or certificates except under extraordinary circumstances (such as when the Web browser complains of a mismatch between the certificate and server URL). The attack also relies on the attacker's ability to identify when the Passport authentication process begins. This is fairly simple. Imagine a client communicating with a merchant server, using a login service at www.passport.com. The attacker, waiting between the client and merchant site, watches for an HTTP redirect to http://www.passport.com. The merchant site is required to perform this redirection at the beginning of a Passport session, and the redirection is not protected by SSL. Seeing this redirection, the attacker intercepts the packet and rewrites the URL in the redirection to a previously established bogus Passport server, perhaps again making use of creative domain names and legitimate certificates to make the service appear genuine. This server then acts as a proxy between the client and http://www.passport.com, and between the client and merchant site, impersonating the Passport service to the client and vice versa while rewriting all URLs and HTTP redirects to force traffic through the proxy. Passport's use of SSL cannot at this point prevent the proxy from reading and possibly rewriting each packet, as all SSL connections are terminated on the proxy, and the user is unlikely to notice the proxy acting on her behalf.

While an intruder who accomplishes this attack cannot read the contents of the encrypted cookies (and so cannot directly extract credit card or personal information), it would be quite simple to store the user's password and use it to retrieve the information from the stored customer profile.

Figure 2 shows the intruder's rewriting process and proxy service as a component of the Passport architecture shown in Figure 1. The attacker has established a bogus authentication service at http://www.psport.com and has compromised a host in the path between the client browser and the merchant site, at http://www.ibm.com.

Figure 2 Rewriting and proxying requests.

A common (if weak) protection against this sort of attack, which involves having the server receive the redirection inspect the HTTP Referer: header to ensure the referral comes from a legitimate site, will not help here, as this can be rewritten as well.

DNS Attacks

Passport's security model depends heavily on the Domain Name System. In addition to the well-known problem of SSL's dependence on the DNS, HTTP redirects generally specify a host to receive the redirection in the form of a DNS name. An intruder who controls a client's DNS service could transparently perform the rewriting process described in the previous section by simply aliasing http://www.passport.com to the IP address of a server controlled by the intruder. Specifically:

  • The attacker inserts the bogus record in the local DNS server.

  • A client is redirected by the merchant service to http://www.passport.com.

  • Resolving this hostname, the client receives and connects to the IP address of the attacker's fake Passport service.

  • The attacker's Passport service proceeds as described above, acting as a proxy between the client and the Passport and merchant services.

Another form of attacking the DNS is to append bogus DNS information to valid DNS replies from the legitimate DNS server.4 Until there is widespread adoption of DNSSEC, which provides digitally signed DNS information, such attacks will be possible.

  • + Share This
  • 🔖 Save To Your Account

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020