Skip to content

Authorization Bypass

Moderate
DogukanUrker published GHSA-jw79-2xvp-76p8 Aug 19, 2025

Package

flaskBlog (python)

Affected versions

<= 2.8.0

Patched versions

None

Description

Disclaimer

This advisor is referred to my other security advisor, where GitHub asked for separate posts in order to get CVE IDs.

Authorization Bypass

Description

The code checks if the userRole is "admin" only when visiting the /admin page, but not when visiting its subroutes. Specifically, only the file routes/adminPanel.py checks the user role when a user is trying to access the admin page, but that control is not done for the pages routes/adminPanelComments.py and routes/adminPanelPosts.py.
Thus, an unauthorized user can bypass the inteded restrictions, leaking sensitive data and accessing the following pages:

  • /admin/posts
  • /adminpanel/posts
  • /admin/comments
  • /adminpanel/comments

PoC

image
The user accessing the page is NOT admin.

Solution

Add a control for the user role when a user tries to access the /admin/ subroutes.

Severity

Moderate

CVE ID

CVE-2025-55734

Weaknesses

Improper Protection of Alternate Path

The product does not sufficiently protect all possible paths that a user can take to access restricted functionality or resources. Learn more on MITRE.

Credits