31 August 2010

SSL

Posts relating to the category tag "SSL" are listed below.

31 August 2010

HTTP Strict Transport Security

It's good to see different groups working together to improve security. This week another browser manufacturer announced future support for an initiative relating to Transport Layer Security (TLS, the successor to SSL).

Partial view of the first page from the IETF's internet draft 'HTTP Strict Transport Security (HSTS)', 11 July 2010, from the IETF Network Working Group

HTTP Strict Transport Security (HSTS) describes a method for a web site to tell client browsers that they should only interact with it over secure transport, i.e. TLS Whilst there have been browser plugins which support this draft specification, support for HSTS was announced for v4 of Google Chrome in January, and last week for v4 of Mozilla Firefox. Hopefully Microsoft Internet Explorer 9 and ,a href="http://www.opera.com/">Opera will also adopt this.

Why is it important? Some attacks mean that TLS is vulnerable if there are redirects from non-TLS (e.g. http://www.example.com) to TLS (https://www.example.com) content. And if part, or all, of your web site is only meant to be accessed over SSL, HSTS should be implemented now, ready for mainstream adoption.

Further details are provided on the W3C page at Strict Transport Security (STS) and the draft IETF specification is at HTTP Strict Transport Security (HSTS).

Posted on: 31 August 2010 at 08:37 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

02 July 2010

Web Site Security Basics for SMEs

Sometimes when I'm out socially and people ask what I do, the conversation progresses to concerns about their own web site. They may have a hobby site, run a micro-business or be a manager or director of a small and medium-sized enterprise (SME)—there's all sorts of great entrepreneurial activity going on.

It is very common for SMEs not to have much time or budget for information security, and the available information can be poor or inappropriate (ISSA-UK, under the guidance of their Director of Research David Lacey, is trying to improve this). But what can SMEs do about their web presence—and it is very unusual not to have a web site, whatever the size of business.

Photograph of a waste skip at the side of St John Street in Clerkenwell, London, UK, with the company's website address written boldly across it

Last week I was asked "Is using <company> okay for taking online payments?" and then "what else should I be doing?". Remember we are discussing protection of the SME's own web site, not protecting its employees from using other sites. If I had no information about the business or any existing web security issues, this is what I recommend checking and doing before anything else:

  • Obtain regular backup copies of all data that changes (e.g. databases, logs, uploaded files) and store these securely somewhere other than the host servers. This may typically be daily, but the frequency should be selected based on how often data changes and how much data the SME might be prepared to lose in the event of total server failure.
    • check backup data can read and restored periodically
    • don't forget to securely delete data from old backups when they are no longer required
  • Use a network firewall in front of the web site to limit public (unauthenticated user) access to those ports necessary to access the web site. If other services are required remotely, use the firewall to limit from where (e.g. IP addresses) these can be used.
    • keep a record of the firewall configuration up-to-date
    • limit who can make changes to the firewall
  • Ensure the host servers are fully patched (e.g. operating system, services, applications and supporting code), check all providers for software updates regularly and allow time for installing these.
    • remove or disable all unnecessary services and other software
    • delete old, unused and backup files from the host servers
  • Identify all accounts (log in credentials) that provide server access (not just normal web page access), such as used for transferring files, accessing administrative interfaces (e.g. CMS admin, database and server management/configuration control panels) and using remote desktop. Change the passwords. Keep a record of who has access and remove accounts that are no longer required and enable logging for all access using these accounts.
    • restrict what each account can do as much as possible
    • add restrictions to the use of these accounts (e.g. limit access by IP address, require written approval for use, keep account disabled by default)
  • Check that every agreement with third parties that are required to operate the web site are in the organisation's own name. These may include the registration of domain names, SSL certificates, hosting contracts, monitoring services, data feeds, affiliate marketing agreements and service providers such as for address look-up, credit checks and making online payments.
    • ensure the third parties have the organisation's official contact details, and not those of an employee or of the site's developers
    • make note of any renewal dates
  • Obtain a copy of everything required for the web site including scripts, static files, configuration settings, source code, account details and encryption keys. Keep this updated with changes as they are made.
    • verify who legally owns the source code, designs, database, photographs, etc.
    • check what other licences affect the web site (e.g. use of open source and proprietary software libraries, database use limitations).

Do what you can, when you can. Once those are done, then:

  • Verify the web site and all its components (e.g. web widgets and other third party code/content) does not include common web application vulnerabilities that can be exploited by attackers (e.g. SQL injection, cross-site scripting).
  • Check what obligations the organisation is under to protect business and other people's data such as the Data Protection Act, guidance from regulators, trade organisation rules, agreements with customers and other contracts (e.g. PCI DSS via the acquiring bank).
    • impose security standards and obligations on suppliers and partner organisations
    • keep an eye open for changes to business processes that affect data
  • Document (even just some short notes) the steps to rebuild the web site somewhere else, and to transfer all the data and business processes to the new site.
    • include configuration details and information about third-party services required
    • think about what else will need to be done if the web site is unavailable (does it matter, if so what exactly is important?)
  • Provide information to the web site's users how to help protect themselves and their data.
    • point them to relevant help such as from GetSafeOnline, CardWatch and Think U Know
    • provide easy methods for them to contact the organisation if they think there is a security or privacy problem
  • Monitor web site usage behaviour (e.g. click-through rate, session duration, shopping cart abandonment rate, conversion rate), performance (e.g. uptime, response times) and reputation (e.g. malware, phishing, suspicious applications, malicious links) to gather trend data and identify unusual activity.
    • web server logs are a start, but customised logging is better
    • use reputable online tools (some of which are free) to help.

That's just the basics. So, what would be next for an SME? If the web site is a significant sales/engagement channel, the organisation has multiple web sites, is in a more regulated sector or one that is targetted particularly by criminals (e.g. gaming, betting and financial), takes payments or does other electronic commerce, allows users to add their own content or processes data for someone else, the above is just the start. Those SMEs probably need to be more proactive.

This helps to protect the SME's business information, but also helps to protect the web site users and their information. After all, the users are existing and potential customers, clients and citizens.

Oh, the best response I had to someone when I was explaining my work: "You're an anti-hacker than?". Well, I suppose so, but it's not quite how I'd describe it.

Any comments or suggestions?

Posted on: 02 July 2010 at 08:18 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

11 June 2010

SSL Awareness (Lack of)

Continuing on the theme of confusing users, Security Dialogs and Graphics discussed the multitude of inconsistent styles for security warnings on web sites, mobile applications and in email.

This is usability hell. Why should each device, browser and application choose how these messages are worded and displayed? I mentioned previously the contributing factor of tab colouring in IE8 and a recent post Tabnabbing: A New Type of Phishing Attack demonstrates how users can be tricked into providing sensitive information to the wrong web site. But it's not just inconsistent technical implementation that matters; the humans in the process matter too.

Last week I came across two web sites in my normal business usage that gave me invalid SSL/TLS secure certificate warnings, and these weren't little businesses that might not know any better—both are multinational enterprises—one a UK bank, and the other a UK mobile phone company.

  1. In one case a registration process used a domain www.[subdomain].[company].co.uk whereas the certificate was for [subdomain].[company].co.uk
  2. In the other, the company had recently been taken over and the site was using www.[oldcompanyname].com whereas the certificate was for www.[newcompanyname].co.uk

But what surprised me most was the response I received when reporting these problems to the respective site owners. Neither organisation had a clear process for sending details of possible security problems and therefore the responses seem to have been directed through customer support channels.

One provided the initial response:

The details entered by you on our website are secured and any third party cannot access your details. In the meantime, you can lower the security level of your browser by going tools of the internet browser.

and:

Once, you've lower the security level of the browser, I trust that security certificate error you're getting will not be occur.

and even though I re-explained the problem, and that it hadn't stopped me from doing what I wanted:

As such you're not able to access online account, please get back to me with the following details to escalate this matter to our online escalation team: - Operating system - Browser and its version - Screen shot of the web URL page, where you get error - Username

and then:

I'm sorry to learn that you are facing problems with the online certificate. Colin, what you can do is lower the security on the browser to overcome this.

and the rather indefinite:

We have changed one of the web-addresses and have not been able to update the security certificate to reflect this; hence you are facing an error. We are aware about this issue and our engineers are working towards it though there is no definite timescale.

and then back to asking me to supply screenshots, my username and details of my browser:

I do understand that browser version don't has to do anything with the security certificate, however, to help you get this sorted, I'll need to forward your account details to our dedicated team. As the issue is highly technical, you'll need to get back to us with the below given information...

Mmm.. and still no idea about the issue:

Believe me above details are very important to get your SSL security certificate issue to get sorted.

My issue? Their issue I believe.

The other company suggested it was the date/time on my own computer which was the fault:

Without speaking to you directly this sounds like you've received a message about a security certificate has expired. If that is the case this normally means the time and date on your computer are wrong, as soon as this is amended you should have no further issues accessing our website.

and some advice about security:

However if this still does not work please call us on ... I'm sorry that I can't act on an e-mail request - as e-mail isn't 100% secure, we're not able to identify you this way. (We want to help keep your details safe - so it's a good idea to keep personal information to a minimum when using e-mail.)

at which point I rang them up, and stumped them by quoting their own tracking number. No further call back from them yet.

I found this all rather depressing. How can we expect customers (end users) to take care with security if the understanding and processes are not in place within the organisation, especially with customer-facing staff? Organisations like Get Safe Online and Card Watch are trying their best to educate people, but the web site owners need to play along too. So here's a quick checklist, including a couple of new items:

  1. Obtain your own domain like example.com or example.co.uk (not a sub-domain of someone other company e.g. example.uk.com)
  2. Provide security training to web site architects and developers
  3. Determine how SSL/TLS will be applied on the site
  4. Buy a certificate and apply SSL usage appropriately through the site
  5. Verify the proper usage of SSL and session management
  6. Verify the correct SSL configuration
  7. Include SSL/TLS certificate management in change control processes
  8. Provide awareness training to customer support staff about what "secure web site" means and the types of enquiries customers may have
  9. Give some basis security advice to customers and direct them to other resources for more information
  10. Ensure there is a simple way for people to inform you of security concerns and possible incidents such as phishing, browser security warnings, compromised credentials, account mis-use, etc.

Please—I don't want to have to go through customer support again! At the time of publishing this post, the certificate problems still exist.

Posted on: 11 June 2010 at 09:17 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

12 January 2010

OWASP London - This Thursday

The next Open Web Application Security Project (OWASP) London meeting is this week.

Photograph of a metal grid mesh

The London chapter meeting is on Thursday 14 January 2010 in EC1. Everyone is welcome, but you need to register first (free).

There will be talks on Top Ten Deployment Mistakes That Render SSL Useless by Ivan Ristić and Using Selenium to Hold State for Web Application Penetration Testing by Yiannis Pavlosoglou, who recently joined the OWASP Global Industry Committee.

Unfortunately I am unable to attend the meeting but hope to read the presentations afterwards.

Posted on: 12 January 2010 at 09:46 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

02 October 2009

Don't Mix and Match Those Domains

Many organisations like to do land grab with domain names by purchasing the same name with different generic top-level domains (e.g. .com, .net, .info), country code top-level domains (e.g. .uk, .es, .fr), and multiple second-level domains (e.g. .co.uk, .org.uk). Then of course there are mis-spellings, similar sounding words, brand names and trademarks.

Well all that leads to complexity, and it's not uncommon for many domains to be aliased to the same site in a way that any of them can be used to access the complete web site.

But it can get especially messy when SSL is enabled on some or all of the site too. Inevitably there end up being certificate warnings. Some organisations should know better. So when I was searching for providers of online and business privacy "seals",

Partial screen capture showing search engine results including SSL links to pages on the www.truste.org domain including https://www.truste.org/pvr.php?page=complaint

I was very surprised to click on the link to an SSL page which was reported as using an invalid certificate.

Partial screen capture showing the browser's warning message about the page's SSL certificate that says 'www.truste.org uses an invalid security certificate' and 'The certificate is only valid for *.truste.com'

Actually the certificate was fine, it just wasn't valid for the .ORG domain. Perhaps they had hoped the wildcard SSL certificate *.trust.com would somehow cater for *.truste.* - no.

Partial screen capture showing the browser's information about the certificate which says 'You are about to override how Firefox identifies this site - Legitimate banks, stores and other public sites will not ask you to do this' and 'Certificate belongs to a different site, which could indicate an identity theft'

Identity theft? Privacy? But apart from these configuration issues, isn't it just very confusing to have many different domains appearing in search engine results? How does this duplicate content affect their search engine ranking? Does it undermine trust in the brand? Should the SSL part of the site be indexed at all? Perhaps. Who makes these decisions? Is it the developers, the person who configured the site or does the business have a viewpoint?

I overheard a (loud) mobile telephone conversation this week in which a marketing manager* was apologising for a problem but they "did not know any of the technicalities". Mmmm, who is accountable? Make it your business to know.

[* Security and technology managers should also understand their organisation's business objectives.]

Posted on: 02 October 2009 at 07:56 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

15 September 2009

Picture-in-Picture Phishing Attacks and Operating System Styles

Phishing attacks are often targeted at organisations where login credentials can be used to gain financial reward, and these web sites almost always use SSL to allow users to authenticate the identity of the site and to protect data in transit from alteration or copying.

A recent paper Crying Wolf: An Empirical Study of SSL Warning Effectiveness from Carnegie Mellon University discussed the results of a survey of over 400 internet uses. The conclusion - users ignore warnings about invalid SSL certificates.

The subject of trust user experience (TUX) was discussed during the Workshop on Security and Human Behaviour (SHB 2009) at Cambridge University this summer, and summarised here. This included a discussion on how users, who are trained to be sensitive to warnings, become more susceptible to picture-in-picture attacks. These are where an image of a (fake) browser, perhaps with a graphical representation of a green extended validation address bar is displayed inside the user's real browser window, such as in the example mock-up below. This is most effective when the real browser is displayed at the full screen resolution.

Partial mock up of a picture-in-picture attack where the real browser has a malicious web site address, but within the browser is a background identical to the desktop and a picture of another browser with what appears to be a valid SSL certificate - the content of the inner image are a form that submits the user's login credentials to the malicious web site

Therefore I was interested to read about how web designers can use CSS to access operating system style settings (the "chrome" of Linux, Windows, Mac, etc) and use these to apply matching fonts and colours to web design elements. This means if users have a customised desktop colour scheme, the fake browser in the picture-in-picture attack doesn't need to be in standard desktop colours, but could pick up on the user's own settings, to confuse them further.

See also my comments about Colour Overload with IE8 Tab Grouping.

Posted on: 15 September 2009 at 07:49 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

04 August 2009

Do You Have SSL Configured Correctly?

Do You Have SSL Configured Correctly? Let me start by saying that "correctly" means "best for you". There isn't a single correct answer, although there are certainly some "don'ts" that apply in every situation.

This information is not about whether to use SSL, and is mainly for your systems folk (or hosting company), but do read on and perhaps gain a better understanding.

Partial screen capture of a report from the SSL Labs Public SSL Server Database showing the host name, IP address, an overall score and part of a bar chart

Ivan Ristić recently announced the SSL Server Rating Guide (draft 10, 21 July 2009) and an associated online assessment tool called the Public SSL Server Database. These had reminded me to post my comments last Tuesday about the slightly related Colour Overload with IE8 Tab Grouping.

The SSL Labs' resources describe, and allow you to check, the SSL configuration of your own, or any other public site that has SSL enabled. The checks span the certificate and three categories of web server configuration settings. Previously, it needed more specialist tools that most people wouldn't have the time or inclination to use.

The rating guide contains much useful information, but will be too detailed for many people. However, do read the "Minimal Configuration Requirements" and pass these on to appropriate person responsible for the configuration and operation of your own web sites. Not every site needs an overall rating of 73 or 85 or whatever. You'll see in Table 6 of the guide, an idea of what might be suitable for a range of web site types.

After all, your competitors, and some customers, have probably already checked your site.

Posted on: 04 August 2009 at 17:56 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

28 July 2009

Colour Overload with IE8 Tab Grouping

Do people understand tab grouping in Internet Explorer version 8 (IE8)? This was a new idea introduced to collect together and identify tabs originating from the same source.

Note this isn't grouping based on the web site (domain name)—it's grouping from which other tab you clicked. The group colour is selected randomly, so yesterday's blue might be today's yellow.

My concern with tab grouping is not the concept, but the use of colour. Not because of the accessibility difficulty that some people may have distinguishing between colours, which is partially addressed by Microsoft in a tab naming convention, but because the colours can lead to confusion about SSL certificates. Take this example with four tabs open, the first tab selected and a current Extended Validation (EV) SSL certificate in use:

  1. Bank No X online banking login (domain A / SSL)
  2. Bank No X information page (domain B / non-SSL) opened using a link on page 1
  3. Bank No Y home page (domain C / non-SSL)
  4. Bank No Y business banking login (domain D / SSL) opened using a link on page 2
Partial screen capture of four browser tabs in Internet Explorer 8 (IE8) where they are grouped into two tab groups, one pair highlighted in the color green and the latter two in the colour blue / the first tab which is selected is also an SSL site with a current Extended Validation (EV) SSL certificate making the address bar a green color

What does green mean? How about if we have an invalid SSL certificate and the tab group is green:

Partial screen capture of four browser tabs in Internet Explorer 8 (IE8) where they are grouped into two tab groups, one pair highlighted in the color green and the latter two in the colour blue / the first tab which is selected is also an SSL site with an invalid SSL certificate making the address bar a red color

Confusing? Yes. It can lead to this type of misunderstanding:

That must be what I am seeing because it's not always the same colours. I had thought it had to do with security.

Helping people to identify and reject invalid SSL certificates is important—IE8 users are being put at a disadvantage by Microsoft. I'd like to see tab grouping turned off by default for now, and some other indicator of tab groups used instead of distracting colour-coding. Perhaps, since new tabs are always opened adjacent to their 'parent', even something as simple as this mock-up might suffice:

Mock-up of four browser tabs in Internet Explorer 8 (IE8) where they are grouped into two tab groups, without any special colouring, but with a separator bar between the two groups instead / the first tab which is selected is also an SSL site with a current Extended Validation (EV) SSL certificate making the address bar a green color

Is this easier to understand? What do you think?

Posted on: 28 July 2009 at 08:21 hrs

Comments Comments (3) | Permalink | Send Send | Post to Twitter

05 May 2009

Check Your Certificate Expiry Dates

Since I've been writing about SSL Certificates recently, I thought I'd share a screen capture I took a year or so ago of an expired certificate warning.

Screen capture of the AlertSite secure login page at https://www.alertsite.com/login.shtml showing a browser pop-up alert (details in next image below)

This time it wasn't the site I was on, but some embedded code from a third party:

Screen capture 'Server Certificate Expired - www.googleadservices.com is a site that uses a security certificate to encrypt data during transmission, but its certificate expired on 05/03/2008 16:52 / You should check to make sure that your computer's time (currently set to 05 March 2008 17:09:08) is correct / Would you like to continue anyway? / View certificate / Continue / Cancel'

Yes my computer's time was correct. So, even large organisations can get this wrong. Having a schedule of all certificates, domain names, software licences and other agreements for your website helpd keep track of time dependent renewals.

And, I wonder just why did AlertSite feel the need to have code from the Google Advertising on their login page?

Posted on: 05 May 2009 at 09:08 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

01 May 2009

SSL Certificates and Padlock Misuse

I recently discussed organisation names on SSL certificates. The padlock has become an overused visual indicator to indicate use of SSL certificates or broader protection measures.

Padlock icons have never been the exclusive browser indicator of a site using a valid, trusted SSL (more correctly now called Transport Layer Security [TLS], SSL's successor) certificate, and the position in the browser has varied considerably.

Here are a couple of mis-uses of the padlock symbol—neither are related to SSL certificates. They simply add to confusion about what is a secure website.

Partial web page screen capture showing a padlock icon with the words 'If your browser is not showing the secure padlock on your screen click on this padlock' Partial web page screen capture showing a padlock icon with the words 'This padlock is shown when we are collecting information about you. Please see our privacy policy for details of how we may use this information'

How do we expect users to understand what "secure server", "security certificate" and "security" mean in the web world? Maybe we should ensure our designers understand first.

Perhaps encourage them to read trusted resources like Learn About Secure Web Pages from Get Safe Online.

Then we can avoid pages like this:

Partial web page screen capture showing a gigantic padlock photograph taking up 70% of the web page and linking to a non-SSL web site

which links to a restricted access area, but not on a secure server!

Posted on: 01 May 2009 at 08:24 hrs

Comments Comments (0) | Permalink | Send Send | Post to Twitter

More Entries

SSL : Web Security, Usability and Design
http://www.clerkendweller.com/ssl
ISO/IEC 18004:2006 QR code for http://clerkendweller.com

Page http://www.clerkendweller.com/ssl
Requested by 38.107.191.107 on Friday, 3 September 2010 at 04:20 hrs (London date/time)

Please read our terms of use and obtain professional advice before undertaking any actions based on the opinions, suggestions and generic guidance presented here. Your organisation's situation will be unique and all practices and controls need to be assessed with consideration of your own business context.

Terms of use http://www.clerkendweller.com/page/terms
Privacy statement http://www.clerkendweller.com/page/privacy
© 2008-2010 clerkendweller.com