PT-2024-19405 · Flaskblog · Flaskblog

Adindrabkin

·

Published

2024-01-17

·

Updated

2024-01-26

·

CVE-2024-22414

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions flaskBlog (affected versions not specified)
Description The issue is related to improper storage and rendering of user comments on the /user/<user> page, allowing arbitrary javascript code execution. This is due to the use of the |safe tag in the user.html template, which prevents Flask from escaping the rendered content. The vulnerable code snippet is <div class="content" tag="content">{{comment[2]|safe}}</div>.
Recommendations To remediate this issue, remove the |safe tag from the HTML template user.html to prevent arbitrary javascript code execution. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

XSS

Weakness Enumeration

Related Identifiers

CVE-2024-22414
GHSA-MRCW-J96F-P6V6

Affected Products

Flaskblog