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 1 / 2   >   >>
tekedge   Your Site Is Vulnerable: 2 Huge Holes   5/30/2014 11:09:07 PM
Your site is vulnerable
Omg Really informative. Knew some part of it but am armed with more knowledge now. We can find vulnerabilities in our secure websites is scary.
Anand   Your Site Is Vulnerable: 2 Huge Holes   5/26/2014 11:42:48 AM
Re : Your Site Is Vulnerable: 2 Huge Holes
It is very true that most of our sites are vulnerable. The other day, I was surprised when my workmate downloaded the entire company's database and even altered some information. This was so strange because such database had been properly secured and made inaccessible to any employee. To solve this problem, I downloaded the Web Goat which has made work much easier for me since I can easily see how the major security vulnerabilities work. It has also helped our company build a more secure website.
singlemud   Your Site Is Vulnerable: 2 Huge Holes   5/16/2014 4:09:50 PM
Re: Yikes!
There are no perfect ways to detect whether a website is vulnerable. With different vulnerbility in different service layer poping up every day, it is even a challenge task
kstaron   Your Site Is Vulnerable: 2 Huge Holes   5/16/2014 12:24:33 PM
Wow! Way to make me feel nervous about my site. thanks for pointing us to Webgoat so we can see how vulnerable our sites really are.
soozyg   Your Site Is Vulnerable: 2 Huge Holes   5/13/2014 10:23:47 AM
Re: Thanks Curtis...
I'm not sure that it's been a secret to serious programmers who've done their homework.

Sorry, Curt, I was being a little sarcastic. I guess I should have put a ; ) emoticon after the statement. I'm sure any programmer worth his/her salt knows the issues. 
CurtisFranklin   Your Site Is Vulnerable: 2 Huge Holes   5/13/2014 9:52:35 AM
Re: Thanks Curtis...
@soozyg, I'm not sure that it's been a secret to serious programmers who've done their homework. The real "problem" is that PHP is so easy to learn, so inexpensive to deploy, and so ubiquitous in the ecosystem that lots and lots of people are out there writing apps without ever really doing their homework. It's those well-meaning people who manage to put their organizations at risk.

As my father often said, "A little knowledge is a dangerous thing."
CurtisFranklin   Your Site Is Vulnerable: 2 Huge Holes   5/13/2014 9:50:13 AM
Re: Thanks Curtis...
@tjgkg, the thing that scares me is that Windows XP is only the most visible of these "obsolete systems" that litter business IT. I know that there are still hundreds of thousands of old AS/400 systems in closets, quietly serving business applications, and that there are some applications out there still humming along on PDP/11 or Alpha chip systems.

The truly crazy thing is that many of these apps have outlived the careers of their developers -- no one remembers how to maintain them. If they finally break, the business depending upon them is in serious (perhaps fatal) trouble.
soozyg   Your Site Is Vulnerable: 2 Huge Holes   5/13/2014 8:51:43 AM
Re: Thanks Curtis...
And now I know PHP's dirty little secret. Though I'm sure it's not a huge secret these days. But sounds dirty programmatically.
tjgkg   Your Site Is Vulnerable: 2 Huge Holes   5/10/2014 3:51:50 PM
Re: Thanks Curtis...
What scares me most about the systems still using XP is the fact that so many of them are banking systems and ATM's. They will tell you that XP was a great system that worked well-which it did, but to know that the system was being sunset well in advance and not do anything about it is unconcionable.
Ariella   Your Site Is Vulnerable: 2 Huge Holes   5/9/2014 2:57:57 PM
Re: PHP my first love
@Curtis yes, I agree. The key is to be proactive about the dangers rather than reactive and only responding after bad things happen.
Page 1 / 2   >   >>

The blogs and comments posted on do not reflect the views of TechWeb,, or its sponsors., 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:
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
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.