Wednesday, 30 September 2015

HTTP Strict Transport Security (HSTS) - An Overview


HTTP Strict Transport Security (HSTS) is a web security policy that is made to protect secure HTTPS websites against downgrade attacks that is used to perform Man in the middle attacks. “Once a supported browser receives this header that browser will prevent any communications from being sent over HTTP to the specified domain and will instead send all communications over HTTPS. It also prevents HTTPS click through prompts on browsers”.
The downgrade attack can occur when the user request a website in HTTP. When the user requested in HTTP:// URL, the server redirects the user to a secure HTTPS:// URL. Without HSTS, an attacker in the same network is able to stop the user from using the HTTPS version of the site and forcing the user to use the HTTP version, where the attacker is able to control user’s data and hijack the user’s session.
The HTTPS stripping attack that relates to the unuse of HSTS policy can be done via open-source tools, such as SSLStrip by Moxie Marlinspike. The tool has been publicly released on February 2009, and since then many browsers and websites have mitigated the issue.
Preventing the issue should be from two sides: the website, and the client. The website has that is already using HTTPS should apply HSTS policy to prevent the attack. The client has to use an updated version that supports HSTS policy.
The current advisory is tend to inform users that there is still modern browsers that do not support HSTS policy until today.

The following browsers do not support HSTS policy:

1.Internet Explorer (all stable versions do not support HSTS. Only Microsoft Edge and Internet Explorer 10 Technical Preview support it)
2.Android Browser ( All versions upto 4.4.2 do not support HSTS policy. Newer versions might not be supporting it too)
3.Opera Mini (all versions, including Opera Mini 8)
4.Maxthon browser
5.UC browsers (including UC browser, UC mini, UC browser HD)
6.Opera for Android

    Testing Browsers for MITM(Man In The Middle) attacks due to Lack of HSTS policy:
    You can follow the instructions in the following link to check if the browser supports HSTS policy.
    Recommendations:
    1.Always use the latest version of browsers
    2.If you are concerned about your security, do not use a browser that does not support HSTS policy.
    3.If you are using a browser that is not listed above, you should test if it supports HSTS policy, and if it does not support it, you should stop using it.
      Notes:
      1.Even if the website is using the maximum SSL encryption possible, if the client’s browser does not support HSTS, the client is vulnerable to man in the middle attacks.
      2.If the client made an initial request to the website in HTTP, an attacker can manipulate the response to uninclude the HSTS header, and would be able to perform MITM attacks too. Therefore, if you are making an initial request to secured site, you should request it in HTTPS to avoid HTTPS stripping that leads to MITM attacks.
        The list might be updated for newer information. If there is a mistake on the list, you can comment to correct it.
        References:

        No comments:

        Post a Comment