Magento Guruincsite Malicious Infection

My Blog » Magento Guruincsite Malicious Infection

Guruincsite Attacks have been identified recently on thousands of Magento stores. Hackers inject a malicious script in to the database tables which creates iframes from “guruincsite (.) com”.  Over 7900 Magento websites have been found by Google as infected by this malicious script.

There are two kinds of modifications been found; bellow is the simple javascript with iframe.

simple-guruincsite-site(copyright: sucuri.net)

 

and a second one is more obfuscated javascript code, which gives a similar output.

obfuscated-guruincsite-script(copyright: sucuri.net)

 

This attack will inject the iframe with “hxxp://guruincsite

[.]com/2.php” URL and its harmful website.

The Vulnerability

Security professionals are currently investigating this infection vector and when there is more details will be release soon. Its been suspected that it was some vulnerability in Magento core files or  a third-party extension that allowed it to infect the database within a short time.

Since this attack show that there is a vulnerability, which provides access to the database, these hackers or even others could use it to create similar malicious codes to create users accounts and gain access to the magento store; so it is recommended to to review your site’s user list.

How To Fix?

At this point only a temporary fix is possible, which is scanning the whole database tables for code like, “guruincsite” domain or  code like “function LCWEHH(XHFER1){XHFER1=XHFER1” and remove the suspected code.

Its said that, it has been injected in the design/footer/absolute_footer entry from the core_config_data table, but there are cases where its been injected in home CMS page as well.

Make sure to update everything: core files and extensions.

You might also need to look in to use a website firewall to protects your site against known attacks, even not yet discovered vulnerabilities, and control access to site admin section only to authorized users.

Once the malicious code is removed you may need clear your Magento cache and your Varnish cache (if you use it), to remove the code from cached cms pages. Then request a security review by Google through Webmaster Tools.

Hope this article helps someone!

By | 2017-04-22T08:07:35+00:00 October 19th, 2015|For Web Developers, Magento Extensions, Magento Security Patches|