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
Exploitation signals
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
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-71362
- https://github.com/dinosn/cve-2026-71362-magento-lab
- https://helpx.adobe.com/security/products/magento/apsb26-92.html
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-71362
- https://sansec.io/research/adobe-commerce-account-takeover-apsb26-92
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-08-15 |
| Author / Researcher | dinosn (repository author); the upstream README credits researcher 0x0.eth |
| CVE / Advisory | CVE-2026-71362 / Adobe APSB26-92 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) |
| Status | Weaponized |
| Tags | Magento, Adobe Commerce, account takeover, mass assignment, CWE-863, session, pre-auth, PHP, e-commerce |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Adobe Commerce, Adobe Commerce B2B and Magento Open Source — Magento\Customer\Controller\Account\Edit and Magento\Customer\Model\Session |
| Versions Affected | 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 |
| Language / Platform | PHP 8.3 / Magento 2.4.x on Linux; lab stack is nginx + php-fpm + MariaDB 11.4 + OpenSearch 2.19 + Redis 7 |
| Authentication Required | Partial — any self-registered customer account, no victim credentials and no victim interaction |
| Network Access Required | Yes |
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
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
| |
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
- Start the disposable store —
make upbuilds the PHP image and starts the five-container stack. The php entrypoint clones Magento 2.4.9, installs dependencies, runssetup:installand disables full-page cache so the scripted PoC always receives a session-matched form key. - Wait for install —
make waitpolls until the storefront answers HTTP 200. First boot takes 15-40 minutes. - Run the PoC —
make exploitregisters a throwaway attacker, registers a victim customer, then for each customer id sends a failingeditPostcarryingid=<n>and consumes it withGET /customer/account/edit. - 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.
- Target one id —
python3 exploit/poc.py --victim-id 1skips enumeration and hijacks a single customer id, printing the leaked name, last name and email. - A/B/A negative control —
make patchinstalls Adobe’s official APSB26-92 module-customer fix and the PoC must fail;make unpatchrestores the vulnerable blob and the PoC must take over again. Toggling only that one file is the oracle that the hunk is the bug. - Manual reproduction (no Python) — the upstream README documents a three-request curl flow: register the attacker, POST
editPostwithid=1,change_email=1andcurrent_password=wrong, then GET/customer/account/editand 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 indocker-compose.yml,php/entrypoint.shandMakefile. The vulnerable and patched controller versions are inpatch/Edit.vulnerable.phpandpatch/Edit.patched.php.
Core of the identity switch:
| |
Expected 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
POST /customer/account/editPost HTTP/1.1 302
GET /customer/account/edit HTTP/1.1 200
id=1&change_email=1¤t_password=...&form_key=...
customer_group_id=...- Sessions whose
customer_iddiffers from the id established at login, or whose storedcustomer_form_datacontains anidelement. - A
customer_idchange that is not accompanied by thecustomer_login/customer_data_object_loginevents andregenerateId()performed bySession::setCustomerDataAsLoggedIn(). - Magento writes nothing to
var/logon the successful path; the only native trace is the precedingInputExceptionorInvalidEmailOrPasswordException, indistinguishable from a customer typo.
ModSecurity / Coraza rule (from docs/DETECTION.md):
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
| Action | Detail |
|---|---|
| Patch | Apply 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 |
| Workaround | Block 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 Hardening | Review 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.