1
Password Managers: Risks, Pitfalls, and Improvements David Silver, Suman Jana, Dan Boneh Page Load Page Load Automatic Autofill Manual Autofill Types of Autofill Coffee Shop Attacker (2 Stages) Secure Home Network Attacker-controlled Network 1. 2. User never visits or logs into site, yet attacker steals password from password manager User logs in to site, saves password in password manager Force browser to load login page Inject malicious JS into login page Steal passwords without user knowledge or interaction Sweep Attacks iFrame Attack Invisible Attack iFrame a.com Invisible Attack iFrame b.com Window Attack Disguised Attack Window a.com Disguised Attack Window b.com Redirect Attack Attacker redirects user to b.com Attacker attacks b.com Attacker redirects user back to a.com User requests a.com User continues browsing unaware Modifying the login page Login Page over HTTP Broken HTTPS Active Mixed Content XSS Injection Router admin page HTTPS cert <form action="login.php steal_password.php"> Action Exfiltration Defense: Secure Filling • Manual autofill: require user interaction before filling • Make password field unreadable to JavaScript • Allow login form to submit only when action matches action when password was saved Stealth Exfiltration Evil Injected Javascript Reads Sends Makes password managers more secure than manually typing your password! Automatic Autofill PMs Cloud Sync Secure Home Network Save Password Attacker's Network Steal Password Sync Amplification Manual Autofill PMs 17% of the Alexa Top 500 sites served login pages over HTTP but submitted over HTTPS Even manually typed passwords can be exfiltrated - a problem password managers can help solve Vulnerable to sweep attacks Passwords can be stolen from any device PM syncs with! Not vulnerable to sweep attacks Password can still be stolen if user logs in Fills without user interaction Enables many attacks!

David Silver, Suman Jana, Dan Boneh - Stanford University€¦ · David Silver, Suman Jana, Dan Boneh Page Load Page Load Automatic Autofill Manual Autofill Types of Autofill Coffee

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: David Silver, Suman Jana, Dan Boneh - Stanford University€¦ · David Silver, Suman Jana, Dan Boneh Page Load Page Load Automatic Autofill Manual Autofill Types of Autofill Coffee

Password Managers: Risks, Pitfalls, and ImprovementsDavid Silver, Suman Jana, Dan Boneh

Page Load

Page Load

Automatic Autofill

Manual Autofill

Types of Autofill

Coffee Shop Attacker (2 Stages)

Secure Home Network Attacker-controlled Network1. 2.

User never visits or logs into site,

yet attacker steals password from

password manager

User logs in to site, saves password in password manager

Force browser to load login

page

Inject malicious JS into

login page

Steal passwords without user knowledge or

interaction

Sweep Attacks

iFrame Attack

Invisible Attack iFrame

a.com

Invisible Attack iFrame

b.com

Window Attack

Disguised Attack Window

a.com

Disguised Attack Window

b.com

Redirect Attack

Attacker redirects user to b.com

Attacker attacks b.com

Attacker redirects user back to

a.com

User requests a.com

User continues browsing unaware

Modifying the login page

• Login Page over HTTP • Broken HTTPS• Active Mixed Content• XSS Injection• Router admin page HTTPS cert

<form action="login.php steal_password.php">

Action Exfiltration

Defense: Secure Filling

• Manual autofill: require user interaction before filling

• Make password field unreadable to JavaScript

• Allow login form to submit only when action matches action when password was saved

Stealth Exfiltration

Evil Injected Javascript

Reads Sends

Makes password managers more

secure than manually typing your password!

Automatic Autofill PMs

Cloud Sync

Secure Home Network

Save Password

Attacker's Network

Steal Password

Sync Amplification

Manual Autofill PMs17% of the Alexa

Top 500 sites served login pages over

HTTP but submitted over HTTPS

Even manually typed passwords can be

exfiltrated - a problem password managers

can help solve

Vulnerable to sweep attacks

Passwords can be stolen from any device PM

syncs with!

Not vulnerable to sweep attacks

Password can still be stolen if user logs in

Fills without user interactionEnables many attacks!