Viewer Authentication Critique
This is a formal critique of Viewer Authentication that was requested by User:Rob Linden on the SLDev mailing list.
For a branch of the discussion see Talk page on the original proposal.
Summary
The new authentication method proposed by LL seems to be an attempt to solve a perceived but non-existent problem.
There are currently no known password capturing third party viewers in the wild, and a third party viewer requires such a privilege level of access to an account anyway that if you don't trust it with your username and password, you shouldn't be running it anyway. The mechanism proposed, however, is more prone to phishing attacks. Most password compromises are probably due to weaknesses in the current protocol challenge response, due to allowing weak passwords or due to the usual phishing e-mails (which are likely to be increased by the proposed method rather than decreased).
Providing a single authentication mechanism for LL (and third party) websites would be an improvement to multiple backend copies of username and password, however this could be implemented without touching the viewer authentication method. Support for OpenID and other identity metasystems would increase the flexibility and offer features such as brokered identity verification. However, these would only be part of the solution, and although the proposed mechanism would provide a way for future support of these, there are other ways this could be achieved. Future support for OpenID is perhaps a topic for a seperate discussion and debate, but a open debate on this should happen.
There seems to be no real demand to synchronise the authentication of the viewer with authentication on the SL web site (account, forums, etc.), and any benefits gained would be negated by the problems this would cause anyone running alts (e.g. for in world permissions testing etc.) or multiple viewers (e.g. main, test and firstlook). It also raises problems for those running OpenSim based Grids, and may also cause difficulties further down the line as regards the new architecture discussions.
Overall, the additional development time both with LL and for external developers doesn't seem to warrant the promoted benefits.
It was also noted that consideration should be given when considering enhancements to the security/authentication models whether these should be optional - allowing users to make their own risk/convenience decisions.
Security
LL's Objectives
- To mitigate the danger of password capturing Trojans masquerading as third party viewers
- Improve trust in third party viewers by providing a means of assurance to the user that the third party viewer could not be a Trojan capturing usernames and passwords.
Pros
- Viewer does not have to process (and "see") username and password
Cons
- The main risk of running a third party viewer (or any other application not provided by Linden Labs) is not stealing passwords, it's direct attacks through the client... and the "official" client is not really any protection against that.
- Viewer can still be used in direct and indirect attacks even if it never sees the password (for example: salami slicing through cutout accounts, acting as a cutout account or an in-world botnet, faking a failed connection while giving an attacker access).
- NON-viewer applications (such as editors, 3d tools) designed for use by SL residents could use a keystroke logger and macro to perform any of these attacks, or could inject code into the viewer to do the same thing. Look at 'cheating' programs in combat MMORPGs for ideas.
- But this is still not a large risk, unless people get the client through a mechanism that makes the creator anonymous. Historically, attempts to disseminate boobytrapped versions of applications have only worked in environments where it's routine for people to download applications from anonymous sources (file areas in the BBS era, for example). It's too easy to trace down the originator of any compromised client when you're getting them from their own website.
- Bottom line here is that third party viewers stealing passwords are a very small risk for the user: the bigger risk is from the web browser!
- Potential for phishing websites to entice users to enter username and password and then pass control to SL website and viewer.
- This kind of attack is not theoretical, phishing websites are a criminal industry.
- It would be very easy to set up a temporary (i.e. hard to trace the real owner) phishing webpage which looks like the official SL logon, and send e-mails such as "You've received xxx in SL, Click here to logon" apparently from LL - with far less work than trying to create, and entice people to download a trojan viewer
- Relies on browser security, and uses a mechanism often disabled or filtered due to security concerns
- Too reliant on browser/OS implementations (proxies, firewalls, used browsers, etc.)
- Potential for phishing websites to entice users to enter username and password and then pass control to SL website and viewer.
- So using the browser to perform the authentication moves the authentication to a mechanism that has historically proven more likely to be compromised.
- And the mechanism itself is relatively inflexible.
- Links to secondlife:// can only point to one instance (version, e.g. homebrew, release candidate official) of the program
- Links to secondlife:// can not pass parameters to the program
- In fact allowing that was a security flaw recently found and fixed in the SL client. :(
- It will raise problems for those running alternative (e.g. OpenSim) grids, and also have impact on the dicussions for a future open grid.
- Possibility some third party clients will retain the existing UI in order to make it easier for people with alts and multiple clients, and do appropriate GETs and POSTs on the SL to initiate a logon and get the token (thus defeating the original purpose)
- The issues raised in the next sections would mean that people would have an incentive to use this kind of client.
Alternatives
- One time passwords (for copy paste into a non-secure viewer or to print and take with you to friends, internet cafes, public terminals, etc.)
- lower perm passwords (pwds which put the account into a restricted state, disallowing "dangerous" transactions)
- separate passwords for website account and being inworld
- Account restrictions
- Allow third party plug-ins in the viewer (these would allow the extra functionality which are sometimes the reason for running third party viewers, but would rely on the official viewer for validation)
- Do nothing, keep everything as it is.
- Without a strong case for the status quo being a problem, this is certainly a viable alternative, particularly given the impact this will have on developers of third party tools and viewers
- It is arguable that most losses of assets and value are incurred due to SL bugs (inventory, classifieds search, etc.) and outtages rather than through account compromises
- This may be the wrong problem - password compromises are more likely to be through standard phishing attacks (logon here to update your account info) which is not addressed, or by weaknesses in the current authentication mechnism or just insecure passwords.
- CRAM-MD5 or a similar challenge-response type
- Dictionary check to reject insecure passwords
Flexibility
LL's Objectives
- Single Sign On - allowing multiple web applications (forums, support, account, jira, wiki etc.) and viewers to use the same username and password through a single point without duplicating usernames and passwords into multiple systems
- Extension of this to allow non-LL applications and web sites to participate in this single sign on system.
Pros
- Enables username/password authentication to work on third party sites without them having to "see" username and password
Cons
- This is really an unrelated issue...
- The client doesn't need to depend on the website for this purpose, or this could be a command line option.
- The client could just as easily be the 'authentication source' as the website.
- Via a "go to website" link in the client that passed an equivalent token.
- As noted in section 1, this reduces flexibility for the *users* which may result in third party viewers adopting the current UI and doing the authentication behind the scenes
Alternatives
- Use this mechanism for websites (including third party) only but not for viewers
- Identity Metasystem - [1]
- OpenID - [2]
- CardSpace - [3]
- Shibboleth - [4]
- CAS - [5]
- These could be handled by the client poping up a window using the internal web browser to connect to a HTML logon. It may be difficult or impossible to determine if the client really is displaying the official HTML logon and not capturing key strokes so this would be a way of implementing the above for flexibility or other reasons (e.g. brokered identity verification [6]) not for security
Persistence
LL's Objectives
- To synchronise the various LL's systems (forums, support, jira, account, etc.) so that by logging onto one, you are automatically logged onto the others.
Pros
- Selecting "Account History" or "Manage My Account" and similar menu items would open the web page for the account logged into SL, rather than the account logged into the web site, which currently can be different
Cons
- As in the previous section, LL's objectives could be met without the viewer logging in via the same mechanism.
- Inconvenient for those with alts or multiple clients
- Cumbersome to change alts and logon with multiple alts
- Those with alts, often have a primary account which is used for forums and logged on permanently to forums even when the alt is online in SL
- As noted in section 1, this reduces flexibility for the *users* which may result in third party viewers adopting the current UI and doing the authentication behind the scenes
- Danger on public or multi-user machines that the user will log out of the client, but not log out of the website properly allowing the next user to access their account.
- Staying online on secondlife.com (which many people seem to do) automatically means anyone with access to the computer/browser (family) can log in with the account inworld
- starting SL from the web browser on a regular basis will most likely result in the web browser lingering in memory in the background when running the viewer, which based on the heavy memory requirement may impair viewer performance.
- this would have an impact on the architecture discussions for a future open grid.
Alternatives
- As regards menu items such as "Account History", send the account name on the URL, and have the web page check if that is the currently logged on account. If not prompt the user to log on with the same account as being used in the viewer (for security reasons the viewer should not automatically log the account on to the web site in such cases).
- Is this really needed or desirable (for the client)? SL is not an extension of the web, it's a different kind of interface... one that has the potential of becoming a "3d web".
Signatories
Please sign this below with "~~~~" if you agree with the version of this document you are reading. The date will indicate which version of the document you read and agree with.
- Matthew Dowd 11:27, 29 September 2007 (PDT)
- Argent Stonecutter 13:53, 29 September 2007 (PDT)
- Dale Glass 14:28, 29 September 2007 (PDT)
- Tillie Ariantho 03:48, 30 September 2007 (PDT)
- Jesse Barnett 9:53, 30 September 2007 (PDT)
- Winter Ventura 19:42, 29 September 2007 (PDT)
- Balp Allen 01:33, 30 September 2007 (PDT)
- Michelle2 Zenovka 02:52, 30 September 2007 (PDT)
- Nicholaz 03:42, 30 September 2007 (PDT)
- Dzonatas Sol 06:54, 30 September 2007 (PDT)
- Eloise Pasteur 06:57, 30 September 2007 (PDT)
- Becky Tardis 08:34, 30 September 2007 (PDT)
- Peter Newell 14:14, 30 September 2007 (PDT)
- Dr Scofield 00:45, 1 October 2007 (PDT)