This document discusses cross-site scripting (XSS) attacks, a vulnerability in web applications that allows attackers to inject malicious code into users' browsers. It details a structured lab exercise designed to exploit an XSS vulnerability in a modified version of the Elgg social networking application, guiding students to create XSS worms that can manipulate victim profiles and propagate themselves among users. The exercise outlines prerequisites, environment setup, coding tasks, and implementation details concerning crafting malicious JavaScript to achieve the objectives of the lab.