How to fix Nginx0day vulnerabilities-official patch and temporary patch

Source: Internet
Author: User
As vulnerability patches have not been released officially, temporary solutions will be released immediately after the official release. The "80 sec" team that found the vulnerability has provided some temporary solutions, as nginx has not released any relevant repair measures.

As vulnerability patches have not been released officially, temporary solutions will be released immediately after the official release.

The "80 sec" team that found the vulnerability has provided some temporary solutions, as nginx has not released any relevant repair measures.

1. ModifyPhp. Ini file

Set cgi. fix_pathinfo of php. ini to 0 and restart the php service. This is the most convenient method, but some functions of the website may be affected.

2. Modify the nginx configuration file

Modify the vhost configuration of nginx, disable related operations, and restart the nginx service.

The default value is/etc/nginx/sites-enabl.Ed/The following site configuration.

If ($ fastcgi_script_name ~ .. */. * Php ){
Return 403;
}

3. Disable the upload function.

Temporarily disable all upload functions on the website, including disablingBbs'Target = '_ blank'>ForumUpload Avatar and other permissions, and wait for the official release of the vulnerability repair measures.

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.