# Attacke über Checkout\\Cart

**URL:** <https://forum.shopware.com/t/attacke-ueber-checkout-cart/106943>\
**Category:** Shopware 6 (German)\
**Created:** [31. März 2025 um 12:45 UTC](https://forum.shopware.com/t/attacke-ueber-checkout-cart/106943 "2025-03-31T12:45:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tauchservice](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@tauchservice](https://forum.shopware.com/u/tauchservice)\
**Post date:** [31. März 2025 um 12:45 UTC](https://forum.shopware.com/t/attacke-ueber-checkout-cart/106943/1 "2025-03-31T12:45:57Z")

</div>

Moin zusammen..  
ich habe in einem Shop seit zweit Tagen auffallend viele Exceptions, die über Checkout/Cart was versuchen:

[2025-03-31T12:38:32.597834+00:00] request.ERROR: Uncaught PHP Exception Shopware\Core\Checkout\Cart\CartException: „Line item type „‚;print(md5(31337));$a=‘“ is not supported.“ at CartException.php line 260 {„exception“:„[object] (Shopware\Core\Checkout\Cart\CartException(code: 0): Line item type "‚;print(md5(31337));$a=‘" is not supported. at /www/htdocs/xxxx/vendor/shopware/core/Checkout/Cart/CartException.php:260)“}   
[2025-03-31T12:39:34.323629+00:00] request.ERROR: Uncaught PHP Exception Shopware\Core\Checkout\Cart\CartException: „Line item type „redirtest.acx“ is not supported.“ at CartException.php line 260 {„exception“:„[object] (Shopware\Core\Checkout\Cart\CartException(code: 0): Line item type "redirtest.acx" is not supported. at /www/htdocs/xxxx/vendor/shopware/core/Checkout/Cart/CartException.php:260)“}   
[2025-03-31T12:39:35.348631+00:00] request.ERROR: Uncaught PHP Exception Shopware\Core\Checkout\Cart\CartException: „Line item is invalid: Identifier contains invalid characters. Only alphanumeric characters, dashes, underscores and dots are allowed.“ at CartException.php line 445 {„exception“:„[object] (Shopware\Core\Checkout\Cart\CartException(code: 0): Line item is invalid: Identifier contains invalid characters. Only alphanumeric characters, dashes, underscores and dots are allowed. at /www/htdocs/xxxx/vendor/shopware/core/Checkout/Cart/CartException.php:445)“}

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [31. März 2025 um 12:50 UTC](https://forum.shopware.com/t/attacke-ueber-checkout-cart/106943/2 "2025-03-31T12:50:19Z")

</div>

Ja, in die LineItems kann man über den Storefront API schreiben, was man möchte. Wenn man kein Storefront API Rate Limit hat und vom Bot nicht verschont wird, dann kann das unschön Enden. Hatte einen Test-Shop ohne Rate-Limit, etc. Da waren in 2 Tagen 30 GB an Daten in den Error-Logs.

Das ist jedoch kein Sicherheitsrisiko.

---

<div class="post-metadata">

**Author:** ![Anotherone](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Anotherone](https://forum.shopware.com/u/Anotherone)\
**Post date:** [31. März 2025 um 12:52 UTC](https://forum.shopware.com/t/attacke-ueber-checkout-cart/106943/3 "2025-03-31T12:52:59Z")

</div>

Da will jemand wohl witzig sein, print(md5(31337))… Lässt sich leider nie ganz vermeiden, wenn Du selbst hostest oder einen guten Hoster hast, könnte man ggf. was mit fail2ban machen. Oder per Firewall, die auf bestimmte Muster reagiert.

---

<div class="post-metadata">

**Author:** ![nvdennis](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@nvdennis](https://forum.shopware.com/u/nvdennis)\
**Post date:** [31. März 2025 um 13:10 UTC](https://forum.shopware.com/t/attacke-ueber-checkout-cart/106943/4 "2025-03-31T13:10:09Z")

</div>

Bei unseren Kunden haben wir das Problem auch per Fail2ban in den Griff bekommen.

Je nach Konfiguration können im schlimmsten Fall diese Einträge in Massen, durch das MySQL Binlog, das Dateisystem vollschreiben. Bei uns waren diese „Angriffe“ auch häufig am Wochenende und daher anfangs nicht immer sofort entdeckt.
