Skip to content

365-Day: Active Https Cookie Hijacking

Mike Perry

Mike Perry explores 365-day: active https cookie hijacking at DEF CON 16, examining emergency-systems and practical defenses.

Summary

Architecture and Background

DEF CON 16 - Mike Perry: 365-Day: Active https cookie hijacking Last year during my Tor presentations at Black Hat and Defcon, and in a follow up post on BugTraq, I announced that many SSL secured websites are vulnerable to cookie hijacking by way of content element injection. Unfortunately, my announcement was overshadowed by Robert Graham's passive cookie stealing attacks (aka 'SideJacking').

Vulnerability Analysis

The difference between our attacks is this: instead of sniffing passively for cookies, it is possible to actively cull them from targets on your local network by injecting images/iframes for desired sites into unrelated webpages. Moreover, since many sites do not set the 'secure' bit for their SSL cookies, it is even possible to grab cookies used in https sessions and use them to impersonate users.

Exploitation and Demonstrations

This will be demonstrated. At the time of this writing, vulnerable SSL sites include Gmail, Facebook, Amazon, and many others.

Remediation and Defensive Strategies

Since wide-spread awareness of the threat seems to be the only way to convince these vendors that they need to secure their cookies, fully automated exploit code will be provided two weeks after the demonstration (however, it is also possible to steal insecure https cookies with just airpwn and wireshark). Mike Perry is a forward and reverse engineer employed by Riverbed Technology. He also moonlights as a volunteer for the Tor Project, and considers security a hobby. He is somewhat annoyed that the https cookie issues he discussed are still not fixed on most major websites, a full year later. For copies of the slides and additional materials please see the DEF CON 16 Archive here:

Related talks

Main Stage·1 hr 54 min

  • DEF CON
  • ICS / OT
  • Date: Aug 2008
  • Location: Las Vegas

Workshop

Workshop details workshop: Davix Workshop Need help understanding your gigabytes of application logs or network captures.

emergency-systemscritical-infrastructuretelecommunications+1

Main Stage·48 min

  • DEF CON
  • ICS / OT
  • Date: Aug 2008
  • Location: Las Vegas

Valsmith · Colin Ames

Valsmith and Colin Ames explores metapost-exploitation at DEF CON 16, examining emergency-systems and practical defenses.

emergency-systemscritical-infrastructuretelecommunications+1