The need for secure web development A whitepaper by encription limited Author: Campbell Murray Introduction Having an interactive web site has become almost compulsory in business today. Gone are the days of the ‘poster' or ‘banner' website providing a description of what a company does and how to contact it. Even the governments of the world are piloting projects to encourage businesses to adopt online practices so they don't fall behind in a globally changing economy. And everyone knows you need a website, don't you? Today's websites increasingly form part of business management systems, from handling orders and enquiries to processing payroll and credit cards. To get your website seen by the search engines it is accepted that you must update the content regularly to keep it “fresh”, hence content management systems, which allow you to interact with your website and change it, abound. This is all well and good for business and your search engine rankings but how well has the web site been written? Is it fast? Has it been developed to recognized standards? Web programming languages and database technologies have never been easier to learn and use, bespoke solutions can be created quickly and cost effectively, but cost is still the greatest discussion point regardless of the business sector. It's not easy for the web development companies, and the issues they face are multiple. It is a cut throat [read ‘buyers'] market with often as many as a dozen agencies tendering for the same job at any given time. The proliferation of web developers is in part due to supply and demand, but also largely down to the ease with which a web application can be created, it is not difficult. In their effort to win contracts the focus of web developers is naturally drawn towards design, budget, return on investment and time scales. Compound this with a lack of security awareness in the web development sector and it is hardly surprising that according to Gartner Group: This document intends to highlight why and how application developers across all industry sectors should be reviewing their production and training processes in order to place an emphasis on security at the design stage. What's it all about? Legislation surrounding web sites is changing at a rapid pace to include accessibility and privacy law, whilst web design agencies are doing a great job in keeping abreast of these and other developments, they fail to even consider the security of the web site or software application. A good web site can give a high return on investment (ROI) making it appear very cost effective. It may also be well marketed and easy to use, but if an attacker can change the price on all your items, deface your website with unsavoury material and/or take it out of action altogether, then you could see not only a downturn in online sales and lead generation, you may turn customers away from you altogether and suffer considerable financial losses. Restoring damage to your reputation is far more difficult than repairing a defaced web site; it is often impossible. To build and deploy secure web applications, you need to create 'hacker resistant' code and business logic in the development environment. Quality in the staging environment needs to be thoroughly tested; security and compliance should be enforced through internal and external audits. In order to do this you have to have an understanding of what attacks are commonly leveled at web applications and how they work, this is where web design and development agencies are currently lacking. Furthermore it will push the price of the final product up and that is why this industry change has been resisted for so long. More serious threats are ignored You can be given a false sense of security More functionality means more threats Common web application attacks Exploiting input areas Exploiting SQL code Cross site scripting XSS can also be achieved as a result of SQL injection if your website reads its content out of a database. Always validate at server level Think about file names Cheap can be expensive Think about passwords Drop the commentary Watch out for cookies These are just a few of the most common vulnerabilities unwittingly built into web applications by web design agencies and developers. What is the solution? I'm not a target so I am OK! Hacking is a hobby for some Your search rankings make you a target Web sites need to be written differently Planning for security has hidden benefits A grasp of the principles of least privilege will also empower the web developer to write smarter business logic speeding the development time without compromising security.
Conclusions Web sites and staff are the most insecure part of any system and the main target for hackers. People can be trained, web sites can be developed more securely, the fact that they are not, is often due to ignorance on the part of the web developer and the pressure to deliver a web site quickly within a specific budget. If a web site is developed securely and to pre-defined standards, then the time taken for development, and risk of attack, will reduce. Showing web site visitors that a site has been written securely and is regularly tested to make sure that it remains secure, will give them confidence in the company owning the web site the web site itself. Visits to the site should increase and with it the business it transacts. Developing a secure web site is easy when you know how, it just requires the knowledge and the application of that knowledge in a disciplined way. Selling the fact that a web site could cost more should not be difficult, when the client understands why, and can see that taking this approach will mean more revenue through the web site in the future, and a greatly reduced risk of attack, the business case becomes obvious. It is very difficult to differentiate one web developer from another, the offerings are so similar. Including security as an integral part of the development is unusual and a great differentiator. Not only do web developers need to start thinking about security, the purchaser has to start asking pertinent questions of any agency that approaches them, or they approach, to discuss the next great .com idea. . IT security can be seen as a black art and an unnecessary expense, it is neither. So let's put IT security on the agenda. I hope this paper has been useful and has at least made you think about your web site security.
ABOUT ENCRIPTION LIMITED encription limited is a UK based IT security company operating from a secure location in Worcestershire. From this central location we are able to deliver our services worldwide. With highly experienced consultants at our disposal, encription limited is able to meet your IT security needs, no matter how simple or complex, including consultancy, penetration testing and staff training. All our consultants have extensive experience in IT security, forensic investigation and ethical hacking. We work to BS7799 (ISO27001) security standards and we are ISO 9001:2000 certified. Our mission In doing so, we keep abreast of the latest IT security threats and work with appropriate organisations, professional bodies and the Police to develop and maintain IT security standards, defences and techniques that will reduce the risk of an attack on your IT systems. Our solutions are tailored to your specific needs, risk profile and budget. Our Partners Our Clients include About the author: Campbell Murray is the Technical Director of encription limited [ www.encription.co.uk ] and has many years experience in the building and penetration testing of web applications across a range of languages, server and database technologies. LIMITATION OF LIABILITY. THE AUTHOR WILL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR PERSONAL INJURY, LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS OR CONFIDENTIAL INFORMATION, LOSS OF PRIVACY, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE INFORMATION IN THIS DOCUMENT, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Permission is hereby granted to freely distribute this document as long as it is not altered and the author is acknowledged. |
| Data Protection Policy | Site Map | Resources |
| |



