PHP source code audit dictionary

Source: Internet
Author: User

I have classified functions related to PHP security. I have read many articles and blogs, and I would like to express my gratitude. 1. include/require/require_once/include_once/users/system/popen/passthru/proc_open/pcntl_exec/users/preg_replace/assert/call_user_func/call_user_func_array/create_function4. _ GET/_ POST/_ COOKIE/_ SERVER/_ REQUEST/_ ENV/php: // input/getenv/5. session/cookie6.extract/parse_str/mb_parse_str/import_request_variables/unserialize7.copy/rmdir/chmod/delete/fwrite/fopen/readfile/fpasst Hru/clusters/file_put_contents/unlink/upload/opendir/fgetc/fgets/ftruncate/fputs/fputcs8.select/insert/update/delete/order by/group by/limit/in (/stripslashes /urldecode9.confirm _ phpdoc_compiled/mssql_pconnect/mssql_connect/crack_opendict/snmpget/ibase_connect10.echo/print/printf/vprintf/document. write/document. innerHTML/document. innerHtmlText11.phpinfo/highlight_file/show_source12.iconv/m B _convert_encoding comes with security configuration options in php. ini. Safe_mode = off (a lot of shit cannot be done with this on) disabled_functions = N/A (no one, we want all) register_globals = on (we can set variables by request) allow_url_include = on (for lfi/rfi) allow_url_fopen = on (for lfi/rfi) magic_quotes_gpc = off (this will escape '"and NUL's with a backslash and we don't want that) short_tag_open = on (some scripts are using short tags, better o N) file_uploads = on (we want to upload) display_errors = on (we want to see the script errors, maybe some undeclared variables?) Open_basedir: Restricted Access Directory display_errors = off: displays error messages

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.