XSS Tutorial Demonstrates Session Hijacking and Credential Harvesting

· 9:48 · Watch on YouTube ↗

Summary

The tutorial demonstrates cross-site scripting in a chat app, using injected JavaScript to redirect users, capture session cookies, impersonate a user, and send credentials to a fake login page.

Key points

  • The presenter explains how user-submitted content can allow injected scripts to execute for other visitors.
  • A JavaScript payload redirects visitors from the demonstrated chat app.
  • The tutorial shows capturing a PHP session cookie and changing browser storage to impersonate another user.
  • The presenter uses the Social Engineering Toolkit to create a fake Google login page and demonstrate credential capture.
  • The video shows sample XSS payloads and advises that hacking requires permission.

Article Details

Topics
  • [00:17] Cross-site scripting and user-input injection
  • [01:35] Demonstrating JavaScript-based redirection
  • [02:19] Capturing and reusing session information
  • [06:11] Creating a fake login page and harvesting credentials
  • [08:50] Reviewing example XSS payloads