GitHub Advisoryadvisory · PyPI

GHSA-2gr8-3wc7-xhj3 social-auth-app-django affected by Improper Handling of Case Sensitivity

MEDIUM Published 2024-04-24 Modified 2024-08-28 Official page ↗
Aliases
CVE-2024-32879
Ecosystem
PyPI
Packages
social-auth-app-django
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
Weaknesses
CWE-178, CWE-303
Reviewed
2024-04-24

Affected packages

• PyPI social-auth-app-django: < 5.4.1 → fixed in 5.4.1

Description

Impact Due to default case-insensitive collation in MySQL or MariaDB databases, third-party authentication user IDs are not case-sensitive and could cause different IDs to match. Patches This issue has been addressed by https://github.com/python-social-auth/social-app-django/pull/566 and fix released in 5.4.1. Workarounds An immediate workaround would be to change collation of the affected field: ```mysql ALTER TABLE `social_auth_usersocialauth` MODIFY `uid` varchar(255) COLLATE `utf8_bin`; ``` References This issue was discovered by folks at https://opencraft.com/.

Related

Alias · CVE (1)

  • CVE-2024-32879 Python Social Auth is a social authentication/registration mechanism. vulnerability

Weakness · CWE (2)

  • CWE-178 Improper Handling of Case Sensitivity weakness
  • CWE-303 Incorrect Implementation of Authentication Algorithm weakness

References