Skip to content

Instantly share code, notes, and snippets.

View MohamedAli00949's full-sized avatar
💭
I may be slow to respond.

MOHMAED ALI FAWZI MohamedAli00949

💭
I may be slow to respond.
View GitHub Profile
@MohamedAli00949
MohamedAli00949 / index.js
Last active August 5, 2026 00:17
blind cross-site scripting
/**
* index.js
*
* Minimal Express app demonstrating a classic reflected XSS
* vulnerability, for use as an article example.
*
* The app accepts a "message" via a form (or a "q" query param
* on GET) and displays it back to the user by concatenating it
* directly into an HTML string. Because the value is never
* encoded, any HTML/JS an author types into the field is parsed