Thousands of websites infected with .htaccess redirect attack

Posted by   Virus Bulletin on   Jul 5, 2012

Various anti-detection methods applied.

Thousands of legitimate websites have seen .htaccess files compromised and as a consequence have been used to serve the 'Milisenco' trojan, researchers at Symantec report.

.htaccess is a configuration file used by a number of webservers, including the popular Apache server. It allows for decentralised management of the server and requires neither root access nor a server restart for changes to have an effect. For this reason it is popular on shared hosts where it can be used for internal and external redirects.

If those with malicious intent are able to access it, the .htaccess file can be used to send visitors to a malicious site. Because this happens without any of the website's actual content being changed, the site owner is unlikely to notice any changes.

To make the malicious changes even more stealthy and to make sure only those users who could potentially be infected are redirected, some further tricks are used. By applying a conditional redirect, only those visiting the site for the first time, who entered the site through a link or via a search engine, who used the Windows platform and who used a popular browser are redirected to the malicious site. The .htaccess file also contains hundreds of blank lines before and after the redirection code.

The Milisenco trojan that is served by the malicious site made the news last month when it appeared to cause printers attached to infected machines to print many pages of garbage. This is a side effect of the malware, which masquerades as a printer spool file, possibly to avoid detection.

Yet another malicious redirect from legitimate websites shows how many websites - even those that appear harmless - can be dangerous to visit. The various tricks applied to make the attack more stealthy show the challenges for both website owners and researchers in fighting such threats.

More at Symantec's website here.

Posted on 6 July 2012 by Virus Bulletin



Latest posts:

VB2019 paper: APT cases exploiting vulnerabilities in region-specific software

At VB2019, JPCERT/CC's Shusei Tomonaga and Tomoaki Tani presented a paper on attacks that exploit vulnerabilities in software used only in Japan, using malware that is unique to Japan. Today we publish both their paper and the recording of their…

New paper: Detection of vulnerabilities in web applications by validating parameter integrity and data flow graphs

In a follow-up to a paper presented at VB2019, Prismo Systems researchers Abhishek Singh and Ramesh Mani detail algorithms that can be used to detect SQL injection in stored procedures, persistent cross-site scripting (XSS), and server‑side request…

VB2020 programme announced

VB is pleased to reveal the details of an interesting and diverse programme for VB2020, the 30th Virus Bulletin International Conference.

VB2019 paper: Cyber espionage in the Middle East: unravelling OSX.WindTail

At VB2019 in London, Jamf's Patrick Wardle analysed the WindTail macOS malware used by the WindShift APT group, active in the Middle East. Today we publish both Patrick's paper and the recording of his presentation.

VB2019 paper: 2,000 reactions to a malware attack – accidental study

At VB2019 cybercrime journalist and researcher Adam Haertlé presented an analysis of almost 2000 unsolicited responses sent by victims of a malicious email campaign. Today we publish both his paper and the recording of his presentation.

We have placed cookies on your device in order to improve the functionality of this site, as outlined in our cookies policy. However, you may delete and block all cookies from this site and your use of the site will be unaffected. By continuing to browse this site, you are agreeing to Virus Bulletin's use of data as outlined in our privacy policy.