Your Site Is Vulnerable: 2 Huge Holes

Curtis Franklin Jr., Executive Editor | 5/6/2014 | 19 comments

Curtis Franklin Jr.
PHP is a great tool for building web pages that access databases. It's pretty nifty for pwning an enterprise site, too.

If you don't know what "pwning" a site is, you really need to get out more. And you really need to understand what even the most novice script-kiddies can do to your site if you've used PHP and haven't been careful about security. There are a couple of quick things you should be talking to your security team about, but first you should have a bit of background.

PHP is a scripting language that runs on a web server. Originally developed in 1995, PHP in one version or another now runs on millions and millions of web servers around the world. It started as the work of a single man -- Rasmus Lerdorf -- who wanted a tool to make his personal web page easier to manage. Version 1 was released publicly and further maintenance and development was ultimately turned over to The PHP Group. The language has continued to evolve but its small beginning has led to some interesting problems. Since Lerdorf didn't set out to write a complete programming language, PHP has grown in a rather undisciplined way. It has little in the way of a fully formed logical structure and less than it should in the way of security checks. And it's that last thing that brings me to the conversation you need to have with your security team.

The first surprise comes via a simple text string, "exec($_GET". With a bit of tweaking, you can use this little gem to execute any code in the $_GET superglobal without any security controls at all. Want to download all the code that makes up a website? This is the way to make it happen. And remember -- no security checks at all in the PHP instructions because $_GET is one of the built-in variables that is automatically available in all scopes of a page.

Having fun with that little gem? Good -- you're going to love this one. Head out to do this search and marvel at the array of results generated. If you see the results and don't quite understand what's going on, allow me to help.

The string you've just searched on allows you to insert new SQL commands into the URL -- commands that are executed by the database sitting behind the site. It's a bedrock of a technique called "SQL Injection" that shouldn't be possible in 2014 but is very possible on a number of sites. I've watched experts run these attacks against sites and it's amazing. A person with just a bit of knowledge can do anything from downloading an entire database (including the records that are there but not normally available to customers through the website) to changing records in a database. What kind of changes? Prices. Availability. Contact information. Little things like that.

I'm not suggesting that you stop using PHP -- the odds are pretty good that you couldn't, even if you wanted to. I am suggesting that you talk with your security people and begin to educate yourself. And to further your education, I've got one more suggestion.

Go download a copy of WebGoat. It's an intentionally vulnerable website that's been designed to let you see how major security vulnerabilities work. It's also a site where you can test your web defenses. I've used WebGoat to test any number of security systems over the years. I've also used it to help increase my knowledge of what goes into an attack. It's a great tool that can help you and your team build stronger, more secure websites for your organization.

How do you feel about all of this? Are your sites secure? Are you certain? How familiar are you with WebGoat? I'd love to know if you've already got all this information well in hand -- or whether I've helped bring a bit of new awareness to the party. See you in the comments...

Curtis Franklin, Jr., Executive Editor, Enterprise Efficiency
Circle me on Google+ Follow me on TwitterVisit my LinkedIn pageFriend me on Facebook

View Comments: Newest First | Oldest First | Threaded View
<<   <   Page 2 / 2
CurtisFranklin   Your Site Is Vulnerable: 2 Huge Holes   5/9/2014 2:50:34 PM
Re: PHP my first love
@Ariella, the way I see it, much of success is minimizing the number of "unknown unknowns" we have to deal with. Thinking about things ahead of time helps.
CurtisFranklin   Your Site Is Vulnerable: 2 Huge Holes   5/9/2014 2:49:43 PM
Re: Thanks Curtis...
@ProgMan, it is amazing that so many sites are still vulnerable to SQL Injection, especially since protecting against it can be accomplished in so many ways. Of course, I'm still astounded at just how many systems are still running Windows XP, so my life is simply full of surprises, these days...
Ariella   Your Site Is Vulnerable: 2 Huge Holes   5/9/2014 2:37:06 PM
Re: PHP my first love
"you just have to be aware of the security issues and plan for them." @Curtis to be forewarned is to be forearmed for security, as well as other dangers. 
ProgMan   Your Site Is Vulnerable: 2 Huge Holes   5/9/2014 6:19:29 AM
Thanks Curtis...
I need to check out Webgoat - and it's crazy to think that SQL injection is still such a threat.
Anand   Your Site Is Vulnerable: 2 Huge Holes   5/8/2014 4:58:38 AM
Re : Your Site Is Vulnerable: 2 Huge Holes
Thank you very much Franklin for this great information you have put across on this article. PHP is a language known to many and it is true that it has security issues. I think you have brought to my attention a great site that is WebGoat which to is a must download. I know it will help me in understanding further how different security vulnerabilities work. Thank you.
CurtisFranklin   Your Site Is Vulnerable: 2 Huge Holes   5/7/2014 8:30:41 PM
Re: PHP my first love
@Pedro, you're quite right: It shouldn't be ignored. It should not, on the other hand, convince organizations to avoid PHP. It's a fine tool for the things it does -- you just have to be aware of the security issues and plan for them.
CurtisFranklin   Your Site Is Vulnerable: 2 Huge Holes   5/7/2014 6:11:55 PM
Re: PHP my first love
@nasimson, I think you've hit it perfectly: There's a lot to like about PHP but you really have to be aware of some of the factors its open-source nature brings to the development party.

And I think you'll like Web Goat. It's truly a great learning tool and a very neat target if you're testing web site defense software!
Pedro Gonzales   Your Site Is Vulnerable: 2 Huge Holes   5/7/2014 9:55:45 AM
Re: PHP my first love
It did bring a new awareness for me of the disadvantages of using this language over others. I had no idea of this weakness and the tremendous impact in can cause to an organization.  It is something that shouldn't be ignore. 
nasimson   Your Site Is Vulnerable: 2 Huge Holes   5/7/2014 9:00:42 AM
PHP my first love
PHP was my third programming language. But it was love at first hello world code run. Its so simple to execute. Its so easy to learn. Its free to buy. Its support forums are ubiquitous. However with that simplicity comes security compromises. Thank you introducing to web goat. I'll definitely download.
<<   <   Page 2 / 2


The blogs and comments posted on EnterpriseEfficiency.com do not reflect the views of TechWeb, EnterpriseEfficiency.com, or its sponsors. EnterpriseEfficiency.com, TechWeb, and its sponsors do not assume responsibility for any comments, claims, or opinions made by authors and bloggers. They are no substitute for your own research and should not be relied upon for trading or any other purpose.

More Blogs from Curtis Franklin Jr.
Curtis Franklin Jr.   5/30/2014   10 comments
A good community can teach you a lot. And Enterprise Efficiency has been one of the best.
Curtis Franklin Jr.   5/26/2014   41 comments
Today is Memorial Day in the US, a day for remembering those who gave, in the words of Abraham Lincoln, "the last full measure of devotion" for their country and its citizens. It is a ...
Curtis Franklin Jr.   5/22/2014   35 comments
You're about to know precisely where your customers are and what they're doing. Are you ready for Big Data Advertising Everywhere?
Curtis Franklin Jr.   4/30/2014   36 comments
BASIC turns 50 this year. Many IT pros wrote their first line of code in the venerable language, but is the ability to write code even important at the top of the IT ladder?
Latest Archived Broadcast
We talk with Bernard Golden about accelerating application delivery in the cloud.
On-demand Video with Chat
Register for this video discussion to learn how tablets can provide true business usability and productivity.
E2 IT Migration Zones
IT Migration Zone - UK
Why PowerShell Is Important
Reduce the Windows 8 Footprint for VDI
Rethinking Storage Management
IT Migration Zone - FR
SQL Server : 240 To de mémoire flash pour votre data warehouse
Quand Office vient booster les revenus Cloud et Android de Microsoft
Windows Phone : Nokia veut davantage d'applications (et les utilisateurs aussi)
IT Migration Zone - DE
Cloud Computing: Warum Unternehmen trotz NSA auf die „private“ Wolke setzen sollten
Cloud Computing bleibt Wachstumsmarkt – Windows Azure ist Vorreiter
Like Us on Facebook
Twitter Feed
Enterprise Efficiency Twitter Feed
Site Moderators Wanted
Enterprise Efficiency is looking for engaged readers to moderate the message boards on this site. Engage in high-IQ conversations with IT industry leaders; earn kudos and perks. Interested? E-mail:
moderators@enterpriseefficiency.com
Dell's Efficiency Modeling Tool
The major problem facing the CIO is how to measure the effectiveness of the IT department. Learn how Dell’s Efficiency Modeling Tool gives the CIO two clear, powerful numbers: Efficiency Quotient and Impact Quotient. These numbers can be transforma¬tive not only to the department, but to the entire enterprise.

Read the full report
The State of Enterprise Efficiency in the Virtual Era: Virtualization – Smart Approaches to Maximize Gains
Virtualization is a presence in nearly all enterprise data centers. But not all companies are using it to its best effect. Learn the common characteristics of success, what barriers companies face, and how to get the most from your efforts.

Read the full report
Informed CIO: Dollars & Sense: Virtual Desktop Infrastructure
Cut through the VDI hype and get the full picture -- including ROI and the impact on your Data Center -- to make an informed decision about your virtual desktop infrastructure deployments.

Read the full report
SPONSORED BY DELL
CASE STUDIES
EBOOKS
PUBLIC SECTOR RESOURCES
VIDEOS
WHITE PAPERS
WINDOWS SERVER 2012 RESOURCES
A Video Case Study – Translational Genomics Research Institute
e2 Video


On the Case
TGen IT: Where We're Going Next

7|11|12   |   08:12   |   10 comments


Now that TGen has broken new ground in genomic research by using Dell's storage, cloud, and high-performance computing solutions, the company discusses what will come next for it and for personalized medicine.
On the Case
Better Care Through Better Communications

6|6|12   |   02:24   |   11 comments


The achievements of the TGen/Dell project could improve how all people receive healthcare, because they are creating ways to improve end-to-end communication of medical data.
On the Case
TGen IT: Where We Are Now

5|15|12   |   06:58   |   6 comments


TGen is breaking new ground in genomic research by using Dell's storage, cloud, and high-performance computing solutions.
On the Case
TGen IT: Where We Were

4|27|12   |   06:45   |   10 comments


The Translational Genomics Research Institute wanted to save lives, but its efforts were hobbled by immense computing challenges related to collecting, processing, sharing, and storing enormous amounts of data.
On the Case
1,200% Faster

4|18|12   |   02:27   |   12 comments


Through their partnership, Dell and TGen have increased the speed of TGen’s medical research by 1,200 percent.
On the Case
IT May Improve Children's Chances of Survival

4|17|12   |   02:12   |   8 comments


IT is helping medical researchers reach breakthroughs in a way and pace never seen before.
On the Case
Medical Advances in the Cloud

4|10|12   |   1:25   |   5 comments


TGen and Dell are pushing the boundaries of computing, and harnessing the power of the cloud to improve healthcare.
On the Case
TGen: Living the Mission

4|9|12   |   2:25   |   3 comments


TGen's CIO puts the organizational mission at the heart of everything the IT staff does.
On the Case
TGen Speeding Up Biomedical Research to Save More Lives

4|5|12   |   1:59   |   6 comments


The Translational Genomics Research Institute is revamping its computing to improve speed, storage, and collaboration – and, most importantly, to save lives.
On the Case
Computing Power Helping to Save Children's Lives

3|28|12   |   2:13   |   3 comments


The Translational Genomics Institute’s partnership with Dell is enabling them to treat kids with neuroblastoma more quickly and save more lives.
Tom Nolle
The Big Reason to Use Office

3|18|14   |   02:24   |   46 comments


Office and personal productivity tools come in a first-class and coach flavor set, but what makes the difference is primarily little things that most users won't encounter. What's the big issue in using something other than Office, and can you get around it?
E2 Editors
SPONSORED: Mobile Security — A Use Case

3|4|14   |   04:27   |   16 comments


New mobile security solutions can accommodate a wide array of needs, including those of a complex university environment.
Tom Nolle
Killing Net Neutrality Might Save You Money

1|16|14   |   2:13   |   16 comments


The DC Court of Appeals voided most of the Neutrality Order, and whatever it might mean for the Internet overall, it might mean better and cheaper Internet VPNs for businesses.
Tom Nolle
The Internet of Everythinguseful

1|10|14   |   2:18   |   19 comments


We really don't want an "Internet of Everything" but even building an Internet of Everythinguseful means setting some ground rules to insure there's value in the process and that costs and risks are minimized.
Tom Nolle
Maturing Google Chrome

12|30|13   |   2.18   |   25 comments


Google's Chrome OS has a lot of potential value and a lot of recent press, but it still needs something to make it more than a thin client. It needs cloud integration, it needs extended APIs via web services, and it needs to suck it up and support a hard drive.
Sara Peters
No More Cookie-Cutter IT

12|23|13   |   03.58   |   21 comments


Creating the right combination of technology, people, and processes for your IT organization is a lot like baking Christmas cookies.
Sara Peters
Smart Wigs Not a Smart Idea

12|5|13   |   3:01   |   46 comments


Sony is seeking a patent for wigs that contain computing devices.
Tom Nolle
Cloud in the Wild

12|4|13   |   02:23   |   15 comments


On a recent African trip I saw examples of the value of the cloud in developing nations, for educational and community development programs. We could build on this, but not only in developing economies, because these same programs are often under-supported even in first-world countries.
E2 Editors
SPONSORED: Is Malware Evading Your IPS?

11|18|13   |   03:16   |   4 comments


Intrusion prevention software is supposed to detect and block malware intrusions, but clever malware authors can evade your IPS in these five main ways.
Sara Peters
Where Have All the Mentors Gone?

9|27|13   |   3:15   |   38 comments


A good professional mentor can change your life for the better... but where do you find one?
Tom Nolle
SDN Wars & You Could Win

9|17|13   |   2:10   |   5 comments


VMware's debate with Cisco on SDN might finally create a fusion between an SDN view that's all about software and another that's all about network equipment. That would be good for every enterprise considering the cloud and SDN.
Ivan Schneider
The Future of the Smart Watch

9|12|13   |   3:19   |   39 comments


Wearing a bulky, oversized watch is good training for the next phase in wristwatches: the Internet-enabled, connected watch. Why the smartphone-tethered connected watch makes sense, plus Ivan demos an entirely new concept for the "smart watch."
Tom Nolle
Cutting Your Cloud Storage Costs

9|4|13   |   2:06   |   3 comments


Cloud storage costs are determined primarily by the rate at which files are changed and the possibility of concurrent access/update. If you can structure your storage use to optimize these factors you can cut costs, perhaps to zero.
Sara Peters
Do CIOs Need an IT Background?

8|29|13   |   2:11   |   23 comments


Most of the CIOs interviewed in the How to Become a CIO series did not start their careers as IT professionals. So is an IT background essential?
Ivan Schneider
The Internet Loves Birthdays

8|27|13   |   3:25   |   69 comments


The Internet has evolved into a machine for drumming up a chorus of "Happy Birthday" messages, from family, friends, friends of friends who you added on Facebook, random people that you circled on G+, and increasingly, automated bots. Enough already.