From Blocked to Registered: Two Email Blacklist Bypass Techniques
An authentication service's email blacklist compared addresses literally, so a blocked user could register by inserting dots into the local part of their address or by using an alternative official domain of the same email provider. This let blocked users bypass the administrator's registration restrictions.
medium.com
Published on medium.com
Bug Bounty
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Barbrosa.com is the name used in this write-up for a service that handles user registration and login on behalf of other websites. Instead of building their own authentication system, site owners integrate with it, and it takes care of sign-up and sign-in for their users. The program was public on HackerOne.
The feature under examination is the Blacklist. Administrators can block a specific email address from registering, or block an entire email provider so that no address belonging to that provider can sign up. Phone numbers can be blocked the same way.
Neither of the two issues described here was accepted by the program. The author presents them as ways of thinking about blacklist logic rather than as confirmed vulnerabilities.
Setup
The write-up does not describe any special tooling, accounts or versions. The only precondition is an administrator who has placed an entry on the blacklist, either a single address or a whole provider domain, and an attacker who controls an address that the blacklist is meant to stop.
Finding it
The starting point was a blacklist entry for one specific user:
[redacted]
When the owner of that address tried to register, the application returned an error, as intended. Inspecting the API showed the endpoint used to begin registration:
POST /api/v1/init
with the request body:
{ "email": "[redacted]"}
The normal response to that request was 401.
The researcher then tried an email normalisation trick, inserting dots into the local part:
{ "email": "[redacted]"}
This was accepted, and the system sent the OTP to the original mailbox. The dotted form was accepted and the OTP arrived at the original mailbox.
Exploitation
Step 1: get the OTP delivered past the blacklist
Send the registration initiation request with a dotted variant of the blocked address:
{ "email": "[redacted]"}
The dotted variant bypassed the restriction and the OTP was sent to the original mailbox. The OTP is delivered to the real mailbox behind [redacted], which the attacker controls.
Step 2: try to complete registration
Registration is completed through a second endpoint:
POST /api/v1/auth
with the body:
{ "email": "[redacted]", "code": "OTP"}
Submitting the OTP this way returned an error. At first this looked like the second endpoint was properly protected.
Step 3: apply the same variation to the completion request
The researcher reasoned that the system might be treating email addresses literally at this endpoint too. The email in the second request was changed in exactly the same way as in the first, using the variation that had already fooled the OTP delivery:
{ "email": "[redacted]", "code": "OTP"}
This worked, and the account was created.
What the researcher tested alongside it
The report explains that multiple email providers were tested and that the protection worked correctly for them. For example, with:
[redacted]
changing it to:
[redacted]
did not bypass the protection. The system correctly rejected it.
The triager's response was that an administrator who wants to block a specific user should add every possible variation of the address. In other words, to block:
[redacted]
they should also block:
[redacted]@[redacted]@[redacted]
The researcher disagreed with this position and was still waiting for a reply when the write-up was published.
Step 4: bypass a provider-wide block with a sibling domain
The second issue uses the same Blacklist feature, but this time the administrator blocked an entire provider. With proton.me blocked, no address ending in @proton.me could register.
Instead of the blocked domain, the researcher used another official domain owned by the same provider. Rather than:
[redacted]
the registration used:
[redacted]
pm.me is an official domain provided by Proton, and the registration succeeded.
As with the first issue, other providers were tested and handled correctly. When gmail.com was blocked, the researcher could not bypass it with:
googlemail.com
even though googlemail.com is also an official Gmail domain. The application treated both domains as the same provider.
The triager's reply was that an administrator who wants to block Proton users should add pm.me manually.
Root cause
Both issues come from the blacklist comparing the submitted email string against stored entries without normalising it to the canonical mailbox or provider first.
In the first case, the local part is compared literally, so a dotted variant of a blocked address does not match the entry, while the downstream mail delivery still routes the OTP to the same mailbox. The same literal comparison is repeated at the completion endpoint, which is why the identical variation had to be used there as well.
The second case is a provider-level version of the same mistake: the block is keyed on the domain string, so an alternative official domain belonging to the same provider is not covered.
The report does not explain why Gmail behaved differently from Proton.
Impact
A user who has been blocked, either individually or through a provider-wide block, can still register. In the first case this is done by abusing email normalisation; in the second, by using an alternative official domain belonging to the same blocked provider. Blocked users could bypass the blacklist on this service's registration flow.
Fix
No fix is described. The report only records the triager's position that administrators should enumerate every variation of an address, or add each sibling domain manually. No fix is described; the report only records the triager's position.
Variants to test
- Dot insertion in the local part on any registration or password-reset flow that has an address blacklist. A positive result is an OTP or reset mail arriving at a blocked mailbox.
- Plus addressing, for example
[redacted], where the provider delivers to the base mailbox. A positive result is the same: delivery to a blocked address. - Case variation in the domain or local part. A positive result is acceptance of an address the blacklist should have rejected.
- Sibling domains of the same provider, such as
pm.mefor Proton orgooglemail.comfor Gmail. A positive result is registration succeeding for a provider that is blocked by its primary domain. - Consistency between endpoints: repeat the same variation at every step of the flow (initiation, verification, completion). A positive result is one step accepting the variant while another rejects the canonical form, which shows the normalisation is applied inconsistently.
What happened, in plain words
Imagine a website that lets people create accounts. Rather than build the sign-up and login machinery itself, the site hands that job to a separate company. The site plugs into that company's service, and the service does the registering and the logging in. In this write-up that service is called barbrosa.com. The program was public on HackerOne, a platform where companies invite researchers to look for problems in their systems.
Barbrosa has a feature called the Blacklist. An administrator, the person who runs the service, can put an email address on a list of addresses that are not allowed to register. They can also block a whole email provider, so that no address from that provider can sign up. Phone numbers can be blocked in the same way.
The author found two ways around this blacklist. In the first, a blocked address could still register by writing the same address with extra dots in it. In the second, a blocked provider could still be used by registering through a different official domain that belongs to the same provider.
Neither issue was accepted by the program. The author presents them as interesting ways of thinking about how blacklists are checked, not as confirmed vulnerabilities. The write-up does not describe any special tools, accounts or software versions; the only things needed are an administrator who has put something on the blacklist and a person who controls an address that the blacklist is meant to stop.

The feature under examination
Before the two findings, it helps to understand what the Blacklist does. An administrator can block one specific email address, for example one particular person's mailbox. Or they can block an entire email provider, so that every address ending in that provider's domain is refused. The write-up also mentions that phone numbers can be blocked the same way.
A domain is the part of an email address after the @ sign, such as proton.me or gmail.com. It identifies the company that runs the mailbox. Blocking a domain is a broad action: it stops everyone who uses that company for email.
First issue: dots in the address
The administrator had blocked one specific user by adding this address to the blacklist:
[redacted]
When the owner of that address tried to register, the application returned an error, exactly as intended. The block was working.
To understand how the block was applied, the author looked at the API. An API is the set of addresses and rules a website uses to talk to its own server behind the scenes. When you fill in a form in your browser and press a button, your browser sends a request to one of these API addresses, and the server sends back an answer. Think of it as a waiter taking your order to the kitchen: you do not walk into the kitchen yourself, you tell the waiter, and the waiter brings back the result. The API endpoint found here was the one used to start a registration:
POST /api/v1/init
POST is the type of request used when you are sending information to the server, as opposed to just asking for a page. /api/v1/init is the address of that particular action, here the first step of signing up. The request body, the information sent along with it, was:
{ "email": "[redacted]"}
This is JSON, a simple text format for sending data as labelled values. The label email says which field is being filled in, and the value is the address being registered. The normal answer to this request was 401. A 401 is an HTTP status code, a short number the server sends back to say how the request went. 401 means "not authorised": the server refused because the address was on the blacklist.
The author then tried a trick based on how email addresses work. In the part of an address before the @ sign, many providers ignore dots. So [redacted] and [redacted] are the same mailbox: mail sent to either one lands in the same inbox. The author sent the registration request with dots inserted:
{ "email": "[redacted]"}
This was accepted, and the system sent the OTP to the original mailbox. An OTP, or one-time password, is a short code sent to your email or phone that you type in to prove the mailbox is really yours. It is like a temporary key that only works once. The blacklist had compared the address as a literal string of characters, so the dotted version did not match the blocked entry. But the mail delivery system knew that the dotted version was the same mailbox, so the code arrived at the blocked address, which the attacker controlled.
At this point the only step left was to finish creating the account. There was a second endpoint for that:
POST /api/v1/auth
with the body:
{ "email": "[redacted]", "code": "OTP"}
Here the email field holds the address and the code field holds the one-time password the user received. Submitting the OTP this way returned an error. At first this looked like the second endpoint was properly protected.
The author then had an idea: maybe the system was treating email addresses literally at this endpoint too. So the email in the second request was changed in exactly the same way as in the first, using the variation that had already fooled the OTP delivery:
{ "email": "[redacted]", "code": "OTP"}
This worked, and the account was created. The same literal comparison was happening at both steps, so the same variation had to be used at both steps.
What the author tested alongside it
The report explains that several email providers were tested and that the protection worked correctly for them. For example, with:
[redacted]
changing it to:
[redacted]
did not bypass the protection. The system correctly rejected it. The report does not explain why Gmail behaved differently from Proton.
The triager, the person at the program who reviews submitted reports and decides whether they count, replied that an administrator who wants to block a specific user should simply add every possible variation of the address. In other words, to block:
[redacted]
they should also block:
[redacted]@[redacted]@[redacted]
The author disagreed with this position and was still waiting for a reply when the write-up was published. The author disagreed with this position and was still waiting for a reply.
Second issue: a different domain for the same provider
The second issue uses the same Blacklist feature, but this time the administrator blocked an entire provider. With proton.me blocked, no address ending in @proton.me could register.
Instead of the blocked domain, the author used another official domain owned by the same provider. Rather than:
[redacted]
the registration used:
[redacted]
pm.me is an official domain provided by Proton, and the registration succeeded. The registration with the sibling domain succeeded despite the provider block.
As with the first issue, other providers were tested and handled correctly. When gmail.com was blocked, the author could not bypass it with:
googlemail.com
even though googlemail.com is also an official Gmail domain. The application treated both domains as the same provider.
The triager's reply was that an administrator who wants to block Proton users should add pm.me manually. Again, the author did not accept this reasoning.
Why it works
Both issues come from the blacklist comparing the submitted email string against stored entries without first normalising it to the canonical mailbox or provider. Normalisation means converting different spellings of the same thing into one standard form before comparing. It is like a cloakroom that accepts "Bob", "bob" and "B. Smith" as the same person only if someone first writes all three the same way on the ticket.
In the first case, the part before the @ sign is compared literally, so a dotted variant of a blocked address does not match the entry, while the mail delivery still routes the OTP to the same mailbox. The same literal comparison is repeated at the completion endpoint, which is why the identical variation had to be used there as well.
The second case is a provider-level version of the same mistake: the block is keyed on the domain string, so an alternative official domain belonging to the same provider is not covered.
Impact
A user who has been blocked, either individually or through a provider-wide block, can still register. In the first case this is done by abusing email normalisation; in the second, by using an alternative official domain belonging to the same blocked provider. Blocked users could bypass the blacklist on this service's registration flow.
Fix
No fix is described. The report only records the triager's position that administrators should enumerate every variation of an address, or add each sibling domain manually. No fix is described; the report only records the triager's position.
Variants to test
- Dot insertion in the local part on any registration or password-reset flow that has an address blacklist. A positive result is an OTP or reset mail arriving at a blocked mailbox.
- Plus addressing, for example
[redacted], where the provider delivers to the base mailbox. A positive result is the same: delivery to a blocked address. - Case variation in the domain or local part. A positive result is acceptance of an address the blacklist should have rejected.
- Sibling domains of the same provider, such as
pm.mefor Proton orgooglemail.comfor Gmail. A positive result is registration succeeding for a provider that is blocked by its primary domain. - Consistency between endpoints: repeat the same variation at every step of the flow (initiation, verification, completion). A positive result is one step accepting the variant while another rejects the canonical form, which shows the normalisation is applied inconsistently.
Glossary
- API: the set of addresses and rules a website uses to talk to its own server behind the scenes, like a waiter carrying orders to the kitchen.
- API endpoint: one specific address in that set, used for one specific action.
- Administrator: the person who runs and configures the service.
- Authentication: the process of proving who you are when you sign up or log in.
- Blacklist: a list of addresses, providers or phone numbers that are not allowed to register.
- Canonical form: the single standard spelling of something, used so that different variants can be compared fairly.
- Domain: the part of an email address after the @ sign, identifying the company that runs the mailbox.
- HackerOne: a platform where companies invite researchers to look for problems in their systems.
- HTTP status code: a short number the server sends back to say how a request went, such as 401 for "not authorised".
- JSON: a simple text format for sending data as labelled values.
- Local part: the part of an email address before the @ sign.
- Normalisation: converting different spellings of the same thing into one standard form before comparing.
- OTP (one-time password): a short code sent to your email or phone that you type in to prove the mailbox is yours, valid once.
- POST: the type of request used when sending information to the server.
- Provider: the company that runs an email service, such as Proton or Gmail.
- Sibling domain: another official domain owned by the same provider, such as
pm.mefor Proton. - Triager: the person at the program who reviews submitted reports and decides whether they count.
- 401: an HTTP status code meaning "not authorised", sent when the server refuses a request.