提交 #768226: Jcharis Machine-Learning-Web-Apps <=1.0.0 Reflected XSS信息

标题Jcharis Machine-Learning-Web-Apps <=1.0.0 Reflected XSS
描述The POST /preview endpoint takes user input from request.form['newtext'] and passes it directly to render_template() as a template variable. If the Jinja2 template renders newtext without escaping (e.g. using {{ newtext | safe }}), arbitrary HTML/JavaScript is injected into the response. The POC submits <img src=1 onerror=alert(9)> and the payload executes in the browser, confirming Reflected XSS. An attacker can craft a malicious link to steal session cookies or perform actions on behalf of the victim.
来源⚠️ https://github.com/Jcharis/Machine-Learning-Web-Apps/issues/15
用户
 ZAST.AI (UID 87884)
提交2026-02-26 13時54分 (8 月前)
管理2026-03-11 13時56分 (13 days later)
状态已接受
VulDB条目350391 [Jcharis Machine-Learning-Web-Apps 直到 a6996b634d98ccec4701ac8934016e8175b60eb5 Jinja2 Template app.py render_template 跨网站脚本]
积分20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!