Skip to content
Account takeover Write-up Intermediate

Authenticated Account Email Takeover via Mass Assignment and Edge-Gate Bypass

An address-saving endpoint bound a client-supplied email parameter to the account's authoritative login email field, allowing an authenticated user to change their own login email without a password, OTP, or step-up authentication. A trailing slash on the request path bypassed an Akamai edge rule that otherwise blocked the endpoint, letting the request reach the origin handler.

redhunter01 Follow

Published on medium.com

Bug Bounty

redhunter01, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

Context

While testing a large e-commerce application, I found a combination of weaknesses that turned an address-saving endpoint into an account identity modification primitive. The endpoint was designed to save a shipping address, but a client-controlled email parameter was incorrectly bound to the account's authoritative email1 identity field.

There was another layer to the issue: the endpoint was normally blocked by an Akamai edge write-gate, but a single trailing slash caused the request to bypass that edge rule while still reaching the same WebSphere Commerce origin handler.

The result was an authenticated ability to change the account's primary login email without providing the current password, OTP, or SCA step-up authentication.

The important distinction is that this was not an unauthenticated account takeover. The attack required a pre-existing authenticated session foothold.

Setup

The testing was performed against an already-authenticated session. The requests shown carry the session cookie:

HTTP
Cookie: REI_SSL_SESSION_ID=<session JWT>

The application exposed an address-saving API:

HTTP
POST /rest/user/address

Because this endpoint modifies account data, I first checked how it was protected.

Finding it

A normal request to the endpoint was rejected by the edge layer:

HTTP
POST /rest/user/address

Response:

HTTP
403 Access Denied

At first glance, this suggested that direct writes were protected. Instead of stopping there, I tested how the application handled equivalent URL representations. Adding a trailing slash produced a different result:

HTTP
POST /rest/user/address/

This time the request reached the application.

That immediately raised an important question: was the trailing-slash version actually a different application endpoint, or was the edge security control simply interpreting the path differently from the origin? The latter turned out to be the case.

The behaviour could be summarised as:

Text
POST /rest/user/address
        │
        ▼
Akamai edge
        │
        ▼
403 Access Denied

But:

Text
POST /rest/user/address/
        │
        ▼
Akamai rule bypassed
        │
        ▼
WebSphere Commerce origin
        │
        ▼
same address handler

The application therefore had inconsistent URL normalization between the security layer and the origin. This was useful, but by itself it was not enough to establish a meaningful vulnerability. The next step was to understand exactly what the address handler accepted.

Exploitation

The endpoint was intended to save an address. I examined the parameters accepted by the handler and noticed that it processed an email parameter. An invalid value generated the following server-side validation response:

HTTP
400 Bad Request
JSON
{
  "code": 0,
  "message": "INVALID",
  "path": "saveAddress.addressDto.email1",
  "parameterName": "form parameter: email"
}

This response was particularly interesting. The server was explicitly identifying the submitted email parameter as being mapped to saveAddress.addressDto.email1. The important question then became: what exactly is email1?

It would have been possible for email to represent nothing more than a shipping-address contact email, which would have significantly reduced the impact. So I needed to determine whether email1 represented an account-level identity field.

The application provided another useful signal: the same email1 field was associated with the account's primary registration/login email. The account API returned the current email through:

HTTP
GET /rest/user/account

Example:

JSON
{
  "contact": {
    "email": "[redacted]"
  }
}

I also tested whether the field was subject to global uniqueness enforcement. Submitting an email address that was already registered to another account produced:

Text
EMAIL_ALREADY_TAKEN

That behaviour is important because it demonstrates that the value is not merely an arbitrary contact field attached to a shipping address. The application treats it as an authoritative account identity.

The next question was authorization. Changing an account's login email is a security-sensitive operation. I compared this behaviour with the application's dedicated email-change flow. The dedicated email-change functionality requires the user's old password. The vulnerable address-saving endpoint did not. The request required only the authenticated session:

HTTP
Cookie: REI_SSL_SESSION_ID=<session JWT>

There was no oldPassword, no OTP, no SCA, and no equivalent step-up verification. This created a security-control inconsistency:

Text
Dedicated email-change flow
        │
        ├── Current password
        └── Email change

versus:

Text
Address-save endpoint
        │
        ├── Authenticated session only
        └── email → email1

The same sensitive account property could therefore be modified through a less-protected API.

Step 1: Establish the baseline

First, retrieve the account information:

HTTP
GET /rest/user/account

Response:

JSON
{
  "contact": {
    "email": "[redacted]"
  }
}

The account's login email is [redacted].

Step 2: Submit the address request

The request was sent to the trailing-slash variant:

HTTP
POST /rest/user/address/ HTTP/2
Host: www.rei.com
Content-Type: application/x-www-form-urlencoded
Cookie: REI_SSL_SESSION_ID=<session JWT>

The body included:

Text
firstName=Alex&lastName=Rivera&address1=123+Test+St&city=Seattle&stateProvinceCode=WA&zipCode=98109&country=US&phoneNumber=2065551234&nickName=poc&addressType=S&email=[redacted]

The server responded:

HTTP
204 No Content

No password was requested. No OTP was requested. No SCA challenge was requested.

Step 3: Verify the account identity change

I then queried the account again:

HTTP
GET /rest/user/account

The response now contained:

JSON
{
  "contact": {
    "email": "[redacted]"
  }
}

The account's primary email had been overwritten. Interestingly, the submitted shipping address itself was not added. This helped isolate the actual behaviour:

Text
saveAddress
     │
     ├── address parameters → expected address functionality
     │
     └── email parameter
             │
             ▼
        account email1

The endpoint was therefore functioning as an unintended account-email modification primitive.

Root cause

The finding was ultimately the result of multiple independent controls not agreeing with each other. There were three different assumptions:

  1. The edge assumed the write endpoint was protected. /rest/user/address was blocked.
  2. The origin assumed the normalised request was valid. /rest/user/address/ still reached the same handler.
  3. The handler assumed email was safe to bind. The address-saving operation accepted email and mapped it to email1, the authoritative account identity field.

Combined:

Text
Trailing slash
     ↓
Edge protection bypass
     ↓
Address handler reached
     ↓
Mass-assigned email parameter
     ↓
email1 modified
     ↓
No password / OTP / SCA

Each individual weakness is meaningful, but their combination created the security impact. The server error saveAddress.addressDto.email1 was the key transition: instead of treating the error as generic validation noise, it provided a direct clue about the server-side object mapping. That changed the investigation from "Can I modify an address?" to "Why is an address endpoint binding an account identity property?"

Impact

Changing an account's login email is fundamentally different from changing a shipping-address contact field. Once the authoritative login email is changed, other account functionality may rely on the new value. One potential escalation path is the password-reset mechanism:

Text
Authenticated session foothold
          │
          ▼
Change authoritative login email
          │
          ▼
Account now associated with attacker-controlled email
          │
          ▼
Password-reset request
          │
          ▼
Reset message potentially delivered to attacker
          │
          ▼
Potential persistent account takeover

However, I deliberately distinguish this from the directly demonstrated behaviour. The email modification itself was proven. The final password-reset takeover was not demonstrated end-to-end, because the password-reset trigger was separately protected by the edge layer and delivery to an attacker-controlled mailbox was not confirmed. Therefore, the permanent-ATO consequence should be treated as a strongly supported impact path rather than a fully reproduced exploit chain.

This finding does not provide an unauthenticated account takeover. The attacker needs a valid authenticated session belonging to the victim. Examples of possible session footholds include:

  • a leaked session token
  • an unattended authenticated browser
  • a shared logged-in device
  • a same-origin XSS
  • another vulnerability capable of exposing or abusing the authenticated session

The important security property is what happens after that foothold exists. Instead of requiring the victim's current password to change their identity email, the vulnerable endpoint accepts the modification using the existing session alone.

During validation, I also tested the boundaries of the issue.

Self-account only. Account identifiers such as accountId, memberNumber, universalId and employeeId were pinned to the authenticated session. I did not identify a cross-account modification primitive. The vulnerable email parameter modified the requester's own account.

CSRF was not demonstrated. The relevant authentication cookies were observed with SameSite=Lax. Therefore, a conventional cross-site request could not simply rely on the browser sending the authentication cookies cross-site. This means the issue should not be described as a standalone CSRF-based account takeover.

Authentication is required. The endpoint requires an existing authenticated session. There is no demonstrated unauthenticated path to change a victim's email. The actual demonstrated primitive is:

Text
Authenticated session
        ↓
No step-up authentication
        ↓
Modify authoritative login email

These constraints are important when assessing severity. Based on the demonstrated behaviour and its constraints, the report was assessed as:

Text
Medium
CVSS 3.1: 6.5
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

The PR:L requirement reflects the need for an authenticated session foothold. The issue does not demonstrate an unauthenticated takeover or a cross-account modification. The potential impact increases substantially if the changed identity email can be used to complete the password-reset process and obtain persistent control of the account, but that final step was not proven end-to-end during testing.

Fix

The report sets out four remediation measures.

  1. Require step-up authentication. Changing an account's login or identity email should require a security-sensitive re-authentication step, for example the current password or an appropriate OTP / SCA. The same protection should apply regardless of which backend endpoint performs the modification. Do not assume that protecting the dedicated email-change UI is sufficient if another API can modify the same underlying field.
  2. Eliminate mass assignment. The address-saving handler should explicitly define which fields it is allowed to modify:
Text
Allowed:
- firstName
- lastName
- address1
- city
- stateProvinceCode
- zipCode
- country
- phoneNumber
- nickName
- addressType

Account identity fields such as email and email1 should not be bindable through the address-saving operation. An explicit allow-list is preferable to accepting arbitrary client-supplied object properties.

  1. Normalise the request path consistently. The security layer and origin should operate on the same normalised representation of the request path:
Text
Incoming request
       ↓
Canonicalize / normalize
       ↓
Security controls
       ↓
Authorization
       ↓
Application routing

The security decision should not be made against one representation while the application handler receives another.

  1. Treat edge controls as defence-in-depth. The Akamai write-gate should not be treated as the application's authorization mechanism. Even if the edge rule correctly blocks the expected path, the origin must independently enforce authentication, authorization, field-level authorization and security-sensitive operation controls. If an edge rule is bypassed or misconfigured, the origin should still reject an unauthorized state-changing operation.

Variants to test

  • Trailing-slash and path-normalization variants on write endpoints. Take any state-changing endpoint that returns 403 Access Denied at the edge and try equivalent representations such as /path/, /path//, /path///, /path/. and /path/... A positive result is the request reaching the origin handler instead of the edge denial.
  • Parameter binding on address or profile endpoints. Submit an extra identity-related parameter (such as email) alongside the expected address fields and watch for validation errors that reveal the server-side object path. In this report the validation error named saveAddress.addressDto.email1.
  • Field-level authorization checks. After a successful write, re-read the account object with a read endpoint such as GET /rest/user/account. In this report, re-reading the account showed the submitted value in place of the original email.
  • Uniqueness enforcement as an identity signal. Submit an email already registered to another account. In this report, submitting an already-registered email produced EMAIL_ALREADY_TAKEN, indicating an authoritative identity field.
  • Step-up comparison between flows. Compare the dedicated security-sensitive flow (for example email change) with alternative endpoints that touch the same field. In this report the address endpoint accepted the change with only the session cookie.
  • Account identifier pinning. Try supplying identifiers such as accountId, memberNumber, universalId or employeeId in the request. In this report those identifiers were pinned to the session and no cross-account primitive was found.
  • CSRF viability. Check the SameSite attribute on authentication cookies. In this report the relevant authentication cookies were observed with SameSite=Lax.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 22 min read.

What happened, in plain words

Imagine a large online shop. It has a page where you save your shipping address: your name, street, city, postcode and so on. That page is backed by a piece of software on the shop's server that accepts the address and stores it. In security language, that piece of software is called an API endpoint: a specific address on the internet that a program (or a browser page) can send a request to, and that does one job. Think of it as a service counter in a building: you walk to the counter labelled "save address" and hand over a form.

The researcher found that this counter had a hidden extra field on its form. Besides the address fields, it also accepted a field called email, and whatever you put there was quietly written into the account's real login email address, the one you use to sign in. That is the first weakness: the counter was doing a job it was never meant to do. The general name for this class of bug is mass assignment: the server takes a bundle of fields sent by the client and copies them onto an internal object without checking that each field is one the client is allowed to set. It is like a hotel receptionist who accepts a form with a line for "room number" and a line for "price", and blindly copies both into the booking system because nobody told them to ignore the second line.

There was a second layer. The shop put a guard in front of the building: a service called Akamai, which is an edge network. An edge network sits between the public internet and the shop's own servers and inspects traffic before it gets in, a bit like a security desk in the lobby. Akamai had a rule that blocked writes to the address counter. But the researcher noticed that adding one extra character, a trailing slash (/), to the end of the web address made the request slip past the lobby desk while still arriving at the same counter inside. That is the second weakness: the guard and the counter disagreed about what counts as "the same address".

The result: someone who is already logged in to an account could change that account's main login email without typing the current password, without a one-time code, and without any extra identity check. That is serious, but it is not the same as breaking into an account from nothing. The attacker must already be inside a logged-in session. The report is careful about this distinction, and so should we be.

The setup: what the researcher started with

The testing was done while already logged in to an account. The requests shown carry the session cookie:

HTTP
Cookie: REI_SSL_SESSION_ID=<session JWT>

Line by line:

  • Cookie: is an HTTP header. A header is a small labelled line that travels with every web request, carrying extra information such as what kind of content you accept or who you are.
  • REI_SSL_SESSION_ID is the name of the cookie. A cookie is a small piece of text that a website asks your browser to store and to send back on every later request to that site. It is how a website remembers that you logged in: after you sign in, the server gives your browser a cookie, and on each following request the browser shows that cookie like a wristband at an event, so the server knows you already passed the door.
  • <session JWT> is a placeholder for the actual value. JWT stands for JSON Web Token: a compact, signed string that carries claims (such as "this is user X") and can be checked by the server. The angle brackets mean "the real value goes here"; the report does not show it, and it should never be published.

The application exposed an address-saving API:

HTTP
POST /rest/user/address

Line by line:

  • POST is the HTTP method. Methods are verbs: GET means "give me something", POST usually means "here is data, create or change something".
  • /rest/user/address is the path, the part of the web address that names which counter you are walking up to. rest here is just a naming convention for APIs.
  • Together, this line says: "send data to the address-saving counter".

Because this endpoint modifies account data, the researcher first checked how it was protected. That is the right instinct: before attacking anything, ask what defences are supposed to be there.

Finding it: the guard at the door

A normal request to the endpoint was rejected by the edge layer:

HTTP
POST /rest/user/address

Response:

HTTP
403 Access Denied

Line by line:

  • The request is the same one as before.
  • 403 is an HTTP status code, a three-digit number in the response that says how things went. 200 means fine, 403 means "I understood you, but you are not allowed". Access Denied is the human-readable reason.

At first glance this looked like the write was protected. Many testers would stop here. The researcher did not, and instead asked a different question: does the application treat slightly different spellings of the same web address as the same thing? Adding a trailing slash produced a different result:

HTTP
POST /rest/user/address/

This time the request reached the application. The only difference is the / at the end.

That raised the key question: was the trailing-slash version actually a different endpoint, or was the edge security control simply reading the path differently from the server behind it? The latter turned out to be the case. The behaviour can be summarised as:

Text
POST /rest/user/address
        │
        ▼
Akamai edge
        │
        ▼
403 Access Denied

Line by line:

  • The request arrives at the Akamai edge, the lobby desk.
  • The desk matches the path against its rule and refuses it with 403.
  • The request never reaches the shop's own server.

But:

Text
POST /rest/user/address/
        │
        ▼
Akamai rule bypassed
        │
        ▼
WebSphere Commerce origin
        │
        ▼
same address handler

Line by line:

  • This time the path ends in a slash.
  • The Akamai rule does not match it, so it is not blocked. The rule was written for one spelling of the path only.
  • The request reaches the origin, meaning the shop's own server, the actual building behind the lobby. Here the origin is WebSphere Commerce, an e-commerce platform.
  • The origin treats /rest/user/address/ as the same thing as /rest/user/address and hands it to the same handler, the piece of code that saves an address.

So the security layer and the origin had inconsistent URL normalization. Normalization means reducing different spellings of the same thing to one standard form, like treating "St." and "Street" as the same in an address book. The guard normalised one way, the counter the other. This was useful, but on its own it was not yet a meaningful vulnerability: getting past a guard to a counter that does nothing dangerous is not a bug. The next step was to understand exactly what the address handler accepted.

Exploitation: the hidden field

The endpoint was intended to save an address. The researcher examined the parameters it accepted. A parameter is a named value sent with a request, like a field on a paper form: city=Seattle is a parameter named city with the value Seattle. Among them was one called email. An invalid value produced this server-side validation response:

HTTP
400 Bad Request
JSON
{
  "code": 0,
  "message": "INVALID",
  "path": "saveAddress.addressDto.email1",
  "parameterName": "form parameter: email"
}

Line by line:

  • 400 Bad Request is the status code for "your request was malformed or failed validation".
  • The body is JSON, a text format for structured data using curly braces, quoted names and colons.
  • "code": 0 is the application's own numeric code, here zero.
  • "message": "INVALID" says the value failed validation.
  • "path": "saveAddress.addressDto.email1" is the interesting part. It is the server's internal name for the field it was trying to fill. saveAddress is the operation, addressDto is the internal object holding the address data (a DTO, data transfer object, is simply a container for data being moved around), and email1 is the field inside it.
  • "parameterName": "form parameter: email" says which submitted parameter caused this: the one called email.

This response was particularly interesting because the server was explicitly saying that the submitted email parameter was being mapped to saveAddress.addressDto.email1. In plain words: the form field called email was being poured into an internal field called email1. The question then became: what exactly is email1?

It could have been nothing more than a contact email attached to a shipping address, which would have made the whole thing harmless. So the researcher had to prove what email1 really was. The application gave another useful signal: the same email1 field was associated with the account's primary registration and login email. The account API returned the current email through:

HTTP
GET /rest/user/account

Line by line:

  • GET means "read something, do not change it".
  • /rest/user/account is the counter that returns the logged-in user's account details.

Example response:

JSON
{
  "contact": {
    "email": "[redacted]"
  }
}

Line by line:

  • The outer braces hold one object.
  • "contact" is a section inside it, itself an object in braces.
  • "email": "[redacted]" is the account's email as the server currently sees it. [redacted] is a placeholder address used in the report.

The researcher also tested whether the field was subject to global uniqueness enforcement. Uniqueness enforcement means the system refuses to let two accounts share the same value. Submitting an email address that was already registered to another account produced:

Text
EMAIL_ALREADY_TAKEN

Line by line:

  • This is the error text returned when the submitted address already belongs to someone else.

That matters because it shows the value is not just an arbitrary contact field on a shipping address. The application treats it as an authoritative account identity: one account, one email, enforced across the whole system.

The next question was authorization, meaning "is this person allowed to do this?". Changing an account's login email is a security-sensitive operation. The researcher compared this endpoint with the application's dedicated email-change flow, the proper feature for changing your email. That dedicated flow requires the user's old password. The vulnerable address-saving endpoint did not. The request needed only the authenticated session:

HTTP
Cookie: REI_SSL_SESSION_ID=<session JWT>

Line by line:

  • This is the same session cookie as before. It proves the requester is logged in, and nothing more.

There was no oldPassword, no OTP, no SCA, and no equivalent step-up verification. OTP is a one-time password, the short code sent by SMS or an app. SCA is Strong Customer Authentication, the extra confirmation step (a code, a fingerprint, a banking app approval) that regulations require for sensitive actions. Step-up authentication is the general idea: when an action is more dangerous, ask for a stronger proof of identity at that moment, even if the user is already logged in. This created a security-control inconsistency:

Text
Dedicated email-change flow
        │
        ├── Current password
        └── Email change

Line by line:

  • The proper flow asks for the current password first.
  • Only then does it perform the email change.

versus:

Text
Address-save endpoint
        │
        ├── Authenticated session only
        └── email → email1

Line by line:

  • The address endpoint asks only for a logged-in session.
  • And it still writes the submitted email into email1.

The same sensitive account property could therefore be modified through a less-protected API. Two doors lead to the same room, but only one has a lock.

Step 1: Establish the baseline

First, retrieve the account information:

HTTP
GET /rest/user/account

Line by line:

  • Read the account details. This is the "before" photo: it records what the email is now, so any later change can be proven.

Response:

JSON
{
  "contact": {
    "email": "[redacted]"
  }
}

Line by line:

  • The account's login email is [redacted].

Step 2: Submit the address request

The request was sent to the trailing-slash variant:

HTTP
POST /rest/user/address/ HTTP/2
Host: www.rei.com
Content-Type: application/x-www-form-urlencoded
Cookie: REI_SSL_SESSION_ID=<session JWT>

Line by line:

  • POST /rest/user/address/ HTTP/2 sends data to the address counter, using the trailing slash, over HTTP/2, a version of the web protocol.
  • Host: www.rei.com tells the server which website name the request is for. One server can host many sites, so this header picks one.
  • Content-Type: application/x-www-form-urlencoded says the body is formatted like a URL query string: name=value pairs joined by &. This is the classic format a browser uses when you submit a plain HTML form.
  • Cookie: REI_SSL_SESSION_ID=<session JWT> is the session cookie proving the requester is logged in.

The body included:

Text
firstName=Alex&lastName=Rivera&address1=123+Test+St&city=Seattle&stateProvinceCode=WA&zipCode=98109&country=US&phoneNumber=2065551234&nickName=poc&addressType=S&email=[redacted]

Line by line:

  • firstName=Alex and lastName=Rivera are the name fields.
  • address1=123+Test+St is the street line. The + signs stand for spaces in this format.
  • city=Seattle, stateProvinceCode=WA, zipCode=98109, country=US are the location fields.
  • phoneNumber=2065551234 is a phone number.
  • nickName=poc is a label for the address, here "poc" for proof of concept.
  • addressType=S is the address type, here S.
  • email=[redacted] is the extra field. evil.test is the address the researcher submitted. This is the field that matters: it is the value the researcher wants written into the account.

The server responded:

HTTP
204 No Content

Line by line:

  • 204 means "done, and there is nothing to send back". It is a success code, common for writes.

No password was requested. No OTP was requested. No SCA challenge was requested. The request simply succeeded.

Step 3: Verify the account identity change

The researcher then queried the account again:

HTTP
GET /rest/user/account

Line by line:

  • Read the account details again, the "after" photo.

The response now contained:

JSON
{
  "contact": {
    "email": "[redacted]"
  }
}

Line by line:

  • The account's primary email is now the value that was submitted in the address form.

The account's primary email had been overwritten. Interestingly, the submitted shipping address itself was not added. That detail helped isolate the actual behaviour:

Text
saveAddress
     │
     ├── address parameters → expected address functionality
     │
     └── email parameter
             │
             ▼
        account email1

Line by line:

  • The saveAddress operation received two groups of fields.
  • The address fields went where you would expect, into address handling.
  • The email field went somewhere else entirely: into the account's email1.

The endpoint was therefore functioning as an unintended account-email modification primitive. A primitive here means a basic capability an attacker has gained, a building block they can use.

Root cause: three assumptions that did not agree

The finding was ultimately the result of multiple independent controls not agreeing with each other. There were three different assumptions:

  1. The edge assumed the write endpoint was protected. /rest/user/address was blocked.
  2. The origin assumed the normalised request was valid. /rest/user/address/ still reached the same handler.
  3. The handler assumed email was safe to bind. The address-saving operation accepted email and mapped it to email1, the authoritative account identity field.

Combined:

Text
Trailing slash
     ↓
Edge protection bypass
     ↓
Address handler reached
     ↓
Mass-assigned email parameter
     ↓
email1 modified
     ↓
No password / OTP / SCA

Line by line:

  • The trailing slash is the trick that gets past the guard.
  • The guard's rule is bypassed because it only matched the other spelling.
  • The request reaches the address handler inside the shop.
  • The handler mass-assigns the email parameter, copying it into an internal field it should not touch.
  • The account's email1 is changed.
  • None of the expected checks (password, OTP, SCA) happened.

Each individual weakness is meaningful, but their combination created the security impact. The server error saveAddress.addressDto.email1 was the turning point. Instead of treating the error as generic validation noise, the researcher read it as a clue about how the server maps fields internally. That changed the investigation from "Can I modify an address?" to "Why is an address endpoint binding an account identity property?".

Impact: what an attacker could do with this

Changing an account's login email is fundamentally different from changing a shipping-address contact field. Once the authoritative login email is changed, other account functionality may rely on the new value. One potential escalation path is the password-reset mechanism:

Text
Authenticated session foothold
          │
          ▼
Change authoritative login email
          │
          ▼
Account now associated with attacker-controlled email
          │
          ▼
Password-reset request
          │
          ▼
Reset message potentially delivered to attacker
          │
          ▼
Potential persistent account takeover

Line by line:

  • The attacker already has a logged-in session, a foothold, meaning a small position inside the account.
  • They change the login email to one they control.
  • The account is now tied to the attacker's mailbox.
  • They ask the site to reset the password.
  • The reset message would go to whichever mailbox the account now points at, potentially the attacker's.
  • If that works, the attacker gets lasting control of the account, a persistent account takeover (ATO).

However, the researcher deliberately distinguishes this from what was directly demonstrated. The email modification itself was proven. The final password-reset takeover was not demonstrated end-to-end, because the password-reset trigger was separately protected by the edge layer and delivery to an attacker-controlled mailbox was not confirmed. So the permanent takeover should be treated as a strongly supported impact path, not a fully reproduced exploit chain. In everyday terms: we proved the door can be unlocked, but we did not walk through it to the safe.

This finding does not provide an unauthenticated account takeover. The attacker needs a valid authenticated session belonging to the victim. Examples of possible session footholds include:

  • a leaked session token
  • an unattended authenticated browser
  • a shared logged-in device
  • a same-origin XSS
  • another vulnerability capable of exposing or abusing the authenticated session

A few of those need explaining. A leaked session token is the cookie value ending up somewhere the attacker can read it. An unattended authenticated browser is a logged-in browser left open on a shared or public machine. XSS (cross-site scripting) is a bug where an attacker gets their own code to run inside the victim's browser on the site's pages, which can then read or use the session.

The important security property is what happens after that foothold exists. Instead of requiring the victim's current password to change their identity email, the vulnerable endpoint accepts the modification using the existing session alone. Here the existing session alone was enough to rewrite the account's identity email.

During validation, the researcher also tested the boundaries of the issue.

Self-account only. Account identifiers such as accountId, memberNumber, universalId and employeeId were pinned to the authenticated session. Pinned means the server takes them from the session and ignores whatever the client sends. The researcher did not identify a cross-account modification primitive: the vulnerable email parameter modified the requester's own account, not someone else's.

CSRF was not demonstrated. CSRF (cross-site request forgery) is an attack where a malicious website makes your browser send a request to another site where you are logged in, relying on your cookies going along automatically. The relevant authentication cookies were observed with SameSite=Lax. SameSite is a cookie setting that controls whether the browser attaches the cookie to requests coming from other sites; Lax means it is not sent on most cross-site requests. Therefore a conventional cross-site request could not simply rely on the browser sending the authentication cookies cross-site, and the issue should not be described as a standalone CSRF-based account takeover.

Authentication is required. The endpoint requires an existing authenticated session. There is no demonstrated unauthenticated path to change a victim's email. The actual demonstrated primitive is:

Text
Authenticated session
        ↓
No step-up authentication
        ↓
Modify authoritative login email

Line by line:

  • You must already be logged in.
  • The endpoint does not ask for any extra proof.
  • It changes the account's real login email.

These constraints matter when assessing severity. Based on the demonstrated behaviour and its constraints, the report was assessed as:

Text
Medium
CVSS 3.1: 6.5
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Line by line:

  • Medium is the severity band.
  • CVSS 3.1 is the Common Vulnerability Scoring System, a standard way of scoring how bad a bug is. 6.5 is the numeric score.
  • AV:N means attack vector network: it can be done remotely over the internet.
  • AC:L means attack complexity low: no special conditions are needed.
  • PR:L means privileges required low: the attacker needs some account access, here a logged-in session.
  • UI:N means user interaction none: the victim does not have to click anything.
  • S:U means scope unchanged: the impact stays within the same security boundary.
  • C:H and I:H mean confidentiality and integrity impact high: data can be read and changed.
  • A:N means availability impact none: the service is not taken down.

The PR:L requirement reflects the need for an authenticated session foothold. The issue does not demonstrate an unauthenticated takeover or a cross-account modification. The potential impact increases substantially if the changed identity email can be used to complete the password-reset process and obtain persistent control of the account, but that final step was not proven end-to-end during testing.

Fix: what the site should change

The report sets out four remediation measures.

  1. Require step-up authentication. Changing an account's login or identity email should require a security-sensitive re-authentication step, for example the current password or an appropriate OTP / SCA. The same protection should apply regardless of which backend endpoint performs the modification. Do not assume that protecting the dedicated email-change UI is sufficient if another API can modify the same underlying field. In everyday terms: lock the room, not just one of its doors.
  2. Eliminate mass assignment. The address-saving handler should explicitly define which fields it is allowed to modify:
Text
Allowed:
- firstName
- lastName
- address1
- city
- stateProvinceCode
- zipCode
- country
- phoneNumber
- nickName
- addressType

Line by line:

  • This is an allow-list: the complete set of fields the endpoint may write.
  • It contains only address-related fields.
  • Anything not on the list, including email, must be ignored or rejected.

Account identity fields such as email and email1 should not be bindable through the address-saving operation. An explicit allow-list is preferable to accepting arbitrary client-supplied object properties. Think of a form where the receptionist is given a short list of lines they may copy, and told to ignore everything else.

  1. Normalise the request path consistently. The security layer and origin should operate on the same normalised representation of the request path:
Text
Incoming request
       ↓
Canonicalize / normalize
       ↓
Security controls
       ↓
Authorization
       ↓
Application routing

Line by line:

  • A request arrives.
  • It is first reduced to one standard form, canonicalized, so /path and /path/ become the same thing.
  • Only then do the security checks run.
  • Then authorization decides whether this user may do this.
  • Finally the request is routed to the right handler.

The security decision should not be made against one representation while the application handler receives another.

  1. Treat edge controls as defence-in-depth. The Akamai write-gate should not be treated as the application's authorization mechanism. Defence-in-depth means layering several independent defences so that one failing does not sink you. Even if the edge rule correctly blocks the expected path, the origin must independently enforce authentication, authorization, field-level authorization and security-sensitive operation controls. If an edge rule is bypassed or misconfigured, the origin should still reject an unauthorized state-changing operation.

Variants to test: how to look for this yourself

  • Trailing-slash and path-normalization variants on write endpoints. Take any state-changing endpoint that returns 403 Access Denied at the edge and try equivalent representations such as /path/, /path//, /path///, /path/. and /path/... A positive result is the request reaching the origin handler instead of the edge denial.
  • Parameter binding on address or profile endpoints. Submit an extra identity-related parameter (such as email) alongside the expected address fields and watch for validation errors that reveal the server-side object path. In this report the validation error named saveAddress.addressDto.email1.
  • Field-level authorization checks. After a successful write, re-read the account object with a read endpoint such as GET /rest/user/account. In this report, re-reading the account showed the submitted value in place of the original email.
  • Uniqueness enforcement as an identity signal. Submit an email already registered to another account. In this report, submitting an already-registered email produced EMAIL_ALREADY_TAKEN, indicating an authoritative identity field.
  • Step-up comparison between flows. Compare the dedicated security-sensitive flow (for example email change) with alternative endpoints that touch the same field. In this report the address endpoint accepted the change with only the session cookie.
  • Account identifier pinning. Try supplying identifiers such as accountId, memberNumber, universalId or employeeId in the request. In this report those identifiers were pinned to the session and no cross-account primitive was found.
  • CSRF viability. Check the SameSite attribute on authentication cookies. In this report the relevant authentication cookies were observed with SameSite=Lax.

Glossary

  • API: a defined set of addresses and rules that programs use to talk to a service; here, the web endpoints the shop exposes.
  • Endpoint: one specific address on a server that performs one job, such as saving an address.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • HTTP method: the verb of a request, such as GET (read) or POST (send data, usually change something).
  • Path: the part of a web address naming which endpoint you are calling, for example /rest/user/address.
  • Header: a labelled line sent with a request or response carrying extra information, such as Cookie or Content-Type.
  • Status code: a three-digit number in a response saying how it went, such as 200, 204, 400, 403.
  • Cookie: a small piece of text a site asks the browser to store and send back on later requests, commonly used to remember a login.
  • Session: the server-side record of a logged-in user, identified by a session cookie.
  • Session cookie: the cookie carrying the session identifier that proves you are logged in.
  • JWT (JSON Web Token): a compact signed string carrying claims, often used as a session token.
  • Parameter: a named value sent with a request, like a field on a form (city=Seattle).
  • JSON: a text format for structured data using braces, quoted names and colons.
  • DTO (data transfer object): a simple container object used to carry data between parts of a program.
  • Handler: the piece of code that processes a particular request.
  • Origin: the shop's own server behind the edge network, where the application actually runs.
  • Edge network: a service that sits between the internet and the origin and inspects or filters traffic before it arrives.
  • Akamai: the edge network provider named in this report.
  • WebSphere Commerce: the e-commerce platform named in this report as the origin.
  • Write-gate: an edge rule that blocks requests which change data.
  • URL normalization / canonicalization: reducing different spellings of the same address (/path and /path/) to one standard form.
  • Mass assignment: a bug where a server copies many client-supplied fields onto an internal object without checking each field is allowed.
  • Allow-list: an explicit list of what is permitted; everything else is refused.
  • Authorization: deciding whether an identified user is allowed to perform an action.
  • Authentication: proving who you are, usually by logging in.
  • Step-up authentication: asking for stronger proof (password, code) at the moment of a sensitive action.
  • OTP (one-time password): a short code valid once, sent by SMS or an app.
  • SCA (Strong Customer Authentication): an extra confirmation step required for sensitive actions.
  • CSRF (cross-site request forgery): tricking a logged-in user's browser into sending a request to another site.
  • SameSite: a cookie setting controlling whether the cookie is sent on cross-site requests; Lax restricts most of them.
  • XSS (cross-site scripting): a bug letting an attacker's code run inside a victim's browser on a site's pages.
  • Account takeover (ATO): an attacker gaining control of someone's account.
  • Persistent account takeover: lasting control, surviving beyond the original foothold.
  • Foothold: a small initial position inside a system that an attacker can build on.
  • Primitive: a basic capability gained, used as a building block.
  • Pinned (to the session): taken from the logged-in session and not from client-supplied input.
  • CVSS: Common Vulnerability Scoring System, a standard way to score severity.
  • Defence-in-depth: layering independent defences so one failure does not sink everything.
  • Validation error: a response saying the submitted data failed the server's checks.
  • Uniqueness enforcement: a rule that a value, such as an email, may belong to only one account.

More by redhunter01

View all

24 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.