Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2024-34102 PoC — XXE can expose crypt key and other secrets granting full admin access

Source
Associated Vulnerability
Title:XXE can expose crypt key and other secrets granting full admin access (CVE-2024-34102)
Description:Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability that could result in arbitrary code execution. An attacker could exploit this vulnerability by sending a crafted XML document that references external entities. Exploitation of this issue does not require user interaction.
Description
Magento 2 patch for CVE-2024-34102(aka CosmicSting). Another way(as an extension) to hotfix the security hole if you cannot apply the official patch or cannot upgrade Magento.
Readme
# Magento 2 patch for CVE-2024-34102(aka CosmicSting)
**Another way(as an extension) to hotfix the security hole if you cannot apply the official patch or cannot upgrade Magento.**

# Description

### Impact

The attacker makes use of this security hole may read secret files(eg: encryption key in `env.php`) on the server.\
With those secrets, the attacker can perform unauthorized actions(eg: by creating admin JSON Web Token `JWT`).

### More Info

[CVE-2024-34102](https://nvd.nist.gov/vuln/detail/CVE-2024-34102)\
[Official Patch](https://helpx.adobe.com/security/products/magento/apsb24-40.html)

# Requirements
**Magento 2.4**

# Installation
Note: it has a dependency, so you need `composer`.\
**`composer require wubinworks/module-cosmic-sting-patch`**
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →