CHALLENGE DESCRIPTION
Welcome to Full Stack Conf, explore the future of JavaScript with a lineup of industry professionals and discover new techniques to advance your career as a web developer. But be very careful with the stay up to date form, we don’t sanitize anything and the admin logs in and checks the emails regularly, don’t try anything funny!! 😅
Introduction to
Cross-Site Scripting (XSS) is a multifaceted threat that exploits the trust between a user and a website. This vulnerability allows attackers to inject malicious scripts into websites that are later executed by unsuspecting users, often leading to unauthorized access, data theft, or session hijacking.
Analysis
There is a field that allow us to enter an email address:
Exploit
Just pick one of them here: https://github.com/payloadbox/xss-payload-list
The chosen payload is:
1 | <script src=1 href=1 onerror="javascript:alert(1)"></script> |

Preventing XSS
Defending against XSS attacks requires thorough input validation, output encoding, and implementing security mechanisms like Content Security Policy (CSP). Such measures can thwart attackers attempting to inject malicious scripts and maintain the integrity of web applications.