Skip to content
OAuth / SSO Write-up Intermediate

Critical vulnerability in Flask AppBuilder — CVE-2024–25128

Flask-AppBuilder with AUTH_TYPE AUTH_OID used the user-supplied OpenID URL directly, allowing an attacker to forge requests to a malicious OpenID service. This could grant unauthorised access if the backend can reach the attacker's service.

systemweakness.com

Published on systemweakness.com

Hey there, fellow cyber enthusiasts and guardians of the digital fortress! 🛡️ In our continuous journey through the labyrinth of cybersecurity, we’ve stumbled upon a rather intriguing gatekeeper: CVE-2024–25128. It’s a shadow lurking in the depths of Flask-AppBuilder, waiting for an unwitting passerby to trip into its…

ElNiak, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The login handler passed the user-supplied OpenID URL directly to the authentication library without checking it against a list of trusted providers.

Impact

An attacker could gain unauthorised access if they deploy a custom OpenID service that the backend can access.

What the attacker needed

Flask-AppBuilder with AUTH_TYPE AUTH_OID; Attacker-controlled OpenID service reachable by backend

The fix

The vulnerability was fixed in Flask-AppBuilder 4.3.11 by validating the OpenID URL against a pre-defined list of trusted providers before proceeding with login.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

OpenID is a way to log in to a website using an account from another service. The framework trusted whatever OpenID address the user typed in, so an attacker could point it to their own fake service and trick the backend into logging them in.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.