ssp web security
play

SSP - Web Security with Adam &amp; Ryan <;'"}()[]>{ - PowerPoint PPT Presentation

SSP - Web Security with Adam &amp; Ryan <;'"}()[]>{ XSSFish says, "Swim wif us" Todays Topics Sessions Why do we need them? What weaknesses can attackers take advantage of? Cross-site Scripting


  1. SSP - Web Security with Adam &amp; Ryan <;'"}()[]>{ XSSFish says, "Swim wif us"

  2. Today’s Topics • Sessions • Why do we need them? • What weaknesses can attacker’s take advantage of? • Cross-site Scripting • Conceptually, what is it? • What can an attacker do with it?

  3. A World w/o Sessions get Please login /control_panel

  4. A World w/o Sessions send /login Welcome John! data from form: user name = john password = money$

  5. A World w/o Sessions get Please login /control_panel

  6. Example with Sessions session id: get TH2S234S /control_panel Please login

  7. Example with Sessions send /login session id: Welcome John! TH2S234S data from form: user name = john password = money$

  8. Example with Sessions Hi John. session id: TH2S234S Here’s your get control panel /control_panel

  9. Sessions Shouldn’t Be • Predictable • Settable (session fixation)

  10. Sessions Shouldn’t Be • Predictable • Settable (session fixation)

  11. Predictable Sessions Session ID is one digit send /login session id: 3 data from form: Welcome John! user name = john password = money$ Victim

  12. Predictable Sessions session id: 3 Victim

  13. Predictable Sessions session id: 3 Victim session id: 1 Please login get /control_panel Attacker

  14. Predictable Sessions session id: 3 Victim session id: 2 Please login get /control_panel Attacker

  15. Predictable Sessions session id: 3 Victim Hi John. session id: 3 Here’s your get control panel /control_panel Attacker

  16. Sessions Shouldn’t Be • Predictable • Settable (session fixation)

  17. Session Fixation

  18. Session Fixation go here /login?SID=I_KNOW

  19. Session Fixation go here /login?SID=I_KNOW get /login?SID=I_KNOW

  20. Session Fixation go here /login?SID=I_KNOW session id: I_KNOW get Please login /login?SID=I_KNOW

  21. Session Fixation session id: I_KNOW

  22. Session Fixation send /login data from form: user name = john password = money$ session id: I_KNOW

  23. Session Fixation send /login Welcome John! data from form: user name = john password = money$ session id: I_KNOW

  24. Session Fixation session id: I_KNOW

  25. Session Fixation session id: I_KNOW Hi John. get /control_panel Here’s your session id: control panel I_KNOW

  26. Cross Site Scripting (XSS) • What is it? • Attacker is able to place his own code on a website • Why does it happen? • Website fails to sanitize data that attacker sends to it

  27. Cross Site Scripting (XSS) • XSS Attack • Attacker places JavaScript on a website • Website visitors unknowingly run the JavaScript • Attacker has control of website visitor • he can force the visitor to perform an action on the website • he can steal Session IDs (and thus become the visitor)

  28. XSS Example: A Blog /submit_comment is vulnerable to XSS

  29. XSS Example: A Blog /submit_comment is vulnerable to XSS submit /submit_comment XSS Payload

  30. XSS Example: A Blog /submit_comment is vulnerable to XSS submit /submit_comment Thank you for XSS your comment Payload

  31. XSS Example: A Blog /view_comments contains XSS Payload

  32. XSS Example: A Blog /view_comments contains XSS Payload session id: TH2S234S

  33. XSS Example: A Blog /view_comments contains XSS Payload get /view_comments session id: TH2S234S

  34. XSS Example: A Blog /view_comments contains XSS Payload get Here are the /view_comments comments session id: TH2S234S

  35. XSS Example: A Blog /view_comments contains XSS Payload session id: TH2S234S session id: TH2S234S

  36. XSS Example: A Blog attacker knows victim’s session id get /control_panel session id: TH2S234S

  37. XSS Example: A Blog attacker knows victim’s session id Hi John. get Here’s your /control_panel control panel session id: TH2S234S

Recommend


More recommend