Description
This module exploits a php object instantiation vulnerability that can lead to RCE in Shopware. An authenticated backend user could exploit the vulnerability.
The vulnerability exists in the createInstanceFromNamedArguments function, where the code insufficiently performs whitelist check which can be bypassed to trigger an object injection.
An attacker can leverage this to deserialize an arbitrary payload and write a webshell to the target system, resulting in remote code execution.
Tested on Shopware git branches 5.6, 5.5, 5.4, 5.3.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/shopware/createinstancefromnamedarguments_rcemsf undefined(createinstancefromnamedarguments_rce) > show actions ...actions...msf undefined(createinstancefromnamedarguments_rce) > set ACTION < action-name >msf undefined(createinstancefromnamedarguments_rce) > show options ...show and set options...msf undefined(createinstancefromnamedarguments_rce) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub