XSS Lightning talk

10

Click here to load reader

description

Held at Open Space Århus March 2012

Transcript of XSS Lightning talk

Page 1: XSS Lightning talk

Introduction to Cross Site Scripting 

Johnny Vestergaard <[email protected]>http://dk.linkedin.com/in/johnnykv

Lightning talk held at OSAA

March 2012

Page 2: XSS Lightning talk

XSS - Cross Site Scripting Worst name ever??

● Think of it as "JavaScript Injection".○ (and ignore the haters)

● Injection of malicious JavaScript on a site with the intend of client side execution.

● Three types: Reflected, Persistent and DOM based.● We will focus on Persistent XSS tonight.

Page 3: XSS Lightning talk

Safe website

Page 4: XSS Lightning talk

Vulnerable website

Page 5: XSS Lightning talk

Hey - it's just client side!

Page 6: XSS Lightning talk

Having a client side party

●Possibilities○Host scanning of client-side LAN○ Session takeover (cookie stealing)○Eavesdropping

■Keylogging■ Events

○Complete control of the page● Limitations

○Confined to the browser

Page 7: XSS Lightning talk

Demo

●Keylogger using metasploit

●Cookie stealer with python backend

Page 8: XSS Lightning talk

Demo #1 -  Keylogger with metasploit

Page 9: XSS Lightning talk

Demo #2 -  The Cookie Monster

https://gist.github.com/1968842

Page 10: XSS Lightning talk

Do it yourselfWhitehat style

● Backtrack 5○ http://www.backtrack-linux.org/

●OWASP Broken Web Applications Project○ VMware image with broken web apps○ http://bit.ly/yNsF9K

●Cookie Monster○ http://gist.github.com/1968842

● Slides○ http://www.slideshare.net/JohnnyKV/