Flask application (app.py)
A Python Flask app with a /logout endpoint that takes a 'url' parameter, applies a weak blocklist for 'script' and 'onload', and renders the parameter unsafely in logout.html using the 'safe' filter, enabling reflected XSS.
app.py:1-17templates/logout.html:1-12