deployecommerce / module-trojan-order-prevent
一个防止通过API使用已知木马订单字符串保存账单/配送地址的Magento2扩展。
1.0.4
2024-08-15 13:27 UTC
README
这是一个防止通过API使用已知木马订单字符串保存账单/配送地址的Magento 2扩展。这不是CVE-2022-24086的修复方案,而是为商家提供额外的保护层。
尽管大多数最新的Magento版本已经修补了这个漏洞,我们仍然看到对它的探测,这对商家的订单屏幕来说相当难看。
此模块向 Magento\Quote\Api\BillingAddressManagementInterface
和 Magento\Quote\Model\ShippingAddressManagementInterface
添加了两个插件,以防止保存包含以下字符串的地址
gettemplate
base64_
afterfiltercall
.filter(
magdemo9816@proton.me
.php
this.getTemp
{{var
如果这些字符串在负载中检测到,则会抛出异常,并且地址不会被保存。
安装
composer require deployecommerce/module-trojan-order-prevent bin/magento mo:e DeployEcommerce_TrojanOrderPrevent
进一步阅读
- https://sansec.io/research/trojanorder-magento
- https://www.bleepingcomputer.com/news/security/magento-stores-targeted-in-massive-surge-of-trojanorders-attacks/
- https://cyberfraudcentre.com/surge-in-trojanorders-attacks-on-magento-2-e-commerce-sites
- https://magento.stackexchange.com/questions/358839/magento-2-fake-customer-order-came-through-with-weird-code-instead-of-customer
- magento/magento2#36691
许可
本模块采用MIT许可证。有关详细信息,请参阅LICENSE文件。