Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Walking in the Open Source Component Garden

DZone's Guide to

Walking in the Open Source Component Garden

· Integration Zone
Free Resource

Learn how API management supports better integration in Achieving Enterprise Agility with Microservices and API Management, brought to you in partnership with 3scale

Parallels of OSS and GardensIts not everyday I can stop to enjoy my afternoon tea outside on my deck, overlooking my garden. But today I did and while admiring my beautiful blooming flowers, I started to draw some parallels between my garden and software development. Full disclosure, I wouldn’t consider myself a true gardener. I buy plants that have already been cultivated to a mature stage on someone else’s farm or in someone else’s greenhouse. I admire those that still chose to plant seeds in their gardens but for most of us (atleast me) I don’t have the time or want the hassle of caring for the seeds until they turn into plants.

Which is where I think developers can relate. Today, the pressures to deliver software faster have developers relying on component based development practices and with good reason. Why create your own web framework, or logging mechanism, when you can turn to proven components and frameworks from open source projects? Today’s developers can easily access hundreds of thousands of components, including the basics such as the SLF4J logging framework, or a major framework like Struts or Spring. You could code an entire application from scratch, but honestly who has the time or wants the hassle?

But what about bugs? We’ve sure heard a lot about open source security risks lately with Heartbleed, OpenID and OAuth as notable cases.  And its true, while all gardens have bugs so does all software (proprietary and open source) While in the case of my garden, some bugs might be good for the plants but generally bugs aren’t good for software.  Some of the bugs in our open source components allow for our applications to be exploited.  And with Verizon’s 2014 report showing applications as the number one attack vector, better understanding what components you’re using and the security vulnerabilities or licensing risks associated is important to keeping your applications safe.

For many of us, the good news is that open source projects often release newer versions of their components that address newly found vulnerabilities.  Bug-free alternatives are available. But making use of these newer more secure versions, replies on ensuring your organization has a process to help you identify these defects easily and early.

In his recent blog post, 4 Open Source Components You Need to Update Right Now, my colleague, Brian Fox, shed some light on poor component practices — that is, folks who are still downloading extremely vulnerable components long after bug-free versions were made available.  One such example of this behavior was with Struts:

“Struts versions prior to 2.3.15.1 are vulnerable to CVE-2013-2251, which allows code to be uploaded anonymously and then executed as the application server user. This can lead to complete system compromise if the application server user has escalated permissions or if other vulnerabilities are chained together to escalate permissions.  Since the disclosure in July 2013, affected versions of Struts2 components were downloaded 179,050 times from more than 4000 organizations.”

Any professional gardener will tell you, that if you decide to ignore the bugs eating your garden, then you might not have planets after all.  The same goes for software development, your code isn’t worth much if its not secure. Software development is like a supply chain “bad parts equal bad software”.

If you want to learn more about how you can address security as part of your component based development practices, I invite you to read our latest paper: 7 Security Gaps in the Neglected 90% of your Applications.

Unleash the power of your APIs with future-proof API management - Create your account and start your free trial today, brought to you in partnership with 3scale.

Topics:

Published at DZone with permission of Derek Weeks, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}