flaskBlog Arbitrary File Deletion Vulnerability

Vulnerability

A vulnerability allowing arbitrary file deletion has been identified in flaskBlog version 2.6.1. This issue arises in the '/post/{postTitle}' component, where the application fails to properly verify the ownership of articles. As a result, attackers can delete titles of articles created by other users by sending a crafted POST request.

Impact

Exploitation of this vulnerability allows for unauthorized deletion of articles, potentially leading to loss of content and disruption of user activity on the platform.

Reproduction

To reproduce this vulnerability, send a POST request to the '/post/{postTitle}' endpoint, replacing '{postTitle}' with the title of an article created by another user. The request must include a 'csrf_token' and the 'postDeleteButton' parameter to trigger the deletion.

Remediation

Users are advised to implement proper access controls by verifying that the user attempting to delete an article is the original author. This can be done by checking the user's identity against the article's ownership records before allowing the deletion.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
0.6
exploitability
6.8
remediation
6.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.