php_security.pdf
(
3317 KB
)
Pobierz
Security
PHP Security
By: Ilia Alshanetsky
What is Security?
Security is a measurement, not a characteristic.
It’s is also an growing problem that requires an
continually evolving solution.
A good measure of secure application is it’s ability to
A good measure of secure application is it’s ability to
predict and prevent future security problems, before
someone devises an exploit.
As far as application design goes, security must
be considered at all times; initial spec,
implementation, testing and even maintenance.
implementation, testing and even maintenance.
Security
2
Security is a measurement, not a characteristic.
It’s is also an growing problem that requires an
continually evolving solution.
predict and prevent future security problems, before
someone devises an exploit.
As far as application design goes, security must
be considered at all times; initial spec,
PHP & Security
PHP keeps on growing as a language, making
headway into enterprise and corporate markets.
Consequently PHP applications often end up
working with sensitive data.
Unauthorized access to this data is unacceptable.
To prevent problems a secure design is needed.
Security
3
PHP keeps on growing as a language, making
headway into enterprise and corporate markets.
Consequently PHP applications often end up
working with sensitive data.
Unauthorized access to this data is unacceptable.
To prevent problems a secure design is needed.
Input Validation
One of the key concepts you must accept is that
user input is unreliable and not to be trusted.
Partially lost in transmission between server & client.
Corrupted by some in-between process.
Corrupted by some in-between process.
Modified by the user in an unexpected manner.
Modified by the user in an unexpected manner.
Intentional attempt to gain unauthorized access or to crash
Intentional attempt to gain unauthorized access or to crash
the application.
Which is why it is absolutely essential to validate
any user input before use.
Security
4
One of the key concepts you must accept is that
user input is unreliable and not to be trusted.
Partially lost in transmission between server & client.
the application.
Which is why it is absolutely essential to validate
any user input before use.
Accessing Input Data
As of PHP 4.1, there are a series of super-globals that
offer very simple access to the input data.
$_GET – data from get requests.
$_POST – post request data.
$_POST – post request data.
$_COOKIE – cookie information.
$_COOKIE – cookie information.
$_FILES – uploaded file data.
$_FILES – uploaded file data.
$_SERVER – server data
$_SERVER – server data
$_ENV – environment variables
$_ENV – environment variables
$_REQUEST – combination of GET/POST/COOKIE
$_REQUEST – combination of GET/POST/COOKIE
Security
5
As of PHP 4.1, there are a series of super-globals that
offer very simple access to the input data.
$_GET – data from get requests.
Plik z chomika:
Moc_On
Inne pliki z tego folderu:
The Ultimate Guide to Graphic Design 2.pdf
(49498 KB)
Balanced Webdesign.pdf
(15960 KB)
Smashing Wordpress.pdf
(7288 KB)
When Search Meets Web Usability April 2009.pdf
(5126 KB)
New.Riders.Press.Tagging.People.powered.Metadata.for.the.Social.Web.Jan.2008.pdf
(18591 KB)
Inne foldery tego chomika:
@ Dieta Vitalia
►Paranaukowe (modtest)
Biznesplany
budownictwo
Hack
Zgłoś jeśli
naruszono regulamin