When a person signs up with a social provider, Postiz redeems the authorization code with its own client credentials and hands the browser a provider token, which the sign-up form sends back to complete registration. The login and registration endpoints accepted any provider access token in that field and only asked the provider whose token it was, without checking which application it had been issued to.
An access token that the same provider issued to a different application for the same person was therefore enough to open that person's Postiz session, with all of their organizations, channels and the organization API key. The same token sent to the registration endpoint for a person without an account created an account tied to their provider identity, which their later genuine sign-ins would land in. Accounts that sign in with e-mail and password, and Apple sign-in, are not affected.
With the generic provider, an identity provider that gives each client a different (pairwise) subject identifier for the same person is not affected.
Exploitation was demonstrated against an unmodified backend build at commit 3a7d28b7ad96 with the generic OIDC provider and a local identity provider: an access token issued to a second application signed the attacker in as the victim, and the session returned the victim's organization API key. The Google and GitHub paths were exercised against local stand-ins for those providers with the same result.
Leaving the Google, GitHub and generic OAuth settings unset stops the attack, but also stops accounts created through those providers from signing in.
Upgrade to Postiz v2.26.1 or later.