PHP security code Audit Manual [summary]

Source: Internet
Author: User

Variables that can be input by users in PHP

$_SERVER $_GET $_POST $_COOKIE $_REQUEST $_FILES $_ENV $_HTTP_COOKIE_VARS $_HTTP_ENV_VARS $_HTTP_GET_VARS $_HTTP_POST_FILES $_HTTP_POST_VARS $_HTTP_SERVER_VARS 



Functions that may allow command injection

system exec passthru `` shell_exec popen proc_open pcntl_exec 



Functions that may allow file inclusion

include include_once require require_once show_source highlight_file readfile file_get_contents fopen file 



Functions that may allow code injection

 eval preg_replace+/e assert call_user_func call_user_func_array create_function 


SQL statement functions that may allow SQL Injection
Insert
Delete
Update
Select

Functions that may allow attackers to operate files maliciously
copy rmdir unlink delete fwrite chmod fgetc fgetcsv fgets fgetss file file_get_contents fread readfile ftruncate file_put_contents fputcsv fputs 

More:
Http://ir.php.net/manual/en/ref.filesystem.php

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.