SlideShare a Scribd company logo
1 of 82
Download to read offline
SSL, HSTS and other stuff with two eSSes




                                        Versão 1.1 - 22/06/2011




Confraria	
  Security	
  &	
  IT   Tiago	
  Mendo	
  -­‐	
  ,ago.mendo@telecom.pt
Summary

      •     History
              –     SSL
              –     TLS
              –     SSL	
  vs	
  TLS
      •     Protocol
              –     Objec9ves
              –     Applica9ons
      •     How	
  it	
  works	
  -­‐	
  the	
  2	
  minutes	
  version
      •     How	
  it	
  works	
  -­‐	
  the	
  30	
  minutes	
  version
              –     Cer9ficate	
  valida9on
              –     Cer9ficate	
  revoca9on	
  check
              –     Cer9ficate	
  chain	
  of	
  trust	
  check
              –     Fetching	
  content
              –     Redirec9ng	
  from	
  HTTP	
  to	
  HTTPS
              –     Full	
  HTTPS	
  browsing
              –     Mixed	
  content	
  browsing
      •     Recommenda9ons
      •     Conclusions
        •  Ques9ons
SAPO	
  Websecurity	
  Team                                                2
History > SSL


      • SSL	
  -­‐	
  Secure	
  Sockets	
  Layer

      • 1994	
  -­‐	
  SSL	
  1.0	
  created	
  by	
  Netscape,	
  never	
  
        	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  released
      • 1995	
  -­‐	
  SSL	
  2.0	
  released	
  in	
  Netscape	
  Navigator	
  	
  	
  
        	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  1.1.	
  Mul9ple	
  security	
  flaws	
  found
      • 1996	
  -­‐	
  SSL	
  3.0	
  released



SAPO	
  Websecurity	
  Team                                                                            3
History > TLS


      • TLS	
  -­‐	
  Transport	
  Layer	
  Security

      • 1999	
  -­‐	
  TLS	
  1.0	
  defined	
  in	
  RFC	
  2246,	
  using	
  SSL	
  
        	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  3.0	
  as	
  basis
      • 2006	
  -­‐	
  TLS	
  1.1	
  defined	
  in	
  RFC	
  4346
      • 2008	
  -­‐	
  TLS	
  1.2	
  defined	
  in	
  RFC	
  5246




SAPO	
  Websecurity	
  Team                                                             4
History > SSL vs TLS

                                 SSL                   TLS
                                  1.0
                                  2.0
                                  3.0
                                 (3.1)                 1.0
                                 (3.2)                 1.1
                                 (3.3)                 1.2

      • SSL	
  3.0	
  and	
  TLS	
  1.0	
  are	
  equivalent	
  in	
  security,	
  
            but	
  incompa9ble
      •     “Everybody	
  knows	
  SSL.	
  TLS	
  is	
  more	
  technically	
  
            accurate	
  but	
  sounds	
  like	
  a	
  cable	
  TV	
  network	
  or	
  
            a	
  disease"
SAPO	
  Websecurity	
  Team                                                              5
Protocol > Objectives


      • Why	
  SSL?




SAPO	
  Websecurity	
  Team   6
Protocol > Objectives


      • Why	
  SSL?

      • To	
  protect	
  the	
  communica9ons	
  between	
  two	
  
        hosts:
             – content	
  confiden9ality
             – integrity
             – authen9city




SAPO	
  Websecurity	
  Team                                           6
Protocol > Objectives


      • Why	
  SSL?

      • To	
  protect	
  the	
  communica9ons	
  between	
  two	
  
        hosts:
             – content	
  confiden9ality
             – integrity
             – authen9city

      • Host	
  iden9ty	
  is	
  not	
  protected	
  (requires	
  IPSEC)
      • Normally	
  only	
  the	
  server	
  is	
  authen9cated	
  
SAPO	
  Websecurity	
  Team                                                6
Protocol > Applications



                      Applica,on            HTTP

                       Transport             TCP

                       Network                 IP

                       Data	
  link   802.11	
  -­‐	
  WLAN

                        Physical              Air




SAPO	
  Websecurity	
  Team                                   7
Protocol > Applications



                      Applica,on            HTTP                 HTTP	
  /	
  SSL

                       Transport             TCP                      TCP

                       Network                 IP                      IP

                       Data	
  link   802.11	
  -­‐	
  WLAN   802.11	
  -­‐	
  WLAN

                        Physical              Air                     Air




SAPO	
  Websecurity	
  Team                                                           7
Protocol > Applications

                                                                                            HTTP

                      Applica,on            HTTP                 HTTP	
  /	
  SSL             SSL

                       Transport             TCP                      TCP                    TCP

                       Network                 IP                      IP                      IP

                       Data	
  link   802.11	
  -­‐	
  WLAN   802.11	
  -­‐	
  WLAN   802.11	
  -­‐	
  WLAN

                        Physical              Air                     Air                     Air




SAPO	
  Websecurity	
  Team                                                                                   7
Protocol > Applications

                                                                                            HTTP

                      Applica,on            HTTP                 HTTP	
  /	
  SSL             SSL

                       Transport             TCP                      TCP                    TCP

                       Network                 IP                      IP                      IP

                       Data	
  link   802.11	
  -­‐	
  WLAN   802.11	
  -­‐	
  WLAN   802.11	
  -­‐	
  WLAN

                        Physical              Air                     Air                     Air


      •     On	
  top	
  of	
  any	
  Transport	
  layer	
  (including	
  UDP)
      •     Used	
  with	
  any	
  Applica9on	
  layer	
  protocol
      •     HTTP,	
  SMTP,	
  XMPP,	
  SIP,	
  etc.
      •     Used	
  in	
  OpenVPN
SAPO	
  Websecurity	
  Team                                                                                   7
How it works - the 2 minutes version


      • Type	
  hdps://www.facebook.com	
  and	
  hit	
  enter




SAPO	
  Websecurity	
  Team                                      8
How it works > Traffic without SSL




SAPO	
  Websecurity	
  Team         9
How it works > Traffic with SSL




SAPO	
  Websecurity	
  Team      10
How it works - the 30 minutes version


      • Type	
  hdps://www.facebook.com	
  and	
  hit	
  enter

      •     Browser	
  connects	
  to	
  www.facebook.com:443
      •     SSL	
  handshake	
  is	
  ini9ated
      •     Server	
  sends	
  its	
  X.509	
  cer9ficate	
  to	
  the	
  client
      •     The	
  client	
  starts	
  the	
  valida9on	
  process




SAPO	
  Websecurity	
  Team                                                       11
How it works > Certificate validation


      • CN	
  matches	
  URL
      • For	
  each	
  cert.	
  in	
  the	
  chain
             – Has	
  not	
  expired
             – Was	
  not	
  revoked
             – Was	
  emided	
  by	
  a	
  
               trusted	
  CA




SAPO	
  Websecurity	
  Team                          12
How it works > Certificate validation


      • CN	
  matches	
  URL
      • For	
  each	
  cert.	
  in	
  the	
  chain
             – Has	
  not	
  expired
             – Was	
  not	
  revoked
             – Was	
  emided	
  by	
  a	
  
               trusted	
  CA




SAPO	
  Websecurity	
  Team                          13
How it works > Certificate validation


      • CN	
  matches	
  URL
      • For	
  each	
  cert.	
  in	
  the	
  chain
             – Has	
  not	
  expired
             – Was	
  not	
  revoked
             – Was	
  emided	
  by	
  a	
  
               trusted	
  CA




SAPO	
  Websecurity	
  Team                          14
How it works > Certificate validation


      • CN	
  matches	
  URL
      • For	
  each	
  cert.	
  in	
  the	
  chain
             – Has	
  not	
  expired
             – Was	
  not	
  revoked
             – Was	
  emided	
  by	
  a	
  
               trusted	
  CA




SAPO	
  Websecurity	
  Team                          15
How it works > Certificate revocation check


      • CRL	
  -­‐	
  Cer9ficate	
  Revoca9on	
  List

      • The	
  cer9ficate	
  specifies	
  a	
  CRL	
  URL
      • The	
  CRL	
  is	
  a	
  list	
  of	
  revoked	
  serial	
  numbers
      • Answer	
  can	
  be	
  cached	
  for	
  a	
  few	
  months
             – period	
  defined	
  by	
  the	
  CA

      • The	
  CRL	
  can	
  be	
  very	
  large:	
  enter	
  OCSP
             – expired	
  certs.	
  are	
  removed	
  from	
  the	
  CRL

SAPO	
  Websecurity	
  Team                                                   16
How it works > Certificate revocation check


      • OCSP	
  -­‐	
  Online	
  Cer9ficate	
  Status	
  Protocol

      • The	
  cer9ficate	
  specifies	
  a	
  OCSP	
  server
      • Browser	
  asks	
  the	
  server	
  if	
  a	
  specific	
  cert.	
  is	
  
        s9ll	
  valid
      • Answer	
  can	
  be	
  cached	
  for	
  a	
  few	
  days
             – period	
  defined	
  by	
  the	
  CA


      • A	
  cert.	
  can	
  specify	
  both	
  the	
  CRL	
  and	
  OCSP
SAPO	
  Websecurity	
  Team                                                         17
How it works > Certificate revocation check


      • What	
  can	
  go	
  wrong?




SAPO	
  Websecurity	
  Team                  18
How it works > Certificate revocation check


      • What	
  can	
  go	
  wrong?
      • CRL	
  and	
  OCSP	
  servers	
  can	
  be	
  unreachable
             – Browsers	
  will	
  allow	
  user	
  to	
  con9nue
             – You	
  may	
  or	
  may	
  not	
  be	
  warned	
  about	
  this


             – Moxie	
  Marlinspike	
  found	
  that	
  OCSP	
  “try	
  again”	
  
               message	
  (error	
  code	
  3)	
  is	
  not	
  signed
             – Adack:	
  MiTM	
  with	
  a	
  revoked	
  cert.	
  and	
  reply	
  3	
  to	
  
               the	
  OCSP	
  requests.	
  


SAPO	
  Websecurity	
  Team                                                                     18
How it works > Certificate revocation check


      • How	
  to	
  mi9gate	
  this	
  problem?




SAPO	
  Websecurity	
  Team                        19
How it works > Certificate revocation check


      • How	
  to	
  mi9gate	
  this	
  problem?
      • OCSP	
  Stapling	
  -­‐	
  Kerberos	
  style	
  9cket
             – Cert.	
  owner	
  frequently	
  asks	
  the	
  OCSP	
  for	
  a	
  9cket
             – Ticket	
  says	
  “I,	
  CA	
  guarantee	
  with	
  my	
  signature	
  
               that	
  this	
  cer9ficate	
  is	
  valid	
  for	
  a	
  few	
  hours”
             – Site	
  presents	
  this	
  9cket	
  to	
  reques9ng	
  browser


      • Fallback	
  to	
  OCSP
      • Support:	
  Chrome	
  on	
  Windows	
  Vista	
  or	
  higher

SAPO	
  Websecurity	
  Team                                                               19
How it works > Certificate revocation check


      • How	
  to	
  mi9gate	
  this	
  problem?




SAPO	
  Websecurity	
  Team                        20
How it works > Certificate revocation check


      • How	
  to	
  mi9gate	
  this	
  problem?
      • CRL	
  and	
  OCSP	
  cache




SAPO	
  Websecurity	
  Team                        20
How it works > Certificate revocation check


      • How	
  to	
  mi9gate	
  this	
  problem?
      • CRL	
  and	
  OCSP	
  cache
      • Which	
  introduces	
  another	
  problem
             – If	
  a	
  cert.	
  is	
  compromised,	
  there	
  may	
  a	
  significant	
  
               window	
  of	
  vulnerability	
  (months	
  for	
  a	
  CRL)
             – Remember	
  the	
  Comodo	
  RA	
  compromise?
                 – 9	
  certs.	
  were	
  issued	
  to	
  7	
  domains
                 – certs.	
  were	
  revoked	
  in	
  15	
  minutes
                 – Browser	
  vendors	
  immediately	
  issued	
  browser	
  
                      updates
SAPO	
  Websecurity	
  Team                                                                    20
How it works > Certificate validation


      • CN	
  matches	
  URL
      • For	
  each	
  cert.	
  in	
  the	
  chain
             – Has	
  not	
  expired
             – Was	
  not	
  revoked
             – Was	
  emi@ed	
  by	
  a	
  
               trusted	
  CA




SAPO	
  Websecurity	
  Team                          21
How it works > Certificate chain of trust check


      • The	
  server	
  sends	
  the	
  
        whole	
  cer9ficate	
  chain

      • For	
  each	
  cert.	
  in	
  the	
  chain	
  verify
             – is	
  properly	
  signed	
  by	
  the	
  CA	
  cer9ficate	
  
               immediately	
  higher	
  in	
  the	
  hierarchy
             – last	
  cer9ficate	
  is	
  explicitly	
  trusted	
  by	
  the	
  browser,	
  
               so	
  no	
  signature	
  verifica9on	
  is	
  done



SAPO	
  Websecurity	
  Team                                                                    22
How it works > Certificate chain of trust check


      • What	
  can	
  go	
  wrong?




SAPO	
  Websecurity	
  Team                      23
How it works > Certificate chain of trust check




SAPO	
  Websecurity	
  Team                      24
How it works > Certificate chain of trust check


      • What	
  can	
  go	
  wrong?
      • The	
  browser	
  does	
  not	
  know	
  the	
  root	
  CA
             – can	
  happen	
  if	
  you	
  are	
  using	
  an	
  old	
  browser/device




SAPO	
  Websecurity	
  Team                                                                25
How it works > Certificate chain of trust check


      • What	
  can	
  go	
  wrong?
      • The	
  browser	
  does	
  not	
  know	
  the	
  root	
  CA
             – can	
  happen	
  if	
  you	
  are	
  using	
  an	
  old	
  browser/device


      • How	
  to	
  mi9gate	
  this	
  problem?	
  
      • Mul9-­‐roo9ng	
  CAs
             – Server	
  sends	
  a	
  longer	
  chain	
  with	
  more	
  CA	
  
               cer9ficates	
  higher	
  in	
  the	
  hierarchy
             – Both	
  CAs	
  trusted	
  by	
  Firefox

SAPO	
  Websecurity	
  Team                                                                25
How it works > Certificate chain of trust check


      • What	
  can	
  go	
  wrong?




SAPO	
  Websecurity	
  Team                      26
How it works > Certificate chain of trust check


      • What	
  can	
  go	
  wrong?
      • You	
  do	
  not	
  trust	
  what	
  your	
  browser	
  trusts
             – Firefox	
  ships	
  with	
  76	
  CAs
                    • Chunghwa	
  Telecom	
  Co.,	
  Ltd
                    • Türkiye	
  Bilimsel	
  ve	
  Teknolojik	
  AraşUrma	
  Kurumu	
  -­‐	
  
                      TÜBİTAK
             – Are	
  all	
  of	
  them	
  secure	
  and	
  properly	
  managed?




SAPO	
  Websecurity	
  Team                                                                      26
How it works > Certificate chain of trust check


      • What	
  can	
  go	
  wrong?
      • You	
  do	
  not	
  trust	
  what	
  your	
  browser	
  trusts
             – Firefox	
  ships	
  with	
  76	
  CAs
                    • Chunghwa	
  Telecom	
  Co.,	
  Ltd
                    • Türkiye	
  Bilimsel	
  ve	
  Teknolojik	
  AraşUrma	
  Kurumu	
  -­‐	
  
                      TÜBİTAK
             – Are	
  all	
  of	
  them	
  secure	
  and	
  properly	
  managed?
             – “I	
  have	
  not	
  been	
  able	
  to	
  find	
  the	
  current	
  owner	
  of	
  
               this	
  root.	
  Both	
  RSA	
  and	
  VeriSign	
  have	
  stated	
  in	
  
               email	
  that	
  they	
  do	
  not	
  own	
  this	
  root.”	
  said	
  one	
  of	
  
               the	
  maintainers	
  of	
  Mozilla	
  CA	
  list	
  (early	
  2010)
SAPO	
  Websecurity	
  Team                                                                           26
How it works > Certificate chain of trust check


      • What	
  can	
  go	
  wrong?
      • You	
  do	
  not	
  trust	
  what	
  your	
  browser	
  trusts
             – Recent	
  request	
  to	
  add	
  a	
  CA	
  to	
  Firefox
                    • “This	
  is	
  a	
  request	
  to	
  add	
  the	
  CA	
  root	
  cerAficate	
  for	
  
                      Honest	
  Achmed's	
  Used	
  Cars	
  and	
  CerAficates.”
                    • “Achmed's	
  uncles	
  all	
  vouch	
  for	
  the	
  fact	
  that	
  he's	
  
                      honest.”
                    • “The	
  purpose	
  of	
  this	
  cerAficate	
  is	
  to	
  allow	
  Honest	
  
                      Achmed	
  to	
  sell	
  bucketloads	
  of	
  other	
  cerAficates	
  and	
  
                      make	
  a	
  lot	
  of	
  money.”
             – It	
  was	
  not	
  granted.	
  This	
  9me.

SAPO	
  Websecurity	
  Team                                                                                   27
How it works > Certificate chain of trust check


      • How	
  to	
  mi9gate	
  this	
  problem?	
  
      • Remove	
  trust	
  or	
  delete	
  CAs
             – they	
  might	
  come	
  back	
  aler	
  solware	
  updates
             – how	
  do	
  you	
  evaluate	
  if	
  a	
  CA	
  can	
  be	
  trusted?
             – can	
  you	
  do	
  this	
  in	
  your	
  smartphone?




SAPO	
  Websecurity	
  Team                                                             28
How it works > Fetching content


      • At	
  this	
  point	
  the	
  browser	
  trusts	
  the	
  site	
  
        cer9ficate

      • No	
  HTTP	
  request	
  was	
  made	
  yet!

      • First	
  HTTP	
  request	
  is	
  made	
  only	
  now

                              GET / HTTP/1.1
                              Host: www.facebook.com


SAPO	
  Websecurity	
  Team                                                  29
How it works > Fetching content




SAPO	
  Websecurity	
  Team       30
How it works > Redirecting from HTTP to HTTPS


      • Lets	
  go	
  back	
  a	
  lidle
      • Imagine	
  you	
  type	
  hdp://www.facebook.com	
  
        instead	
  of	
  hdps...

      • Hit	
  enter!




SAPO	
  Websecurity	
  Team                                    31
How it works > Redirecting from HTTP to HTTPS


      • Lets	
  go	
  back	
  a	
  lidle
      • Imagine	
  you	
  type	
  hdp://www.facebook.com	
  
        instead	
  of	
  hdps...

      • Hit	
  enter!

      • Browser	
  connects	
  to	
  www.facebook.com:80




SAPO	
  Websecurity	
  Team                                    31
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     32
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     33
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     34
How it works > Redirecting from HTTP to HTTPS


      • What	
  can	
  go	
  wrong?




SAPO	
  Websecurity	
  Team                     35
How it works > Redirecting from HTTP to HTTPS


      • What	
  can	
  go	
  wrong?
      • Moxie	
  Marlinskipe	
  and	
  his	
  sslstrip	
  tool




SAPO	
  Websecurity	
  Team                                      35
How it works > Redirecting from HTTP to HTTPS


      • What	
  can	
  go	
  wrong?
      • Moxie	
  Marlinskipe	
  and	
  his	
  sslstrip	
  tool




SAPO	
  Websecurity	
  Team                                      35
How it works > Redirecting from HTTP to HTTPS


      • sslstrip	
  func9oning
             – MiTM	
  tool
             – maps	
  HTTPS	
  links	
  to	
  HTTP
             – maps	
  redirects	
  to	
  HTTPS	
  back	
  to	
  HTTP
             – maps	
  HTTPS	
  links	
  to	
  homograph-­‐similar	
  HTTPS	
  
               links
             – can	
  supply	
  a	
  lock	
  favicon
             – logging!



SAPO	
  Websecurity	
  Team                                                       36
How it works > Redirecting from HTTP to HTTPS


      • sslstrip	
  func9oning




SAPO	
  Websecurity	
  Team                     37
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     38
How it works > Redirecting from HTTP to HTTPS


      • You	
  type	
  hdp://www.facebook.com	
  and	
  get	
  
        redirected	
  to	
  hdps://www.facebook.com

            GET / HTTP/1.1
            Host: www.facebook.com


            HTTP/1.1 302 Found
            Location: https://www.facebook.com/


      • These	
  requests	
  are	
  not	
  protected	
  with	
  SSL!
SAPO	
  Websecurity	
  Team                                            39
How it works > Redirecting from HTTP to HTTPS


      • How	
  to	
  mi9gate	
  this	
  problem?




SAPO	
  Websecurity	
  Team                        40
How it works > Redirecting from HTTP to HTTPS


      • How	
  to	
  mi9gate	
  this	
  problem?
      • Make	
  site	
  available	
  only	
  in	
  HTTPS
             – Does	
  not	
  work:	
  most	
  users	
  type	
  HTTP	
  and	
  
               redirects	
  are	
  dangerous




SAPO	
  Websecurity	
  Team                                                       40
How it works > Redirecting from HTTP to HTTPS


      • How	
  to	
  mi9gate	
  this	
  problem?
      • Make	
  site	
  available	
  only	
  in	
  HTTPS
             – Does	
  not	
  work:	
  most	
  users	
  type	
  HTTP	
  and	
  
               redirects	
  are	
  dangerous
      • Use	
  HSTS:	
  HTTP	
  Strict	
  Transport	
  Security
             – Formerly	
  STS
             – Server	
  defined	
  policy	
  that	
  browsers	
  must	
  honor
             – Server	
  sends	
  HTTP	
  header	
  with	
  policy


SAPO	
  Websecurity	
  Team                                                       40
How it works > Redirecting from HTTP to HTTPS

            Strict-Transport-Security: max-age=15768000;includeSubdomains

      • This	
  header	
  says	
  two	
  things:
             – “Browser,	
  convert	
  all	
  requests	
  to	
  my	
  domain	
  to	
  
               HTTPS”
             – “Browser,	
  if	
  there	
  is	
  any	
  security	
  issue	
  with	
  the	
  
               connec9on	
  do	
  not	
  allow	
  progress”
      • Consequences:
             – the	
  user	
  types	
  hdp://www.facebook.com	
  and	
  the	
  
               browser	
  requests	
  hdps://www.facebook.com
             – any	
  HTTP	
  link	
  in	
  the	
  response	
  turns	
  to	
  HTTPS

SAPO	
  Websecurity	
  Team                                                                    41
How it works > Redirecting from HTTP to HTTPS


      • S9ll,	
  there	
  is	
  a	
  problem:




SAPO	
  Websecurity	
  Team                     42
How it works > Redirecting from HTTP to HTTPS


      • S9ll,	
  there	
  is	
  a	
  problem:
      • We	
  have	
  never	
  visited	
  the	
  site	
  or	
  policy	
  
        expired
             – browser	
  does	
  not	
  know	
  the	
  site	
  HSTS	
  policy
             – if	
  the	
  user	
  types	
  hdp://www.facebook.com	
  the	
  
               request	
  is	
  done	
  using	
  HTTP
             – TOFU:	
  Trust	
  On	
  First	
  Use
      • Recommenda9ons
             – first	
  visit	
  using	
  a	
  safe	
  wired	
  network
             – manually	
  instruct	
  the	
  browser	
  to	
  use	
  HSTS	
  
SAPO	
  Websecurity	
  Team                                                      42
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     43
How it works > Redirecting from HTTP to HTTPS


      • Server	
  support:	
  all,	
  just	
  send	
  the	
  header
      • Browser	
  support
             – Chrome	
  4.0.211.0	
  (with	
  preloaded	
  domain	
  list)
             – Firefox	
  4
      • Plugins
             – Safari	
  SSL	
  Everywhere
             – Firefox	
  EFF	
  HTTPS	
  Everywhere
             – Firefox	
  ForceTLS	
  (simple	
  list	
  edi9ng)



SAPO	
  Websecurity	
  Team                                                   43
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     44
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     44
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     45
How it works > Redirecting from HTTP to HTTPS




SAPO	
  Websecurity	
  Team                     45
How it works > Full HTTPS browsing


      • At	
  this	
  point	
  we	
  have	
  all	
  the	
  contents	
  of	
  the	
  
        site	
  served	
  over	
  HTTPS.	
  
      • How	
  can	
  we	
  be	
  sure?




      • No9ce	
  the	
  green	
  hdps	
  text


SAPO	
  Websecurity	
  Team                                                            46
How it works > Mixed content browsing


      • How	
  about	
  this	
  situa9on?




      • No9ce	
  the	
  red	
  strikethrough	
  hdps	
  text




SAPO	
  Websecurity	
  Team                                    47
How it works > Mixed content browsing




      • Chrome	
  console	
  output:




SAPO	
  Websecurity	
  Team             48
How it works > Mixed content browsing


      • What	
  is	
  the	
  problem?




SAPO	
  Websecurity	
  Team             49
How it works > Mixed content browsing


      • What	
  is	
  the	
  problem?
      • Sensi9ve	
  informa9on	
  can	
  be	
  captured
             – images:	
  your	
  last	
  night	
  weird	
  photos
             – javascript:	
  can	
  be	
  replaced	
  with	
  malicious	
  code
             – cookies:	
  sent	
  in	
  every	
  request!
             – full	
  browsing	
  informa9on
      • Browser	
  warnings
             – can	
  affect	
  site	
  reputa9on
             – most	
  users	
  ignore	
  this

SAPO	
  Websecurity	
  Team                                                        49
How it works > Mixed content browsing




SAPO	
  Websecurity	
  Team             50
How it works > Mixed content browsing




SAPO	
  Websecurity	
  Team             50
How it works > Mixed content browsing


      • How	
  to	
  mi9gate	
  this	
  problem?	
  




SAPO	
  Websecurity	
  Team                            51
How it works > Mixed content browsing


      • How	
  to	
  mi9gate	
  this	
  problem?	
  
      • HSTS
             – you	
  have	
  to	
  specify	
  all	
  domains	
  used	
  by	
  the	
  site
             – some	
  links	
  might	
  not	
  work	
  over	
  HTTPS
             – not	
  a	
  solu9on	
  for	
  all	
  sites




SAPO	
  Websecurity	
  Team                                                                  51
How it works > Mixed content browsing


      • How	
  to	
  mi9gate	
  this	
  problem?	
  
      • HSTS
             – you	
  have	
  to	
  specify	
  all	
  domains	
  used	
  by	
  the	
  site
             – some	
  links	
  might	
  not	
  work	
  over	
  HTTPS
             – not	
  a	
  solu9on	
  for	
  all	
  sites
      • Use	
  only	
  HTTPS	
  links	
  :)
             – use	
  a	
  proxy:	
  make	
  your	
  server	
  fetch	
  the	
  HTTP	
  
               content	
  and	
  serve	
  it	
  over	
  HTTPS
             – do	
  not	
  forget	
  the	
  favicon

SAPO	
  Websecurity	
  Team                                                                  51
How it works > Mixed content browsing


      • How	
  to	
  minimize	
  this	
  problem?	
  




SAPO	
  Websecurity	
  Team                             52
How it works > Mixed content browsing


      • How	
  to	
  minimize	
  this	
  problem?	
  
      • Secure	
  Cookies
             – the	
  server	
  can	
  set	
  the	
  secure	
  flag	
  for	
  the	
  cookie
             – a	
  secure	
  cookie	
  is	
  only	
  sent	
  over	
  HTTPS
             – beware:	
  this	
  does	
  not	
  prevent	
  the	
  mixed	
  content	
  
               warning,	
  it	
  ONLY	
  prevents	
  cookies	
  from	
  being	
  sent	
  
               over	
  HTTP




SAPO	
  Websecurity	
  Team                                                                  52
Recommendations


      • A	
  few	
  more	
  recommenda9ons




SAPO	
  Websecurity	
  Team                  53
Recommendations


      • A	
  few	
  more	
  recommenda9ons
      • Make	
  a	
  bookmark	
  with	
  the	
  HTTPS	
  link	
  for	
  the	
  
        site	
  (specially	
  homebanking	
  sites)
             – avoids	
  requests	
  using	
  HTTP
             – avoids	
  adacks	
  caused	
  by	
  typos
      • Use	
  a	
  plugin	
  that	
  warns	
  you	
  if	
  the	
  cer9ficate	
  
        has	
  changed
             – Perspec9ves	
  (www.networknotary.org)
             – Cer9ficate	
  Patrol

SAPO	
  Websecurity	
  Team                                                        53
Conclusions


      • Conclusions
             – SSL	
  3.0	
  and	
  TLS	
  1.0+	
  are	
  the	
  way	
  to	
  go
             – Use	
  HSTS	
  and	
  manually	
  add	
  your	
  important	
  sites
             – Update	
  your	
  browser	
  olen	
  or	
  automa9cally
             – Do	
  not	
  visit	
  sites	
  which	
  the	
  first	
  page	
  is	
  HTTP	
  using	
  
               public	
  wireless	
  networks
             – Do	
  not	
  create	
  sites	
  with	
  mixed	
  HTTP(S)	
  content
             – If	
  your	
  site	
  is	
  HTTPS	
  only,	
  use	
  secure	
  cookies



SAPO	
  Websecurity	
  Team                                                                             54
Questions




                                  Any	
  ques9ons?




                              9ago.mendo@telecom.pt

SAPO	
  Websecurity	
  Team                           55

More Related Content

What's hot

EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...
EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...
EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...Jisc
 
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...Louis Göhl
 
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASA
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASAОсновные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASA
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASACisco Russia
 
Инновации Cisco для операторов связи
Инновации Cisco для операторов связиИнновации Cisco для операторов связи
Инновации Cisco для операторов связиCisco Russia
 
Henrik Strøm - IPv6 from the attacker's perspective
Henrik Strøm - IPv6 from the attacker's perspectiveHenrik Strøm - IPv6 from the attacker's perspective
Henrik Strøm - IPv6 from the attacker's perspectiveIKT-Norge
 
Air Live Rs 1200
Air Live Rs 1200Air Live Rs 1200
Air Live Rs 1200guest52b3f5
 
How to Build Advanced Voice Assistants and Chatbots
How to Build Advanced Voice Assistants and ChatbotsHow to Build Advanced Voice Assistants and Chatbots
How to Build Advanced Voice Assistants and ChatbotsCisco DevNet
 
Eric Vyncke - Layer-2 security, ipv6 norway
Eric Vyncke - Layer-2 security, ipv6 norwayEric Vyncke - Layer-2 security, ipv6 norway
Eric Vyncke - Layer-2 security, ipv6 norwayIKT-Norge
 
Ipv6 tutorial
Ipv6 tutorialIpv6 tutorial
Ipv6 tutorialsaryu2011
 
ACI MultiPod Config Guide
ACI MultiPod Config GuideACI MultiPod Config Guide
ACI MultiPod Config GuideWoo Hyung Choi
 
AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...
AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...
AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...Amazon Web Services
 
Implementing an IPv6 Enabled Environment for a Public Cloud Tenant
Implementing an IPv6 Enabled Environment for a Public Cloud TenantImplementing an IPv6 Enabled Environment for a Public Cloud Tenant
Implementing an IPv6 Enabled Environment for a Public Cloud TenantShixiong Shang
 

What's hot (20)

EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...
EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...
EAP TLS, the Rolls-Royce of extensible authentication protocol (EAP) methods ...
 
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
 
Vandyke SecureCRT tips and tricks
Vandyke SecureCRT tips and tricksVandyke SecureCRT tips and tricks
Vandyke SecureCRT tips and tricks
 
Vpn(4)
Vpn(4)Vpn(4)
Vpn(4)
 
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASA
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASAОсновные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASA
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASA
 
Brksec 2101 deploying web security
Brksec 2101  deploying web securityBrksec 2101  deploying web security
Brksec 2101 deploying web security
 
Easy vpn
Easy vpnEasy vpn
Easy vpn
 
Инновации Cisco для операторов связи
Инновации Cisco для операторов связиИнновации Cisco для операторов связи
Инновации Cisco для операторов связи
 
Suggestion for an IPv6 Roll Out
Suggestion for an IPv6 Roll OutSuggestion for an IPv6 Roll Out
Suggestion for an IPv6 Roll Out
 
Gogo6 I Pv6 Access 2010 Sahara
Gogo6 I Pv6 Access 2010 SaharaGogo6 I Pv6 Access 2010 Sahara
Gogo6 I Pv6 Access 2010 Sahara
 
ION Sri Lanka - DANE: The Future of TLS
ION Sri Lanka - DANE: The Future of TLSION Sri Lanka - DANE: The Future of TLS
ION Sri Lanka - DANE: The Future of TLS
 
Henrik Strøm - IPv6 from the attacker's perspective
Henrik Strøm - IPv6 from the attacker's perspectiveHenrik Strøm - IPv6 from the attacker's perspective
Henrik Strøm - IPv6 from the attacker's perspective
 
Air Live Rs 1200
Air Live Rs 1200Air Live Rs 1200
Air Live Rs 1200
 
How to Build Advanced Voice Assistants and Chatbots
How to Build Advanced Voice Assistants and ChatbotsHow to Build Advanced Voice Assistants and Chatbots
How to Build Advanced Voice Assistants and Chatbots
 
Eric Vyncke - Layer-2 security, ipv6 norway
Eric Vyncke - Layer-2 security, ipv6 norwayEric Vyncke - Layer-2 security, ipv6 norway
Eric Vyncke - Layer-2 security, ipv6 norway
 
IoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideasIoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideas
 
Ipv6 tutorial
Ipv6 tutorialIpv6 tutorial
Ipv6 tutorial
 
ACI MultiPod Config Guide
ACI MultiPod Config GuideACI MultiPod Config Guide
ACI MultiPod Config Guide
 
AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...
AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...
AWS re:Invent 2016: Encryption: It Was the Best of Controls, It Was the Worst...
 
Implementing an IPv6 Enabled Environment for a Public Cloud Tenant
Implementing an IPv6 Enabled Environment for a Public Cloud TenantImplementing an IPv6 Enabled Environment for a Public Cloud Tenant
Implementing an IPv6 Enabled Environment for a Public Cloud Tenant
 

Similar to SSL, HSTS and other stuff with two eSSes

Securing TCP connections using SSL
Securing TCP connections using SSLSecuring TCP connections using SSL
Securing TCP connections using SSLSagar Mali
 
D1-3-Signaling
D1-3-SignalingD1-3-Signaling
D1-3-SignalingOleg Levy
 
Secure Sockets Layer(SSL)Certificate
Secure Sockets Layer(SSL)CertificateSecure Sockets Layer(SSL)Certificate
Secure Sockets Layer(SSL)CertificateCheapSSLUSA
 
Webinar SSL English
Webinar SSL EnglishWebinar SSL English
Webinar SSL EnglishSSL247®
 
KKBOX WWDC17 Security - Antony
KKBOX WWDC17 Security - AntonyKKBOX WWDC17 Security - Antony
KKBOX WWDC17 Security - AntonyLiyao Chen
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and sslMohd Arif
 
Computer network (4)
Computer network (4)Computer network (4)
Computer network (4)NYversity
 
BSET_Lecture_Crypto and SSL_Overview_FINAL
BSET_Lecture_Crypto and SSL_Overview_FINALBSET_Lecture_Crypto and SSL_Overview_FINAL
BSET_Lecture_Crypto and SSL_Overview_FINALGlenn Haley
 
(STG205) Secure Content Delivery Using Amazon CloudFront
(STG205) Secure Content Delivery Using Amazon CloudFront(STG205) Secure Content Delivery Using Amazon CloudFront
(STG205) Secure Content Delivery Using Amazon CloudFrontAmazon Web Services
 
Maximizing SPDY and SSL Performance (June 2014)
Maximizing SPDY and SSL Performance (June 2014)Maximizing SPDY and SSL Performance (June 2014)
Maximizing SPDY and SSL Performance (June 2014)Zoompf
 
Secure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAFSecure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAFAmazon Web Services
 
Secure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAFSecure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAFAmazon Web Services
 
Decrypting and Selectively Inspecting Modern Traffic
Decrypting and Selectively Inspecting Modern TrafficDecrypting and Selectively Inspecting Modern Traffic
Decrypting and Selectively Inspecting Modern TrafficShain Singh
 
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...Amazon Web Services
 
Random musings on SSL/TLS configuration
Random musings on SSL/TLS configurationRandom musings on SSL/TLS configuration
Random musings on SSL/TLS configurationextremeunix
 

Similar to SSL, HSTS and other stuff with two eSSes (20)

ION Cape Town - DANE: The Future of Transport Layer Security (TLS)
ION Cape Town - DANE: The Future of Transport Layer Security (TLS)ION Cape Town - DANE: The Future of Transport Layer Security (TLS)
ION Cape Town - DANE: The Future of Transport Layer Security (TLS)
 
Securing TCP connections using SSL
Securing TCP connections using SSLSecuring TCP connections using SSL
Securing TCP connections using SSL
 
D1-3-Signaling
D1-3-SignalingD1-3-Signaling
D1-3-Signaling
 
Secure Sockets Layer(SSL)Certificate
Secure Sockets Layer(SSL)CertificateSecure Sockets Layer(SSL)Certificate
Secure Sockets Layer(SSL)Certificate
 
Sequere socket Layer
Sequere socket LayerSequere socket Layer
Sequere socket Layer
 
Webinar SSL English
Webinar SSL EnglishWebinar SSL English
Webinar SSL English
 
Transport Layer Security
Transport Layer Security Transport Layer Security
Transport Layer Security
 
KKBOX WWDC17 Security - Antony
KKBOX WWDC17 Security - AntonyKKBOX WWDC17 Security - Antony
KKBOX WWDC17 Security - Antony
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
 
Computer network (4)
Computer network (4)Computer network (4)
Computer network (4)
 
Phifer 3 30_04
Phifer 3 30_04Phifer 3 30_04
Phifer 3 30_04
 
BSET_Lecture_Crypto and SSL_Overview_FINAL
BSET_Lecture_Crypto and SSL_Overview_FINALBSET_Lecture_Crypto and SSL_Overview_FINAL
BSET_Lecture_Crypto and SSL_Overview_FINAL
 
(STG205) Secure Content Delivery Using Amazon CloudFront
(STG205) Secure Content Delivery Using Amazon CloudFront(STG205) Secure Content Delivery Using Amazon CloudFront
(STG205) Secure Content Delivery Using Amazon CloudFront
 
Maximizing SPDY and SSL Performance (June 2014)
Maximizing SPDY and SSL Performance (June 2014)Maximizing SPDY and SSL Performance (June 2014)
Maximizing SPDY and SSL Performance (June 2014)
 
Secure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAFSecure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAF
 
Secure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAFSecure Content Delivery Using Amazon CloudFront and AWS WAF
Secure Content Delivery Using Amazon CloudFront and AWS WAF
 
Decrypting and Selectively Inspecting Modern Traffic
Decrypting and Selectively Inspecting Modern TrafficDecrypting and Selectively Inspecting Modern Traffic
Decrypting and Selectively Inspecting Modern Traffic
 
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
 
Sqlviking
SqlvikingSqlviking
Sqlviking
 
Random musings on SSL/TLS configuration
Random musings on SSL/TLS configurationRandom musings on SSL/TLS configuration
Random musings on SSL/TLS configuration
 

Recently uploaded

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

SSL, HSTS and other stuff with two eSSes

  • 1. SSL, HSTS and other stuff with two eSSes Versão 1.1 - 22/06/2011 Confraria  Security  &  IT Tiago  Mendo  -­‐  ,ago.mendo@telecom.pt
  • 2. Summary • History – SSL – TLS – SSL  vs  TLS • Protocol – Objec9ves – Applica9ons • How  it  works  -­‐  the  2  minutes  version • How  it  works  -­‐  the  30  minutes  version – Cer9ficate  valida9on – Cer9ficate  revoca9on  check – Cer9ficate  chain  of  trust  check – Fetching  content – Redirec9ng  from  HTTP  to  HTTPS – Full  HTTPS  browsing – Mixed  content  browsing • Recommenda9ons • Conclusions • Ques9ons SAPO  Websecurity  Team 2
  • 3. History > SSL • SSL  -­‐  Secure  Sockets  Layer • 1994  -­‐  SSL  1.0  created  by  Netscape,  never                          released • 1995  -­‐  SSL  2.0  released  in  Netscape  Navigator                              1.1.  Mul9ple  security  flaws  found • 1996  -­‐  SSL  3.0  released SAPO  Websecurity  Team 3
  • 4. History > TLS • TLS  -­‐  Transport  Layer  Security • 1999  -­‐  TLS  1.0  defined  in  RFC  2246,  using  SSL                          3.0  as  basis • 2006  -­‐  TLS  1.1  defined  in  RFC  4346 • 2008  -­‐  TLS  1.2  defined  in  RFC  5246 SAPO  Websecurity  Team 4
  • 5. History > SSL vs TLS SSL TLS 1.0 2.0 3.0 (3.1) 1.0 (3.2) 1.1 (3.3) 1.2 • SSL  3.0  and  TLS  1.0  are  equivalent  in  security,   but  incompa9ble • “Everybody  knows  SSL.  TLS  is  more  technically   accurate  but  sounds  like  a  cable  TV  network  or   a  disease" SAPO  Websecurity  Team 5
  • 6. Protocol > Objectives • Why  SSL? SAPO  Websecurity  Team 6
  • 7. Protocol > Objectives • Why  SSL? • To  protect  the  communica9ons  between  two   hosts: – content  confiden9ality – integrity – authen9city SAPO  Websecurity  Team 6
  • 8. Protocol > Objectives • Why  SSL? • To  protect  the  communica9ons  between  two   hosts: – content  confiden9ality – integrity – authen9city • Host  iden9ty  is  not  protected  (requires  IPSEC) • Normally  only  the  server  is  authen9cated   SAPO  Websecurity  Team 6
  • 9. Protocol > Applications Applica,on HTTP Transport TCP Network IP Data  link 802.11  -­‐  WLAN Physical Air SAPO  Websecurity  Team 7
  • 10. Protocol > Applications Applica,on HTTP HTTP  /  SSL Transport TCP TCP Network IP IP Data  link 802.11  -­‐  WLAN 802.11  -­‐  WLAN Physical Air Air SAPO  Websecurity  Team 7
  • 11. Protocol > Applications HTTP Applica,on HTTP HTTP  /  SSL SSL Transport TCP TCP TCP Network IP IP IP Data  link 802.11  -­‐  WLAN 802.11  -­‐  WLAN 802.11  -­‐  WLAN Physical Air Air Air SAPO  Websecurity  Team 7
  • 12. Protocol > Applications HTTP Applica,on HTTP HTTP  /  SSL SSL Transport TCP TCP TCP Network IP IP IP Data  link 802.11  -­‐  WLAN 802.11  -­‐  WLAN 802.11  -­‐  WLAN Physical Air Air Air • On  top  of  any  Transport  layer  (including  UDP) • Used  with  any  Applica9on  layer  protocol • HTTP,  SMTP,  XMPP,  SIP,  etc. • Used  in  OpenVPN SAPO  Websecurity  Team 7
  • 13. How it works - the 2 minutes version • Type  hdps://www.facebook.com  and  hit  enter SAPO  Websecurity  Team 8
  • 14. How it works > Traffic without SSL SAPO  Websecurity  Team 9
  • 15. How it works > Traffic with SSL SAPO  Websecurity  Team 10
  • 16. How it works - the 30 minutes version • Type  hdps://www.facebook.com  and  hit  enter • Browser  connects  to  www.facebook.com:443 • SSL  handshake  is  ini9ated • Server  sends  its  X.509  cer9ficate  to  the  client • The  client  starts  the  valida9on  process SAPO  Websecurity  Team 11
  • 17. How it works > Certificate validation • CN  matches  URL • For  each  cert.  in  the  chain – Has  not  expired – Was  not  revoked – Was  emided  by  a   trusted  CA SAPO  Websecurity  Team 12
  • 18. How it works > Certificate validation • CN  matches  URL • For  each  cert.  in  the  chain – Has  not  expired – Was  not  revoked – Was  emided  by  a   trusted  CA SAPO  Websecurity  Team 13
  • 19. How it works > Certificate validation • CN  matches  URL • For  each  cert.  in  the  chain – Has  not  expired – Was  not  revoked – Was  emided  by  a   trusted  CA SAPO  Websecurity  Team 14
  • 20. How it works > Certificate validation • CN  matches  URL • For  each  cert.  in  the  chain – Has  not  expired – Was  not  revoked – Was  emided  by  a   trusted  CA SAPO  Websecurity  Team 15
  • 21. How it works > Certificate revocation check • CRL  -­‐  Cer9ficate  Revoca9on  List • The  cer9ficate  specifies  a  CRL  URL • The  CRL  is  a  list  of  revoked  serial  numbers • Answer  can  be  cached  for  a  few  months – period  defined  by  the  CA • The  CRL  can  be  very  large:  enter  OCSP – expired  certs.  are  removed  from  the  CRL SAPO  Websecurity  Team 16
  • 22. How it works > Certificate revocation check • OCSP  -­‐  Online  Cer9ficate  Status  Protocol • The  cer9ficate  specifies  a  OCSP  server • Browser  asks  the  server  if  a  specific  cert.  is   s9ll  valid • Answer  can  be  cached  for  a  few  days – period  defined  by  the  CA • A  cert.  can  specify  both  the  CRL  and  OCSP SAPO  Websecurity  Team 17
  • 23. How it works > Certificate revocation check • What  can  go  wrong? SAPO  Websecurity  Team 18
  • 24. How it works > Certificate revocation check • What  can  go  wrong? • CRL  and  OCSP  servers  can  be  unreachable – Browsers  will  allow  user  to  con9nue – You  may  or  may  not  be  warned  about  this – Moxie  Marlinspike  found  that  OCSP  “try  again”   message  (error  code  3)  is  not  signed – Adack:  MiTM  with  a  revoked  cert.  and  reply  3  to   the  OCSP  requests.   SAPO  Websecurity  Team 18
  • 25. How it works > Certificate revocation check • How  to  mi9gate  this  problem? SAPO  Websecurity  Team 19
  • 26. How it works > Certificate revocation check • How  to  mi9gate  this  problem? • OCSP  Stapling  -­‐  Kerberos  style  9cket – Cert.  owner  frequently  asks  the  OCSP  for  a  9cket – Ticket  says  “I,  CA  guarantee  with  my  signature   that  this  cer9ficate  is  valid  for  a  few  hours” – Site  presents  this  9cket  to  reques9ng  browser • Fallback  to  OCSP • Support:  Chrome  on  Windows  Vista  or  higher SAPO  Websecurity  Team 19
  • 27. How it works > Certificate revocation check • How  to  mi9gate  this  problem? SAPO  Websecurity  Team 20
  • 28. How it works > Certificate revocation check • How  to  mi9gate  this  problem? • CRL  and  OCSP  cache SAPO  Websecurity  Team 20
  • 29. How it works > Certificate revocation check • How  to  mi9gate  this  problem? • CRL  and  OCSP  cache • Which  introduces  another  problem – If  a  cert.  is  compromised,  there  may  a  significant   window  of  vulnerability  (months  for  a  CRL) – Remember  the  Comodo  RA  compromise? – 9  certs.  were  issued  to  7  domains – certs.  were  revoked  in  15  minutes – Browser  vendors  immediately  issued  browser   updates SAPO  Websecurity  Team 20
  • 30. How it works > Certificate validation • CN  matches  URL • For  each  cert.  in  the  chain – Has  not  expired – Was  not  revoked – Was  emi@ed  by  a   trusted  CA SAPO  Websecurity  Team 21
  • 31. How it works > Certificate chain of trust check • The  server  sends  the   whole  cer9ficate  chain • For  each  cert.  in  the  chain  verify – is  properly  signed  by  the  CA  cer9ficate   immediately  higher  in  the  hierarchy – last  cer9ficate  is  explicitly  trusted  by  the  browser,   so  no  signature  verifica9on  is  done SAPO  Websecurity  Team 22
  • 32. How it works > Certificate chain of trust check • What  can  go  wrong? SAPO  Websecurity  Team 23
  • 33. How it works > Certificate chain of trust check SAPO  Websecurity  Team 24
  • 34. How it works > Certificate chain of trust check • What  can  go  wrong? • The  browser  does  not  know  the  root  CA – can  happen  if  you  are  using  an  old  browser/device SAPO  Websecurity  Team 25
  • 35. How it works > Certificate chain of trust check • What  can  go  wrong? • The  browser  does  not  know  the  root  CA – can  happen  if  you  are  using  an  old  browser/device • How  to  mi9gate  this  problem?   • Mul9-­‐roo9ng  CAs – Server  sends  a  longer  chain  with  more  CA   cer9ficates  higher  in  the  hierarchy – Both  CAs  trusted  by  Firefox SAPO  Websecurity  Team 25
  • 36. How it works > Certificate chain of trust check • What  can  go  wrong? SAPO  Websecurity  Team 26
  • 37. How it works > Certificate chain of trust check • What  can  go  wrong? • You  do  not  trust  what  your  browser  trusts – Firefox  ships  with  76  CAs • Chunghwa  Telecom  Co.,  Ltd • Türkiye  Bilimsel  ve  Teknolojik  AraşUrma  Kurumu  -­‐   TÜBİTAK – Are  all  of  them  secure  and  properly  managed? SAPO  Websecurity  Team 26
  • 38. How it works > Certificate chain of trust check • What  can  go  wrong? • You  do  not  trust  what  your  browser  trusts – Firefox  ships  with  76  CAs • Chunghwa  Telecom  Co.,  Ltd • Türkiye  Bilimsel  ve  Teknolojik  AraşUrma  Kurumu  -­‐   TÜBİTAK – Are  all  of  them  secure  and  properly  managed? – “I  have  not  been  able  to  find  the  current  owner  of   this  root.  Both  RSA  and  VeriSign  have  stated  in   email  that  they  do  not  own  this  root.”  said  one  of   the  maintainers  of  Mozilla  CA  list  (early  2010) SAPO  Websecurity  Team 26
  • 39. How it works > Certificate chain of trust check • What  can  go  wrong? • You  do  not  trust  what  your  browser  trusts – Recent  request  to  add  a  CA  to  Firefox • “This  is  a  request  to  add  the  CA  root  cerAficate  for   Honest  Achmed's  Used  Cars  and  CerAficates.” • “Achmed's  uncles  all  vouch  for  the  fact  that  he's   honest.” • “The  purpose  of  this  cerAficate  is  to  allow  Honest   Achmed  to  sell  bucketloads  of  other  cerAficates  and   make  a  lot  of  money.” – It  was  not  granted.  This  9me. SAPO  Websecurity  Team 27
  • 40. How it works > Certificate chain of trust check • How  to  mi9gate  this  problem?   • Remove  trust  or  delete  CAs – they  might  come  back  aler  solware  updates – how  do  you  evaluate  if  a  CA  can  be  trusted? – can  you  do  this  in  your  smartphone? SAPO  Websecurity  Team 28
  • 41. How it works > Fetching content • At  this  point  the  browser  trusts  the  site   cer9ficate • No  HTTP  request  was  made  yet! • First  HTTP  request  is  made  only  now GET / HTTP/1.1 Host: www.facebook.com SAPO  Websecurity  Team 29
  • 42. How it works > Fetching content SAPO  Websecurity  Team 30
  • 43. How it works > Redirecting from HTTP to HTTPS • Lets  go  back  a  lidle • Imagine  you  type  hdp://www.facebook.com   instead  of  hdps... • Hit  enter! SAPO  Websecurity  Team 31
  • 44. How it works > Redirecting from HTTP to HTTPS • Lets  go  back  a  lidle • Imagine  you  type  hdp://www.facebook.com   instead  of  hdps... • Hit  enter! • Browser  connects  to  www.facebook.com:80 SAPO  Websecurity  Team 31
  • 45. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 32
  • 46. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 33
  • 47. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 34
  • 48. How it works > Redirecting from HTTP to HTTPS • What  can  go  wrong? SAPO  Websecurity  Team 35
  • 49. How it works > Redirecting from HTTP to HTTPS • What  can  go  wrong? • Moxie  Marlinskipe  and  his  sslstrip  tool SAPO  Websecurity  Team 35
  • 50. How it works > Redirecting from HTTP to HTTPS • What  can  go  wrong? • Moxie  Marlinskipe  and  his  sslstrip  tool SAPO  Websecurity  Team 35
  • 51. How it works > Redirecting from HTTP to HTTPS • sslstrip  func9oning – MiTM  tool – maps  HTTPS  links  to  HTTP – maps  redirects  to  HTTPS  back  to  HTTP – maps  HTTPS  links  to  homograph-­‐similar  HTTPS   links – can  supply  a  lock  favicon – logging! SAPO  Websecurity  Team 36
  • 52. How it works > Redirecting from HTTP to HTTPS • sslstrip  func9oning SAPO  Websecurity  Team 37
  • 53. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 38
  • 54. How it works > Redirecting from HTTP to HTTPS • You  type  hdp://www.facebook.com  and  get   redirected  to  hdps://www.facebook.com GET / HTTP/1.1 Host: www.facebook.com HTTP/1.1 302 Found Location: https://www.facebook.com/ • These  requests  are  not  protected  with  SSL! SAPO  Websecurity  Team 39
  • 55. How it works > Redirecting from HTTP to HTTPS • How  to  mi9gate  this  problem? SAPO  Websecurity  Team 40
  • 56. How it works > Redirecting from HTTP to HTTPS • How  to  mi9gate  this  problem? • Make  site  available  only  in  HTTPS – Does  not  work:  most  users  type  HTTP  and   redirects  are  dangerous SAPO  Websecurity  Team 40
  • 57. How it works > Redirecting from HTTP to HTTPS • How  to  mi9gate  this  problem? • Make  site  available  only  in  HTTPS – Does  not  work:  most  users  type  HTTP  and   redirects  are  dangerous • Use  HSTS:  HTTP  Strict  Transport  Security – Formerly  STS – Server  defined  policy  that  browsers  must  honor – Server  sends  HTTP  header  with  policy SAPO  Websecurity  Team 40
  • 58. How it works > Redirecting from HTTP to HTTPS Strict-Transport-Security: max-age=15768000;includeSubdomains • This  header  says  two  things: – “Browser,  convert  all  requests  to  my  domain  to   HTTPS” – “Browser,  if  there  is  any  security  issue  with  the   connec9on  do  not  allow  progress” • Consequences: – the  user  types  hdp://www.facebook.com  and  the   browser  requests  hdps://www.facebook.com – any  HTTP  link  in  the  response  turns  to  HTTPS SAPO  Websecurity  Team 41
  • 59. How it works > Redirecting from HTTP to HTTPS • S9ll,  there  is  a  problem: SAPO  Websecurity  Team 42
  • 60. How it works > Redirecting from HTTP to HTTPS • S9ll,  there  is  a  problem: • We  have  never  visited  the  site  or  policy   expired – browser  does  not  know  the  site  HSTS  policy – if  the  user  types  hdp://www.facebook.com  the   request  is  done  using  HTTP – TOFU:  Trust  On  First  Use • Recommenda9ons – first  visit  using  a  safe  wired  network – manually  instruct  the  browser  to  use  HSTS   SAPO  Websecurity  Team 42
  • 61. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 43
  • 62. How it works > Redirecting from HTTP to HTTPS • Server  support:  all,  just  send  the  header • Browser  support – Chrome  4.0.211.0  (with  preloaded  domain  list) – Firefox  4 • Plugins – Safari  SSL  Everywhere – Firefox  EFF  HTTPS  Everywhere – Firefox  ForceTLS  (simple  list  edi9ng) SAPO  Websecurity  Team 43
  • 63. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 44
  • 64. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 44
  • 65. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 45
  • 66. How it works > Redirecting from HTTP to HTTPS SAPO  Websecurity  Team 45
  • 67. How it works > Full HTTPS browsing • At  this  point  we  have  all  the  contents  of  the   site  served  over  HTTPS.   • How  can  we  be  sure? • No9ce  the  green  hdps  text SAPO  Websecurity  Team 46
  • 68. How it works > Mixed content browsing • How  about  this  situa9on? • No9ce  the  red  strikethrough  hdps  text SAPO  Websecurity  Team 47
  • 69. How it works > Mixed content browsing • Chrome  console  output: SAPO  Websecurity  Team 48
  • 70. How it works > Mixed content browsing • What  is  the  problem? SAPO  Websecurity  Team 49
  • 71. How it works > Mixed content browsing • What  is  the  problem? • Sensi9ve  informa9on  can  be  captured – images:  your  last  night  weird  photos – javascript:  can  be  replaced  with  malicious  code – cookies:  sent  in  every  request! – full  browsing  informa9on • Browser  warnings – can  affect  site  reputa9on – most  users  ignore  this SAPO  Websecurity  Team 49
  • 72. How it works > Mixed content browsing SAPO  Websecurity  Team 50
  • 73. How it works > Mixed content browsing SAPO  Websecurity  Team 50
  • 74. How it works > Mixed content browsing • How  to  mi9gate  this  problem?   SAPO  Websecurity  Team 51
  • 75. How it works > Mixed content browsing • How  to  mi9gate  this  problem?   • HSTS – you  have  to  specify  all  domains  used  by  the  site – some  links  might  not  work  over  HTTPS – not  a  solu9on  for  all  sites SAPO  Websecurity  Team 51
  • 76. How it works > Mixed content browsing • How  to  mi9gate  this  problem?   • HSTS – you  have  to  specify  all  domains  used  by  the  site – some  links  might  not  work  over  HTTPS – not  a  solu9on  for  all  sites • Use  only  HTTPS  links  :) – use  a  proxy:  make  your  server  fetch  the  HTTP   content  and  serve  it  over  HTTPS – do  not  forget  the  favicon SAPO  Websecurity  Team 51
  • 77. How it works > Mixed content browsing • How  to  minimize  this  problem?   SAPO  Websecurity  Team 52
  • 78. How it works > Mixed content browsing • How  to  minimize  this  problem?   • Secure  Cookies – the  server  can  set  the  secure  flag  for  the  cookie – a  secure  cookie  is  only  sent  over  HTTPS – beware:  this  does  not  prevent  the  mixed  content   warning,  it  ONLY  prevents  cookies  from  being  sent   over  HTTP SAPO  Websecurity  Team 52
  • 79. Recommendations • A  few  more  recommenda9ons SAPO  Websecurity  Team 53
  • 80. Recommendations • A  few  more  recommenda9ons • Make  a  bookmark  with  the  HTTPS  link  for  the   site  (specially  homebanking  sites) – avoids  requests  using  HTTP – avoids  adacks  caused  by  typos • Use  a  plugin  that  warns  you  if  the  cer9ficate   has  changed – Perspec9ves  (www.networknotary.org) – Cer9ficate  Patrol SAPO  Websecurity  Team 53
  • 81. Conclusions • Conclusions – SSL  3.0  and  TLS  1.0+  are  the  way  to  go – Use  HSTS  and  manually  add  your  important  sites – Update  your  browser  olen  or  automa9cally – Do  not  visit  sites  which  the  first  page  is  HTTP  using   public  wireless  networks – Do  not  create  sites  with  mixed  HTTP(S)  content – If  your  site  is  HTTPS  only,  use  secure  cookies SAPO  Websecurity  Team 54
  • 82. Questions Any  ques9ons? 9ago.mendo@telecom.pt SAPO  Websecurity  Team 55