Session Fixation
Unverified Email Registration Allows Attacker-Controlled Session to Become Associated With Another User’s Email
Summary
The application allows a user to register an account using an email address without verifying ownership of that email address.
As a result, an attacker can create an account using an email address they do not control and immediately obtain an authenticated session associated with that email.
When the legitimate owner of the email address later attempts to register using the same email address, the application treats the email as already registered. The attacker-controlled account/session remains active, creating an account ownership conflict.
If the attacker-controlled session remains valid after the legitimate owner completes the account setup or authentication flow, the attacker can continue accessing the account associated with the victim’s email address.
Affected Functionality
Host: api.cleeng.com
Affected functionality: Account registration / email ownership verification
Issue: Missing email ownership verification during account registration
Root Cause
The registration flow does not require the user to prove ownership of the supplied email address before creating and authenticating the account.
The application appears to treat possession of an email address string as sufficient to associate the address with a newly created authenticated account.
No verification step, such as an email verification link or OTP, is required before the account becomes usable.
Steps to Reproduce
Step 1 — Register using an email address
Using an email address that is not controlled by the attacker, initiate the registration process.
For testing purposes, this should be an email account controlled by the tester or a dedicated test account.
Example:
victim@example.com
Complete the registration process.
Step 2 — Observe account creation
The application creates the account without requiring proof of ownership of victim@example.com.
No email verification or OTP is required.
The attacker receives an authenticated session.
Example:
PHPSESSID=<attacker-session>
Step 3 — Verify authenticated access
Using the session obtained during registration, access an authenticated endpoint such as:
/webapi/dashboard/broadcaster/profile
The server returns authenticated account information.
This confirms that the unverified email was sufficient to create an authenticated account.
Step 4 — Legitimate owner attempts registration
Using the legitimate owner account for the same email address, attempt to register using:
victim@example.com
The application reports that the email address is already registered.
This demonstrates that the attacker was able to reserve an account using an email address without proving ownership.
Step 5 — Verify session persistence
After the legitimate owner completes the available account setup/authentication flow, test the previously obtained attacker session.
Use the original session:
Get Ahemd ashraf’s stories in your inbox
Join Medium for free to get updates from this writer.
PHPSESSID=<attacker-session>
Request an authenticated endpoint.
If the server continues to return the account associated with the email address, the original attacker-controlled session remains authenticated.
Observed Result
An account can be created and authenticated using an email address without proving ownership of that address.
The email address subsequently becomes associated with the attacker-created account, preventing the legitimate owner from registering normally.
Furthermore, the original authenticated session remains usable if the account ownership/authentication flow performed by the legitimate owner does not invalidate the attacker’s existing session.
Expected Result
The application should not consider an email address verified or establish full account ownership until the user proves control of the email address.
A secure registration flow should:
- Create the account in an unverified/pending state.
- Send a verification link or OTP to the supplied email address.
- Require successful verification before granting full authenticated access.
- Prevent unverified registrations from permanently claiming an email address.
- Invalidate or rotate existing sessions when account ownership or authentication state changes.
Security Impact
This behavior can allow an attacker to claim an account using an email address they do not control.
Depending on the affected account functionality, this can result in:
- Unauthorized association of an email address with an attacker-controlled account.
- Account ownership conflicts.
- Persistence of an attacker-controlled authenticated session.
- Potential unauthorized access to the account associated with the email address.
- Potential Account Takeover if the attacker’s session remains authenticated after the legitimate owner completes registration or authentication.
Proof of Concept
The attached video demonstrates the complete flow using test accounts controlled by the researcher:
- Registration using an unverified email address.
- Immediate creation of an authenticated attacker session.
- The email becomes registered without ownership verification.
- The legitimate owner encounters an existing-account state.
- The original attacker session remains authenticated and can access authenticated functionality.
Remediation
The registration process should require email ownership verification before granting full account access.
Recommended changes:
- Require email verification before activating the account.
- Keep newly registered accounts in an unverified state.
- Do not grant full authenticated privileges before verification.
- Do not permanently reserve an email address based solely on an unverified registration.
- Invalidate existing sessions when account ownership or authentication credentials are established or changed.
- Review account recovery and password-reset flows to ensure email ownership is consistently verified.
Security Note
The issue should be considered separately from the reported session-fixation vulnerability. The session-fixation issue concerns session identifier lifecycle and regeneration, while this issue concerns the application’s failure to establish ownership of the email address during registration.




