Php-framework-PHPcomposer

Source: Internet
Author: User
There are two questions: 1. What should I do if the code in the original address has a vulnerability or a backdoor? 2. If there is any modification after the download, will the update be overwritten? Two questions:
1. What should I do if the code in the original address has a vulnerability or a backdoor?
2. If there is any modification after the download, will the update be overwritten?

Reply content:

Two questions:
1. What should I do if the code in the original address has a vulnerability or a backdoor?
2. If there is any modification after the download, will the update be overwritten?

To use a third party, you must be prepared to bear the risk that a third party has vulnerabilities. As for backdoors, since the code is in your hands, it is your responsibility to troubleshoot backdoors. If you use a third-party component, you should use the object-oriented method to modify it instead of directly modifying the source code.

1. You can fork a copy of the source code, modify the vulnerabilities or backdoors you think, then go to packagist.org to release your releases, and replace the original address in the project.

2. You are not advised to directly modify the code in./vendor. The Code will be overwritten during the update.

1-usually no. If you find it, the processing method is the same as 2.
2-Don't put it in the vendor, just use it as your own stuff, HOHO

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.