Variable coverage of PHP code audits

Source: Internet
Author: User

(i) Parse_str ()-parses a string into a variable

<? PHP $a= "; Parse_str ($_server//$_server[' query_string ') Save the query portion of the URL print$a;? >

A=1 can complete the overlay.

(ii) Extract ()-Import variables from an array

<? PHP $a = "; Extract ($_get); Print $a ;? >

A=1 can complete the overlay.

(iii) Import_request_variables ()-Import the Get/post/cookie variable into the global scope >php 4.1.0 <php 5.4.0

<?php      //>php4.1.0 <php5.4.0$a = ' 0 '; Import_request_variables (' G '); Print $a ;  ? >  

Within the corresponding version? A=1 can be overwritten

(Thu) Register_globals=on <php 5.3

? a=1 can be overridden directly--initialize variables to avoid this problem

Variable coverage of PHP code audits

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.