Summary:
Registration exposes the registrant’s email address in URLs: the confirmation token and the post-registration redirect
Detailed Description:
MAMSRegistration puts the registrant’s email address into page URLs in two
places. Any analytics or marketing script on the page records the page URL, and
browsers pass it on as the referrer to the next page. That means the email
address ends up with third parties such as Google Analytics and HubSpot. On a
live site we found registrants’ email addresses stored in GA4 page-location data
and in a HubSpot contact’s “Last referring site” field. This conflicts with GDPR
and with Google Analytics’ terms, which forbid sending personally identifiable
information.
1. Confirmation link token. With email confirmation turned on, the confirmation
link takes the form /mamsreg/confirm/<returnid>/<token>/. The token is not a
random value. It is a Base64-encoded, PHP-serialised array holding
mr_input_username (the email address) and mr_input_code (the confirmation code).
Anyone who sees the URL can decode it and read the email address, and they also
get a working confirmation code. Because the module appears to unserialise this
token from the URL, it may also be open to PHP object injection, which would be
a security issue in its own right. This needs checking against the code.
2. Post-registration redirect. With confirmation turned off, a successful
registration redirects to the registration page with cntnt01mr_username and
cntnt01mr_email in the query string, both holding the email address in plain
text. This happens on every registration.
3. Invalid confirmation token. Requesting /mamsreg/confirm/<returnid>/<any
invalid token>/ returns an HTTP 500 error rather than a user-friendly “link
invalid or expired” message.
Steps to reproduce
Install MAMS and MAMSRegistration 1.1.0 and put {MAMSRegistration group=...} on
a page.
With email confirmation off, register a new user. The resulting URL contains
cntnt01mr_email=<address>.
With email confirmation on, register a new user and Base64-decode the token in
the emailed link. The result is a serialised array containing the email address
and the confirmation code.
Request a confirmation URL with a made-up token. The server returns a 500 error.