Vulnerability · Published Jan 17, 2024 · Assigned by GitHub_M
CVE-2024-22414User profile page vulnerable to Cross Site Scripting (XSS) in flaskBlog
Medium 6.5
In plain English
A medium-severity cross-site scripting in flaskBlog from DogukanUrker. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities).
Official description
flaskBlog is a simple blog app built with Flask. Improper storage and rendering of the `/user/<user>` page allows a user's comments to execute arbitrary javascript code. The html template `user.html` contains the following code snippet to render comments made by a user: `<div class="content" tag="content">{{comment[2]|safe}}</div>`. Use of the "safe" tag causes flask to _not_ escape the rendered content. To remediate this, simply remove the `|safe` tag from the HTML above. No fix is is available and users are advised to manually edit their installation.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| DogukanUrker | flaskBlog | * |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L