CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-57176

CVE-2026-57176: Multi-Tenant Account Takeover via Identity Binding Collision in python-social-auth Vend Backend

Alon Barad
Alon Barad
Software Engineer

Sep 25, 2026·6 min read·19 visits

Executive Summary (TL;DR)

Multi-tenant integrations of python-social-auth using the Vend OAuth2 backend are vulnerable to complete account takeover because the library incorrectly relies on non-unique, shop-local numeric user IDs for database mappings.

An identity binding collision vulnerability in the Vend OAuth2 backend of python-social-auth (social-core) before version 5.0.0 allows unauthenticated remote attackers to take over local accounts in multi-tenant configurations. The flaw stems from relying on shop-local numeric user IDs as global social-auth identifiers, leading to collisions when identical IDs exist across distinct tenants.

Vulnerability Overview

The python-social-auth library (specifically via the social-core package) provides a federated identity mapping framework for Python web applications. One of its integrated modules is the VendOAuth2 backend, which handles authentication via Vend, a cloud-based point-of-sale (POS) platform.

In standard deployments, the backend authenticates users from external identity providers and associates their unique federated identifier (UID) with a local database record. This lookup acts as the primary access token validation step to establish active user sessions. The attack surface exists on any deployed Python web application using this backend that is configured as a multi-tenant OAuth application.

This vulnerability is classified as an Identity Binding Collision under CWE-289 (Authentication Bypass by Alternate Name). In multi-tenant environments, the unpatched library allows an attacker with a valid account on a specific tenant shop to authenticate and hijack a victim's account registered on a separate tenant shop, provided both accounts share the same numeric ID sequence.

Root Cause Analysis

The root cause of this vulnerability lies in a mismatch between the tenant isolation architecture of the Vend platform and the identity mapping design of the social-core library. Vend operates on a multi-tenant infrastructure where each merchant or shop operates inside its own isolated subdomain (e.g., shop-a.vendhq.com and shop-b.vendhq.com).

Inside individual shops, user records are indexed using auto-incrementing integers (e.g., id = 7). Because these integer sequences restart or increment independently per tenant, user ID values collide across different shops. User ID 7 exists in shop-a, and an unrelated User ID 7 exists in shop-b.

Prior to version 5.0.0, the VendOAuth2 backend class did not override the default unique identifier generation logic. It relied strictly on the shop-local numeric user ID (id) returned by the Vend API as the database-level social-auth UID. Consequently, when a multi-tenant application performed a lookup for a user with ID 7, the database could return the mapping for User ID 7 from a completely different tenant shop, enabling immediate identity theft.

Code Analysis & Patch Review

The security patch was introduced in Pull Request #1795 and resolved via Commit dee7ad1785877afd355dd6860598823d2631b76e. The key fix is the transition from a flat numeric ID to a composite string-based key that scopes the identifier to the specific tenant.

Below is the logic modification in social_core/backends/vend.py showing the addition of prefix validation and the composite scoping function:

# File: social_core/backends/vend.py
 
DOMAIN_PREFIX_RE = re.compile(
    r"(?=.{1,63}\Z)[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\Z"
)
 
def domain_prefix(self, response=None) -> str:
    prefix = (response or {}).get("domain_prefix") or self.data.get("domain_prefix")
    if not prefix:
        raise AuthMissingParameter(self, "domain_prefix")
    if isinstance(prefix, (list, tuple)):
        prefix = prefix[0] if prefix else ""
    prefix = str(prefix).lower()
    if not self.DOMAIN_PREFIX_RE.match(prefix):
        raise AuthInvalidParameter(self, "domain_prefix")
    return prefix
 
def scoped_uid(self, response) -> str:
    user_id = response.get("id")
    if user_id in (None, ""):
        raise AuthMissingParameter(self, "id")
    return f"{self.domain_prefix(response)}:{user_id}"

The logic implements a domain verification step using a regular expression to validate the prefix structure. This blocks directory-traversal or delimiter injection attacks. The new scoped_uid method constructs a scoped identity format: domain_prefix:user_id (e.g., shop-a:7).

Additionally, the patch implements a secure migration flow in get_user_id to upgrade legacy integer UIDs to the new scoped structure. It verifies that the domain_prefix associated with the legacy session matches the active login context before modifying the mapping. This prevents attackers from claiming an existing un-scoped database entry.

Exploitation Methodology

To successfully exploit CVE-2026-57176, the attacker must satisfy several preconditions. First, the target system must use social-core version < 5.0.0 with the Vend backend. Second, the target system must allow logins across multiple independent Vend subdomains. Third, the attacker must have administrative or user-level access on their own independent Vend store, and their account's internal numeric ID must match the internal numeric ID of the victim's account in the target store.

The attack flow is executed as follows:

  1. The attacker determines their own numeric ID inside their shop (e.g., 7) and initiates the OAuth login on the target application using their own shop subdomain (shop-b).
  2. The target application redirects the attacker to Vend for authentication.
  3. Upon successful login, Vend redirects back to the application with an access token.
  4. The application queries the Vend API and receives user data where the ID is 7.
  5. The application searches the local UserSocialAuth database for a record matching provider="vend" and uid="7".
  6. Since the victim (from shop-a) previously registered and has the same numeric ID, the application retrieves the victim's local account and establishes an active session for the attacker.

Impact Assessment

The security impact of this vulnerability is severe. Successful exploitation grants complete, unauthenticated access to the victim's account on the target web application. This allows attackers to perform any actions privileged to the hijacked user, including extracting personal information, modifying transaction data, or altering configurations.

The CVSS v3.1 base score is evaluated at 6.8 (Medium). The score reflects high confidentiality and integrity impact, but complexity is rated as High (AC:H) because exploitation depends on the target application running a multi-tenant setup and the coincidental overlap of auto-incremented integer keys between independent tenants.

While this CVE is not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public active exploits are observed, multi-tenant POS integration dashboards represent high-value targets, and the simplicity of triggering the collision makes remediation urgent.

Remediation & Mitigation Guidance

The definitive remediation path is upgrading the social-core package to version 5.0.0 or higher, which implements the scoped identification scheme natively.

pip install --upgrade social-auth-core>=5.0.0

Because the fix changes the structure of database lookups from integer values to composite string representations, database schemas must be checked. The underlying storage layer methods (get_social_auth and create_social_auth) have updated their type signatures from int to str. Administrators must ensure that the uid column of the UserSocialAuth database table (often social_auth_usersocialauth depending on the framework integration) has been migrated to support string structures like VARCHAR or equivalent.

If upgrading is not immediately possible, a temporary mitigation is to enforce strict subdomain validation. Developers should implement application-level filters that explicitly reject authentication requests if the supplied domain_prefix parameter does not match the organization's single, trusted tenant.

Fix Analysis (1)

Technical Appendix

CVSS Score
6.8/ 10
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected Systems

Web applications integrating python-social-auth (social-core) with Vend OAuth2 backend

Affected Versions Detail

Product
Affected Versions
Fixed Version
social-core
python-social-auth
< 5.0.05.0.0
AttributeDetail
CWE IDCWE-289
Attack VectorNetwork
CVSS v3.16.8
Exploit StatusNo active public exploits
KEV StatusNot Listed
ImpactHigh Confidentiality, High Integrity (Account Takeover)

MITRE ATT&CK Mapping

T1556Modify Authentication Process
Credential Access
T1078Valid Accounts
Initial Access
CWE-289
Authentication Bypass by Alternate Name

The software performs authentication based on a name or identifier, but it does not sufficiently verify that the identifier represents the authorized identity, allowing an attacker to claim the identity of another user by providing an alternate name or identifier that resolves to the same target account.

Vulnerability Timeline

Fix committed by contributor
2026-06-17
GitHub security advisory GHSA-fp7w-m676-w7gc and CVE published
2026-09-24

References & Sources

  • [1]Official GitHub Security Advisory
  • [2]Fix Commit
  • [3]Associated Pull Request
  • [4]GitHub Release 5.0.0
  • [5]CVE Record (CVE.org)

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 days ago•CVE-2026-16454
4.3

CVE-2026-16454: Object-Level Authorization Bypass in Eclipse hawkBit Direct Device Integration Controller

CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•CVE-2026-62284
8.6

CVE-2026-62284: Remote Code Execution and SSRF via Unsanitized Kubeconfig in OSAC Operator

CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.

Amit Schendel
Amit Schendel
8 views•8 min read
•2 days ago•CVE-2026-62361
5.5

CVE-2026-62361: Authenticated SQL Injection and Table Access Control Bypass in Listmonk Subscriber Export

CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).

Alon Barad
Alon Barad
9 views•11 min read
•2 days ago•CVE-2026-28385
5.0

CVE-2026-28385: Server-Side Request Forgery in Canonical LXD Image Import

CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
8 views•12 min read
•2 days ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
8 views•9 min read