Description
Python Social Auth is a social authentication/registration mechanism. Prior to 5.0.2, the LINE backend exchanges an authorization code without validating the returned OAuth state. An attacker can begin authorization for an attacker-controlled LINE account and induce a victim to visit the resulting callback URL, causing the application to log the victim into the attacker's account. When account linking is enabled, the same missing validation can link the attacker's LINE identity to the victim's existing account and create a persistent unauthorized login path. Only applications with the LINE backend enabled are affected. This issue is fixed in version 5.0.2.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
python-social-auth social-core
< 5.0.2affected
References
- https://github.com/python-social-auth/social-core/security/advisories/GHSA-526j-582w-7fm9 ↗
- https://github.com/python-social-auth/social-core/pull/1829 ↗
- https://github.com/python-social-auth/social-core/commit/5b3b90d07ebccc1f5b076445b27ea35ec059764b ↗
- https://github.com/python-social-auth/social-core/releases/tag/5.0.2 ↗