CVE-2026-129771 — TYPO3 Extension "GSB Core" (5.8.3) — CWE-305
The extension replaces the token check of the multisite backend login from the extension multisite_belogin. That login signs a backend user into another site after a cross-site preview. The replacement did not compare the submitted token with the token that was issued, so the check passed whenever a valid token existed for the given backend user. An unauthenticated attacker who knows a backend user ID could therefore log in as that user, including as an administrator. The new session takes over the multi-factor authentication state of the user's session. Exploitation requires that the login path is reachable on a site host and that the targeted backend user has started a cross-site preview shortly before, as the token is valid for only 20 seconds. Previews on the same host do not create a token.
The extension replaces the token check of the multisite backend login from the extension multisite_belogin. That login signs a backend user into another site after a cross-site preview. The replacement did not compare the submitted token with the token that was issued, so the check passed whenever a valid token existed for the given backend user. An unauthenticated attacker who knows a backend user ID could therefore log in as that user, including as an administrator. The new session takes over the multi-factor authentication state of the user's session. Exploitation requires that the login path is reachable on a site host and that the targeted backend user has started a cross-site preview shortly before, as the token is valid for only 20 seconds. Previews on the same host do not create a token.
🎯 What is this vulnerability?
This vulnerability is a Broken Authentication flaw (CWE-305: Missing Authentication for Critical Function) located in a specific extension that overrides the login logic for the multisite_belogin module.
The Technical Flaw:
The extension is designed to handle "cross-site preview" logins. In a legitimate flow, a backend user initiates a preview on Site A, which generates a short-lived token (valid for 20 seconds). The user is then redirected to Site B, where the extension validates this token to sign the user into Site B's backend.
The critical error is in the token validation logic. The code checks for the existence of a valid token associated with a specific backend user ID, but it fails to compare the submitted token value against the issued token value.
- Vulnerable Logic (Pseudo-code):
// $submitted_token is from the request
// $user_id is from the request
// VULNERABLE: Only checks if A valid token exists for this user
if (token_exists_for_user($user_id)) {
login_user($user_id);
}// CORRECT: Compares the specific submitted token with the stored one
$stored_token = get_token_for_user($user_id);
if ($stored_token && hash_equals($stored_token, $submitted_token)) {
login_user($user_id);
}Because the check passes as long as any valid token exists for that user ID, an attacker who knows a valid user_id and can trigger or intercept a valid token (or simply wait for the 20-second window where a token exists) can authenticate as that user without knowing the password or the specific token value.
⚡ Attack Chain
1. Discovery & Reconnaissance
X-Powered-By headers or specific error pages.
* Scanning for known paths associated with the multisite_belogin extension (e.g., /preview, /login-preview, or specific extension endpoints).
* Crucial Prerequisite: The attacker must identify a valid Backend User ID (e.g., 1 for the main administrator). In many systems, user IDs are sequential and predictable.
2. Exploitation
The exploitation requires two conditions: 1. A valid token exists for the targetuser_id (issued within the last 20 seconds).
2. The attacker sends a request to the vulnerable login endpoint with that user_id.Note: The exact endpoint URI is not specified in the CVE description. The following is an illustrative example based on the vulnerability class.
Scenario: The administrator (User ID: 1) initiates a cross-site preview. A token is generated and stored in the session/cache for 20 seconds.
Attacker Action:
The attacker sends a GET or POST request to the vulnerable login handler. Since the check only verifies if a token exists for User ID 1, the attacker does not need to know the token value.
# Illustrative PoC (Endpoint is hypothetical)
# The attacker knows User ID 1 is the admin.
# The attacker sends a request to the preview login endpoint.
# The server checks: "Does a valid token exist for User ID 1?" -> YES (because the admin just started a preview).
# The server logs the attacker in as User ID 1.
curl -X GET "https://target-site.com/extension/multisite_belogin/preview-login" \
-H "User-Agent: Mozilla/5.0" \
-d "user_id=1" \
-c cookies.txtWhy this works:
The server-side code executes:
1. Receive user_id=1.
2. Query database/cache: SELECT token FROM tokens WHERE user_id=1 AND expires_at > NOW().
3. If a row is returned (which it is, because the admin started a preview 5 seconds ago), the condition if (token_exists) is TRUE.
4. The server creates a new session for the attacker, assigning it the identity of User ID 1.
5. MFA Bypass: The new session inherits the MFA state of the user's existing session. If the admin had already passed MFA in their original session, the attacker's new session is also considered "MFA verified."
3. Post-Exploitation
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Patching
token_exists() to hash_equals($stored_token, $submitted_token).multisite_belogin extension or the specific "cross-site preview" feature if it is not strictly required.2. Workarounds
location /extension/multisite_belogin/preview-login {
# Allow only internal IPs or specific trusted IPs
allow 10.0.0.0/8;
deny all;
} Shorten Token Lifetime: If the configuration allows, reduce the token validity period from 20 seconds to a shorter interval (e.g., 5 seconds) to reduce the attack window. Note: This is a mitigation, not a fix.*
3. Detection
user_id parameters.
* Correlate these requests with successful login events for the same user ID in a short time frame (within 20 seconds).
* Log Pattern Example:GET /extension/multisite_belogin/preview-login?user_id=1 HTTP/1.1" 302Followed shortly by:
POST /wp-admin/... HTTP/1.1" 200⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query