PHP safe_mode and other security configuration Bypass

Source: Internet
Author: User

In some common environments, PHP Execution environments can bypass php. security-related configuration set in ini execute commands or do other operations details: In the PHP-FPM environment fastcgi run PHP, because the PHP-FPM cannot know where our fastcgi request comes from, so I can mimic the fcgi protocol to initiate forged requests to the PHP-FPM. And since 5.3.3, The PHP-FPM allows the use of fcgi parameters PHP_VALUE, PHP_ADMIN_VALUE to set the content of php. ini, so you can use this to override the original php security settings. The result is as follows:Solution:In fact, this is really not very well repaired. You can temporarily remove the support for PHP_VALUE, but this is only a temporary solution. Let's see how PHP officially handles it. After all, he could not solve the problem that "The PHP-FPM could not know where our fastcgi request came from. This is another architecture problem.

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.