0day.today - Biggest Exploit Database in the World.
![](/img/logo_green.jpg)
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earnGOLD
Administration of this site uses the official contacts. Beware of impostors!
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
WordPress themify themes File Upload Vulnerability
[ 0Day-ID-21551 ]
Full title
WordPress themify themes File Upload Vulnerability
[ Highlight ]
Highlight - is paid service, that can help to get more visitors to your material.
Price:
10
Price:
![](/img/gold.gif)
Date add
Category
Platform
Verified
![](/img/warning.png)
Price
free
Risk
![](/img/risk/critlow_3.gif)
Security Risk High
]Rel. releases
Description
all theme suffer of File Upload Vulnerability.
all whitout autoritation can upload malicious code to all themify theme
all whitout autoritation can upload malicious code to all themify theme
Usage info
prof of concept:
code not properly sanitized at get function:
function themify_upload(){
if(!empty($_FILES)) {
if(!isset($_POST['target']) || $_POST['target'] == ''){
$target = TEMPLATEPATH.'/uploads/';
} else {
$target = TEMPLATEPATH.'/'.$_POST['target'];
}
$target = rtrim($target, "/");
$check = false;
if(!is_dir($target)){
if(!mkdir($target, 0777, true)){
echo "false";
} else {
$check = true;
}
} else {
$check = true;
}
if($check){
if(move_uploaded_file($_FILES['Filedata']['tmp_name'], $target."/".str_replace(" ", "-", basename($_FILES['Filedata']['name'])))){
echo str_replace(" ", "-", basename($_FILES['Filedata']['name']));
} else {
echo "false";
}
}
}
}
if($_GET['upload']){
themify_upload();
}
code not properly sanitized at get function:
function themify_upload(){
if(!empty($_FILES)) {
if(!isset($_POST['target']) || $_POST['target'] == ''){
$target = TEMPLATEPATH.'/uploads/';
} else {
$target = TEMPLATEPATH.'/'.$_POST['target'];
}
$target = rtrim($target, "/");
$check = false;
if(!is_dir($target)){
if(!mkdir($target, 0777, true)){
echo "false";
} else {
$check = true;
}
} else {
$check = true;
}
if($check){
if(move_uploaded_file($_FILES['Filedata']['tmp_name'], $target."/".str_replace(" ", "-", basename($_FILES['Filedata']['name'])))){
echo str_replace(" ", "-", basename($_FILES['Filedata']['name']));
} else {
echo "false";
}
}
}
}
if($_GET['upload']){
themify_upload();
}
Vendor
http://themify.me
Affected ver
all version
Tested on
linux - windows
Solution
no solution. no contact from themify staff
Other Information
Abuses
0
Comments
6
Views
9 481
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
free
Open Exploit
You can open this source code for free
You can open this source code for free
[ Comments: 6 ]
Terms of use of comments:
- Users are forbidden to exchange personal contact details
- Haggle on other sites\projects is forbidden
- Reselling is forbidden
Login or register to leave comments
Login or register to leave comments