25.09.2014 Views

ZEND PHP 5 Certification STUDY GUIDE

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

222 ” Security<br />

Website Security<br />

Website security refers to the security of the elements of a website through which<br />

an attacker can interface with your application. These vulnerable points of entry include<br />

forms and URLs, which are the most likely and easiest candidates for a potential<br />

attack. Thus, it is important to focus on these elements and learn how to protect<br />

against the improper use of your forms and URLs. In short, proper input filtering<br />

and output escaping will mitigate most of these risks.<br />

Spoofed Forms<br />

A common method used by attackers is a spoofed form submission. There are various<br />

ways to spoof forms, the easiest of which is to simply copy a target form and<br />

execute it from a different location. Spoofing a form makes it possible for an attacker<br />

to remove all client-side restrictions imposed upon the form in order to submit any<br />

and all manner of data to your application. Consider the following form:<br />

<br />

Street: <br />

City: <br />

State:<br />

<br />

Pick a state...<br />

Alabama<br />

Alaska<br />

Arizona<br />

<br />

<br />

Zip: <br />

Licensed to 482634 - Amber Barrow (itsadmin@deakin.edu.au)<br />

<br />

<br />

This form uses the maxlength attribute to restrict the length of content entered into<br />

the fields. There may also be some JavaScript validation that tests these restrictions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!