XSS Vulnerability Scanner in Python

Goal

The goal of this project is to automate the detection of Cross-Site Scripting (XSS) vulnerabilities in web applications using Python. This scanner will crawl web pages, find forms, and test for XSS injection points, helping security researchers and developers identify potential security flaws.

Task

Students will:
1️⃣ Use Python and Requests to interact with web applications and extract links.
2️⃣ Implement a web crawler to find all pages of a target website.
3️⃣ Extract and analyze HTML forms using BeautifulSoup.
4️⃣ Inject XSS payloads into detected forms and URLs.
5️⃣ Detect vulnerabilities based on server responses.
6️⃣ Print results highlighting vulnerable links and forms.

Learning Outcomes

By completing this project, students will:

✅ Understand how web crawling works and how to extract links dynamically.
✅ Learn about Cross-Site Scripting (XSS) vulnerabilities and how attackers exploit them.
✅ Gain hands-on experience with BeautifulSoup, Requests, and URL parsing in Python.
✅ Develop an ethical hacking mindset by identifying security flaws in web applications.
✅ Improve problem-solving skills by automating security testing.