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

Securing Single Page Applications

Securing Single Page Applications

Slide deck used for recent presentation at Hydeabad's AngularJS User Group meetup.

Zakiullah Khan

December 07, 2014
Tweet

More Decks by Zakiullah Khan

Other Decks in Programming

Transcript

  1. OWASP 2013 Top 10 A1 - Injection A2 - Broken

    Authentication & Session Management A3 - Cross-Site Scripting (XSS) A4 - Insecure Direct Object References A5 - Security Misconfiguration A6 - Sensitivity Data Exposure A7 - Missing Function Level Access Control A8 - Cross-Site Request Forgery (CSRF) A9 - Using Components with Known Vulnerabilities A10 - Unvalidated Redirects & Forwards
  2. OWASP 2013 Top 10 A1 - Injection A2 - Broken

    Authentication & Session Management A3 - Cross-Site Scripting (XSS) A4 - Insecure Direct Object References A5 - Security Misconfiguration A6 - Sensitivity Data Exposure A7 - Missing Function Level Access Control A8 - Cross-Site Request Forgery (CSRF) A9 - Using Components with Known Vulnerabilities A10 - Unvalidated Redirects & Forwards
  3. Defence Encrypt session data ( SSL + HMAC + Salt)

    Timeout idle sessions No plaintext anywhere Authenticate for sensitive data
  4. Defence Always validate user input Escape out URLs, JS data

    and Error pages Rely on program data, not user data
  5. JSON Web Token (JWT) Compact URL-safe means of representing claims

    to be transferred between two parties. The claims in JWT are encoded as JSON object that is digitally signed using JWS.