Becrypt continues expansion in US with appointme... » Seeds of Genius, a specialist supplier to Federal Government and DOD, has joined the fast-growing nu... Lancope Strengthens Cisco pxGrid Support for faste... » LONDON (UK): Lancope, Inc.is providing tight product integration with the new Cisco Identity Service... International SOS and Vismo in joint partnership t... » York, UK: International SOS, the world's leading medical and security services company, and Vismo, a... Tech Mahindra selects Qualys to expand global IT s... » REDWOOD CITY, Calif.: Qualys, Inc. has announced a strategic partnership with Tech Mahindra , a mult... Barracuda launches SignNow Appliance » Barracuda Networks has launched the Barracuda SignNow version 4.0 and the new Barracuda SignNow Appl... Boston Networks design, deliver and maintain Intel... » Regarded as the world’s most prestigious team golf event, Boston Networks delivers a full turnkey so... British Parliament tells Teeside University to sta... » Ground-breaking research at Teesside University which has been described as the “holy grail” of crim... Army Officer wins engineering Modern Day Visionary... » Source: MoD AIRCRAFT Engineering Officer Major Oli Morgan has been named as the 2014 Modern Day V... Electronic I.D. Card project in Nigeria: How not t... » President Goodluck Jonathan recently launched a MasterCard-branded Nigerian National Electronic I.D ... Do you know which smartphone is the most popular s... » Surprisingly, it’s not the iPhone, LG, Huawei or HTC and Windows Phone hardly gets a look in. Even t...

CLICK HERE TO

Advertise with Vigilance

Got News?

Got news for Vigilance?

Have you got news/articles for us? We welcome news stories and articles from security experts, intelligence analysts, industry players, security correspondents in the main stream media and our numerous readers across the globe.

READ MORE

Subscribe to Vigilance Weekly

Information Security Header

Imperva have found that hackers are now using Remote and local file inclusion (RFI/LFI), as their favourite hacking method. With RFI/LFI attacks making 21 percent of all observed application attacks, which allows an attacker to target the computer servers that run Web sites and their applications, what can we do to stop this kind of attack?

Why is RFI/LFI attractive to hackers?  A successful attack allows the execution of arbitrary code on the attacked platform’s web application. With RFI/LFI, a hacker can take over a web server.

Surprisingly, however, RFI/ LFI has not been taken seriously by the security community. In real-world hacking attacks, RFI/LFI attacks made up 21 percent of all observed application attacks.[1]

For hackers RFI/ LFI attacks are very attractive since they target are PHP applications. With more than 77% of today’s websites running PHP, RFI should be on every security practitioner’s radar—but isn’t.  Some notorious RFI/ LFI examples include:

  • Lulzsec using RFI bots to attack their targets.[2]
  • Timthumb, a WordPress add-on, which was vulnerable to LFI and paved the way to 1.2 million infected websites. [3]

In one hacker forum, several discussion shed light on the value of RFI/LFI:

Why isn’t LFI/RFI high on the priority list for good guys? Many website owners/security officers are not necessarily aware of the underlying tech that powers their website. For example, if you install Wordpress, the most popular content management system on the Internet, you get PHP on your server.

Ironically, PHP applications are the most prevalent, in terms of absolute numbers, in the web, hence a strong interest by attackers.  Most web applications are PHP based because this is the platform of choice for small, low cost applications, and most applications on the web are small, low cost, applications.

Today, some very popular sites are actively using PHP, including:

  • Facebook.com
  • Baidu.com
  • Wikipedia.org
  • Qq.com
  • Taobao.com
  • Sina.com.cn
  • Wordpress.com
  • Weibo.com
  • 163.com
  • Soso.com

Sites using PHP only recently:

  • Soso.com
  • Reuters.com
  • Wsj.com
  • Forbes.com

RFI/LFI primarily affects web applications written in the PHP programming language.  PHP is a general-purpose server-side scripting language originally designed for Web development to produce dynamic Web pages. It is among one of the first developed server-side scripting languages to be embedded into an HTML source document, rather than calling an external file to process data. Ultimately, the code is interpreted by a Web server with a PHP processor module which generates the resulting Web page. PHP can be deployed on most Web servers and also as a standalone shell on almost every operating system and platform free of charge.[4]

PHP is by far the most popular server-side programming language. As of February 28th of 2012, PHP is used by 77.2% of the internet top Alexa ranked million websites.[5] For comparison, the runner-up technology (MS ASP.NET) is used on only 21.7% of these sites.  The use of PHP is also very frequent on the most visited sites, as four of top Alexa ranked ten web sites are powered by PHP (Facebook, Baidu.com, Wikipedia, QQ.COM).  Looking at these numbers, it becomes very clear why PHP is a prime target for hackers—and equally perplexing why security teams are neglecting it.

Further examination of The PHP versions break down, shows that PHP subversion 5.2 is the most popular version in the wild and that about 90% of deployed PHP enabled server are of version 5.2 or above.

[1] http://www.imperva.com/docs/HII_Web_Application_Attack_Report_Ed2.pdf

[2] http://blog.imperva.com/2011/06/analyzing-the-lulzsec-attacks-.html

[3] http://markmaunder.com/2011/08/02/technical-details-and-scripts-of-the-wordpress-timthumb-php-hack/

[4] http://en.wikipedia.org/wiki/PHP

[5] http://w3techs.com/technologies/overview/programming_language/all