Open redirect in a Python OAuth flow

News1 min read

We have released a new open redirect challenge in the Python, built around an OAuth login flow.

An open redirect happens when an application sends users to a destination taken from the request without sufficient validation. After signing in, an app can send the user back to the page they started on. If that destination isn’t checked, the login flow can end on any site.

The impact is phishing: the link starts on a domain the user trusts and lands on the attacker’s.

The challenge is inspired by CVE-2026-28415, an open redirect in the OAuth login and logout endpoints of Gradio, a Python library for building machine learning demos.

Can you identify and fix the flaw?

:backhand_index_pointing_right: Play it in the Python game: Play - SecDim

Questions or comments? Discuss this post on SecDim Community →

Try it yourself

Find, Hack and Fix Your First Vulnerability

Reading about security bugs is one thing — fixing one is how the skill sticks. Play a free challenge from the wargame, no setup required.