<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amol Londhe on Medium]]></title>
        <description><![CDATA[Stories by Amol Londhe on Medium]]></description>
        <link>https://medium.com/@amollondhe-2007?source=rss-23df56785b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rH_8_kxupzZkSYsfEC-GOQ.jpeg</url>
            <title>Stories by Amol Londhe on Medium</title>
            <link>https://medium.com/@amollondhe-2007?source=rss-23df56785b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:06:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amollondhe-2007/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reverse Shell Using DLL Hijacking Vulnerability on Citrix Application]]></title>
            <link>https://amollondhe-2007.medium.com/reverse-shell-using-dll-hijacking-vulnerability-on-citrix-application-eeff8147f71e?source=rss-23df56785b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeff8147f71e</guid>
            <category><![CDATA[citrix]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[dll-hijacking]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Amol Londhe]]></dc:creator>
            <pubDate>Sun, 04 Oct 2020 09:56:50 GMT</pubDate>
            <atom:updated>2020-12-09T18:34:21.998Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Guys, how are you all ? Hope you are safe and fine. As it’s a pandemic situation many IT professionals are working from home using vpn or any other remote tools. In which one of them is <strong>Citrix </strong>which is well known and widely used in many organizations and also I am one of the citrix user. As per daily activity I was testing an thick client application after finishing my work , thought of looking after citrix receiver application as It is new to me never worked on it before, I thought of finding vulnerabilities in it and guess what I found <strong>Dll Hijacking</strong>. So Let’s get started how I discovered this flaw which can harm the user and put organization under risk.</p><h3>So, what is DLL Hijacking?</h3><p>DLL Hijacking is a way for attackers to execute unexpected code on your machine. This means that if an attacker can get a file on your machine (by social engineering, remote control, etc.) that file could be executed when the user runs an application that is vulnerable to DLL Hijacking.</p><p><strong>Tools &amp; OS used:</strong> Windows 10, Kali Linux, process monitor (Microsoft Sysinternal tool).</p><blockquote><em>Vulnerable Application: </em><strong><em>Citrix Receiver 4.12</em></strong><em> &amp; </em><strong><em>Citrix Workspace 2009</em></strong></blockquote><h3>Exploitation</h3><p><strong>Step1: </strong>Capture the traffic using Microsoft sysinternals tool “process monitor” and use proper filter while capturing the traffic as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*I-dEjst3SQyKtPrxIe3n2g.png" /></figure><p><strong>Step2: </strong>Open the Citrix application and look for name not found dll’s which belongs to application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQ8XITJDmWRszh1-F4ArZA.png" /></figure><p><strong>Step3: </strong>Now we need to craft a malicious dll to get reverse shell of a victim machine am using Msfvenom in kali Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKyHbJw3qYdAVaTDeWASlg.png" /></figure><p><strong>Step4: </strong>After replacing with few missing dll. It gave me an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*iPel-erI4CH02qGgU1LbGg.png" /></figure><p><strong>Step5: </strong>After so many failure attempts, I saw an Dll with name “WindowsAppRHelper.dll”. After google search I got to know it is used to fix missing or corrupted dll and same time it is executing with application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*G9MSgtl-8DOujNbKS4V6CQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X6_uJIOdcW_mP7-2HNIHuQ.png" /></figure><p><strong>Step6: </strong>As it is executing with application, I thought of replacing “WindowsAppRHelper.dll” with Malicious DLL file with same name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*0wtq3yK81ZOHgDJI4Uwq6Q.png" /></figure><p><strong>Step7: </strong>Again I closed and restarted the application and when application calls and executes this malicious dll (WindowsAppRHelper.dll), I got reverse shell of victim machine without any error of dll and application was running successfully and we can find the victim’s session at tcp listener. As it is user level shell, but post exploitation can be done in order to gain admin privilege.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6lWMMNuLHrzJV0_duUehlg.png" /></figure><p><strong>Step8: </strong>I verified that exploit was successful by killing the Receiver.exe task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S8cY4eVmVoM73Y1x76YRgA.png" /></figure><h3>The impact on Citrix</h3><ol><li>Attacker can use as an Application as rootkit, Application rootkits replace standard files in your computer with rootkit files. They might also change the way standard applications work. These rootkits might infect programs such as Word, Paint, or Notepad etc. Once you run these programs; you will give hackers access to your computer. The challenge here is that the infected programs will still run normally, making it difficult for users to detect the rootkit or any.</li><li>An attacker can Implant a Malware in victim system which could be difficult to locate and to remove from the system and Every time Citrix is executed, the Malware is executed and Even if you try to uninstall the application malicious dll is executed.</li><li>An attacker can use victim system as a zombie or cyber intrusion (DDOS).</li><li>Even use application for binary planting, binary planting is a general term for an attack where the attacker places (i.e., plants) a binary file containing malicious code to a local or remote file system for a vulnerable application to load and execute it.</li><li>Even if an attacker gets a same privilege, attacker can try to do post exploitation looking after System Misconfiguration and get Admin privilege.</li></ol><h3>Remediation</h3><p>Wherever possible, specify a fully qualified path when using the LoadLibrary, LoadLibraryEx, CreateProcess, or ShellExecute functions.</p><p>Test your application with Microsoft’s CWDIllegalInDllSearch hotfix set to “max”</p><h3>Conclusion</h3><p>As it falls under Social engineering but flaw is flaw which must be Fixed. Dll hijacking is still an issue in the modern day and can be used by malware authors to maintain access to computers. Many attackers have targeted this type of vulnerability. More must be done to protect user’s computers by program authors by implementing secure dll loading programming practices. Windows is also at fault for having such an insecure dll loading practice in the first place.</p><h3>Disclosure…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*IrlOfw-7RNDcGwzvLhtWUQ.png" /></figure><h3>Wanna connect:</h3><p>LinkedIn: <a href="https://www.linkedin.com/in/amol-londhe/">https://www.linkedin.com/in/amol-londhe/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeff8147f71e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WebLogic Remote Code Execution Vulnerability]]></title>
            <link>https://amollondhe-2007.medium.com/weblogic-remote-code-execution-vulnerability-11a32d0c3ecc?source=rss-23df56785b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/11a32d0c3ecc</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[remote-code-execution]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[weblogic]]></category>
            <dc:creator><![CDATA[Amol Londhe]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 11:39:34 GMT</pubDate>
            <atom:updated>2020-10-03T13:58:28.528Z</atom:updated>
            <content:encoded><![CDATA[<p>According to OWASP (Open Web Application Security Project) Code Injection differs from Command Injection. In that an attacker is only limited by the functionality of the injected language itself. If an attacker can inject PHP code into an application and have it executed, he is only limited by what PHP is capable of. Command injection consists of leveraging existing code to execute commands, usually within the context of a shell.</p><p>Hey fellow Hackers today in this post we will talk about Remote Code Execution which I found on one of India’s biggest private banking domain Which was using Oracle WebLogic server and will see some POC’s related to it. So, without wasting more time let’s get started.</p><p>Just like every day work I was testing bank’s external environments and I came across a domain were an application was running on an unpatched WebLogic server.</p><p><strong>Exploitation</strong></p><p>I ran a simple Nmap scan on domain to fingerprint the services and found that application was running on WebLogic server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*CzPU5GYnW0wYKWoOxrroqA.png" /></figure><p>Then I used Dirbuster to find out existing directories. So, I ran WebLogic wordlist on port 443 which I found it on GitHub and got some accessible directories.</p><p><a href="https://github.com/huntergregal/wordlists/blob/master/app_specific/weblogic.txt">huntergregal/wordlists</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*xfXQ6g2ux2RqUTWkDYvjxw.png" /></figure><p>As it turns out, there is a login page and it is showing current WebLogic version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*2YM2ojKdmv3UVCWgWwe-tQ.png" /></figure><p>I did a quick google search and found few known vulnerabilities and one of them was remote code execution. I found exploit on GitHub before running the exploit I tried to check if the vulnerable endpoint is accessible to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNX9IUGyjwqdxfujmOYD9Q.png" /></figure><p>Before running actual exploit, I tried to test if the server is vulnerable or not. And below screenshot Shows that test file is uploaded on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*mLOOYnqD_JfXdUvLUCn10A.png" /></figure><p>After confirming the vulnerability, I uploaded my web shell on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*9_4gocZlYn7DXxPZkAfyMg.png" /></figure><p>Knowing that I am already a root user there is no need for privilege escalation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*sPdtw5FdSFMgnknemhBTsQ.png" /></figure><p>I started to look for internal directories and I found credentials of WebLogic administrator console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*fXZfPTIn8_6y3Bo9F25a7g.png" /></figure><p><strong>Conclusion</strong></p><p>System administrators often forget to update their external web server software to the latest version. It is very important to understand that external environments are the first point of attack.</p><p><strong>References</strong></p><p><a href="https://nvd.nist.gov/vuln/detail/CVE-2017-10271">https://nvd.nist.gov/vuln/detail/CVE-2017-10271</a></p><p><a href="https://github.com/RealBearcat/Oracle-WebLogic-CVE-2017-10271">https://github.com/RealBearcat/Oracle-WebLogic-CVE-2017-10271</a></p><h3>Wanna connect:</h3><p>LinkedIn: <a href="https://www.linkedin.com/in/amol-londhe/">https://www.linkedin.com/in/amol-londhe/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11a32d0c3ecc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I found LFI on India’s biggest Telecom Service Provider using third party service .]]></title>
            <link>https://amollondhe-2007.medium.com/how-i-found-lfi-on-indias-biggest-telecom-service-provider-using-third-party-service-c6e66f0bda9d?source=rss-23df56785b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6e66f0bda9d</guid>
            <category><![CDATA[hacking-for-defense]]></category>
            <category><![CDATA[lfi]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Amol Londhe]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 09:16:34 GMT</pubDate>
            <atom:updated>2020-10-03T13:58:01.222Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I found LFI on India’s biggest Telecom Service Provider using third party service .</h3><p>Hey folks, I want to share of my recent finding with you guys..thought of writing a blog on this . As read the title its Local file inclusion, yes! that’s what I found.</p><p>So this how the story went, I was surfing the internet then i came across the site. Lets call it xyz.</p><p>So when I visited the site I started tingling around to find something. And after some recon l found admin login page. Bingo!! I know what you all are thinking. Admin? I tried that and I entered the login page of the admin. I was shocked at very first seconds thinking that how a India’s biggest telecom service provider protects their admin panel..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*iqChwqOQ3p9eaLbCWeTdsA.png" /></figure><p>By using default login credentials , I got access into admin portal. Looking at upload file option , I tried to upload malicious shellcode in the website .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*ostHh_4Er_n_RfM_m3t3ZQ.png" /></figure><p>While executing the uploaded shell code, failed and came up with some error. By observing the url endpoint which was “getfile.jsp?file=” I thought it might fetch files from the server..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVRbk926664z5Y5GlZUbPQ.png" /></figure><p>Guess what , I found LFI <a href="https://www.target.com/fileupload/getfile.jsp?file=../../../../../../../etc/passwd.">https://www.target.com/fileupload/getfile.jsp?file=../../../../../../../etc/passwd.</a> As you can see parameter “getfile.jsp was vulnerable to LFI . .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2XBQ3pgQYyjPYHWFTM7Fg.png" /></figure><p>I confirmed that LFI was there and so now my aim was to escalate it to get RCE and look for privilege as it was using older kernel version..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J74VmDkOQVf7XAMlqABVUA.png" /></figure><p>Lets try what more we can get , “/proc/net/arp” found local ip addresses and there mac address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJoxg8-VotIPXOJXuXBgsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbf8F21kXWJCnnkLBbB6vQ.png" /></figure><p>I knew that “/proc/self/fd” provides access logs and various other system related file . I ran intruder over /proc/self/fd (number)&amp; guess what I was able to download entire log file which had customer data , internal ip address and login credential .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5EN-w34Ejwh5j0iy6-V5Nw.png" /></figure><blockquote><strong><em>Report details</em></strong><em>-</em></blockquote><p>June 8, 2019 — Bug reported to the Telecom company.</p><p>June 10 2019 — Bug was Fixed .</p><p>June 13 2019 — Got appreciation .</p><p>Thanks for reading!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3VJ9-NYEZo0AMtVK7W3Tbw.png" /></figure><h3>Wanna connect:</h3><p>LinkedIn: <a href="https://www.linkedin.com/in/amol-londhe/">https://www.linkedin.com/in/amol-londhe/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6e66f0bda9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>