Upgrade to Pro — share decks privately, control downloads, hide ads and more …

"Slow down online guessing attack with Device C...

OWASP Moscow
December 04, 2017

"Slow down online guessing attack with Device Cookies", Anton Dedov

OWASP Russia Meetup #6

OWASP Moscow

December 04, 2017
Tweet

More Decks by OWASP Moscow

Other Decks in Technology

Transcript

  1. App

  2. Attacker goals Password for specific account Password for any account

    in a system Password for any account in any system
  3. Authentication attacks: Mitigations M-FA / M-Step UX! Password policy Magic

    106 Rate limiting ßßßßßßß Authentication parameters e.g. time, location, etc. Monitoring e.g. haveibeenpwned.com
  4. Account lockout Lock account Effective Easy DoS Lock (account, IP)

    Somewhat DoS mitigation Botnets Proxies IPv6 DoS as a collateral damage
  5. App Lockout all unknown devices at once Lockout individual user

    per device cookie user : password user : password Device Cookie
  6. Set-Cookie: KnownDevice=JWT { "alg": "HS256", "typ": "JWT” } . {

    "aud": "device-cookie", "sub": "[email protected]", "jti": "40e2a97a2ab37406” }
  7. Threats & Mitigations Threat Mitigation Online attack against one user

    Password policy Online attack using stolen device cookies Limited, prevent cookie leaks Online attack against multiple users Not mitigated Spoof device cookie Crypto Tamper with existing device cookie Crypto DoS for specific account OOB device cookie issue DoS for specific account when client is used by different accounts Device cookies per account
  8. Implementation recommendations Use good crypto, like HMAC-SHA2 or signed JWT.

    Prevent cookie leakage with Secure & HttpOnly flags. Issue cookie for valid reset password link. Issue new device cookie after each successful login. Include user ID into cookie name (privacy concerns?).
  9. References OWASP: Slow Down Online Guessing Attacks with Device Cookies

    PasswordsCon, and specific talks from PasswordsCon 14: • Marc Hause talk Online Password Attacks • Alec Muffet talk Facebook Password Hashigh & Authentication An Administrator’s Guide to Internet Password Research