<?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 Rahul Mondal on Medium]]></title>
        <description><![CDATA[Stories by Rahul Mondal on Medium]]></description>
        <link>https://medium.com/@rahulmondal666?source=rss-3f64cddcb303------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WHhpZTwwCKOfGCqQ</url>
            <title>Stories by Rahul Mondal on Medium</title>
            <link>https://medium.com/@rahulmondal666?source=rss-3f64cddcb303------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:39:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rahulmondal666/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[Learning Thick Client VAPT with me.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-485f143c0063?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/485f143c0063</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[vapt]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 11:21:37 GMT</pubDate>
            <atom:updated>2023-10-26T11:56:57.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning Thick Client VAPT with me. Part 10. Side channel data leaks and ASLR, DEP, SafeSeH, CFG value check.</h3><p>Hey all.</p><p>Today we will check the side channel data leaks and ASLR, DEP, SafeSeH, CFG value checking.</p><p>Developers do use some processes, data for debugging the application. If a production level thick client application has those data, we need to find that and report that as that is a vulnerability. Those are generally found in thick client application logs. Or sometimes application logs too much in verbose manner with clear text.</p><p>Now we need to use cmd in our thick client application folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oK-MdkjuBIzLvfmZoX984g.png" /></figure><p>Now we will use this command and use different user creds to login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*quxAdrebwrEYS6Sh2V_MgA.png" /></figure><p>So let’s use one normal user. Then logout after surfing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*B6hzgv6WpftAUmzXIY3f3Q.png" /></figure><p>We can see that already we have our logs ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*xUjApyby11yMH8Z9RMYYYQ.png" /></figure><p>Now again another normal user. We will append new logs into our same log file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*xPE_VeR9HQ_QD4qGdZYBBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMnWmwGw_u0kFjg9AAhlMQ.png" /></figure><p>Now, again, use the same command and use the admin creds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*I4nRnvy79gq7neMDxmgr-w.png" /></figure><p>Now, let’s open the log file, and we can see all sensitive data is storing in log file and that too in clear text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5thMggH7UeW5XVXllP3m2A.png" /></figure><p>This is a vulnerability. We can see database connection string, and we can log in to the database using these logs. This is why excessive logging in a production application is dangerous.</p><p>Now, to check ASLR and SafeSeH value check we need a script/tool to check. We can download from here: <a href="https://github.com/NetSPI/PESecurity">https://github.com/NetSPI/PESecurity</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*enjNpxVBEpfZ7MDwXlFLKA.png" /></figure><p>Let’s open the PowerShell in this folder, and we need to import the module first then we can use this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKL-syevmzUbp1aWcR-DWg.png" /></figure><p>From the above image, we can see there is an error. We can see that in the error it is saying unauthorized access,Microsoft.Powershell.Commands.ImportModuleCommand</p><p>It means we can use the command import module. The user has no authorization. So we need to make some changes first.</p><p>Let’s do this to remove the authorization issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MsOYi9beO2MrnJMSpDkuug.png" /></figure><p>Let’s check that unrestricted execution policy is set or not? And yes, it is set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBXldCHhWo3LeSfm89rfow.png" /></figure><p>Now, again let’s import module and it is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LrXvxqofclssI8l8LuoQLg.png" /></figure><p>Let’s run the final command to check the values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkbhrTlha8QzuWJs0TtV3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*ai8aBsS3wtnppVXcvMMQxA.png" /></figure><p>We can see that ASLR, DEP are True, which is correct. No issue in that. If those were false, then it has to be true.</p><p><strong>What is ASLR and DEP?</strong></p><p>ASLR (Address Space Layout Randomization) is a security feature implemented by modern operating systems, including Windows and various Unix-based systems (like Linux), to protect against buffer overflow and other memory-based vulnerabilities. When a program is executed, ASLR randomizes the base addresses of various components, such as the executable code, dynamic link libraries (DLLs), and the stack. This randomization means that the exact location of these components in memory changes each time the program runs. This makes it challenging for an attacker to predict where specific functions or data structures are located in memory, making it harder to execute successful attacks.</p><p>DEP (Data Execution Prevention) is a security feature that helps protect computer systems from malware and buffer overflow attacks. DEP prevents the execution of code from data regions, such as the stack and heap, and it only allows code execution in designated executable memory regions. DEP helps prevent common attack techniques, like stack-based buffer overflows, where an attacker tries to execute their malicious code by overwriting data areas with their code. DEP marks certain memory regions as non-executable, preventing the CPU from executing code in those regions. It is implemented at both the hardware and software levels. When an application attempts to execute code in a non-executable region, an exception is generated, and the system can take appropriate action, such as terminating the offending process.</p><p><strong>Now what is SafeSeh and ControlFlowGuard(CFG)?</strong></p><p>SafeSEH is a security feature that helps protect against buffer overflow and stack-based vulnerabilities by validating the exception handlers in the program’s exception handling chain. Control Flow Guard (CFG) is a security feature designed to mitigate certain types of memory corruption vulnerabilities, such as return-oriented programming (ROP) attacks.</p><p><strong>What is ROP attack?</strong></p><p>ROP attacks are a type of exploit that abuses the control flow of a program by chaining together small, pre-existing code sequences called “gadgets” to achieve an attacker’s goal. CFG is specifically designed to mitigate ROP attacks, so when CFG is N/A or not enabled, it makes it easier for attackers to construct ROP chains and execute malicious code.</p><p><strong>So, SafeSeh and CFG…….</strong></p><p>If a binary is marked as “N/A” for SafeSEH, it means that it may not be using this protection, which could potentially make it more vulnerable to certain attacks. However, the absence of SafeSEH alone does not necessarily mean there is a specific vulnerability; it means that a particular protection mechanism is not in use. Similar to SafeSEH, if a binary is marked as “N/A” for CFG, it means that CFG is not applicable or in use for that binary. Now, here the SafeSEH and control flow guard are N/A. From the point of security testing, these needs to be true.</p><p>So, we have learned to check side channel data leaks and checking the value of ASLR, DEP, SafeSeH, CFG.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=485f143c0063" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 9. Source Code Analysis.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-9-source-code-analysis-48675816e93d?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/48675816e93d</guid>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 11:20:08 GMT</pubDate>
            <atom:updated>2023-10-25T11:20:08.287Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all.</p><p>Today, we will learn about source code review of our thick client application. For that, we will use visual code grepper.</p><p>We can download that from: <a href="https://sourceforge.net/projects/visualcodegrepp/">https://sourceforge.net/projects/visualcodegrepp/</a></p><p>Or from here: <a href="https://github.com/nccgroup/VCG">https://github.com/nccgroup/VCG</a></p><p>Just install and let’s open that. We can see it can check an application which made by anyone of those 7 languages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*Gezcd5RqeBorlOxQFPIUIQ.png" /></figure><p>Now we know our thick client is made by .net, so we should select the C# and let&#39;s select the whole directory. Here I have used the wholesome folders of DVTA as we need to scan all the elements which is made of C#</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*Fj-W7__2DE9yzHTTlCh1iA.png" /></figure><p>Now we need to select the directory from files of visual code grepper. Then select our whole folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGinmblc9pKiV4dHY742Ow.png" /></figure><p>Once done we can see it took all the necessary files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*34b6WDbpuNUq2SzfG3MqLQ.png" /></figure><p>Now we need to go to scan module and click on full scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*3JaIEgT68XhBPmEWrp5CKw.png" /></figure><p>We can see all the potential vulnerability as per severity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*43I0DFdw-5GS5-KpVVW3yQ.png" /></figure><p>We can report these. Also, we can check those unsafe codes are actually unsafe or not by normally see those codes or by some googling.</p><p>We have learned the source code analysis of our thick client application. Let’s meet in the next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48675816e93d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-33e55640ff38?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e55640ff38</guid>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Tue, 24 Oct 2023 10:46:44 GMT</pubDate>
            <atom:updated>2023-10-24T10:46:44.742Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning Thick Client VAPT with me. Part 8. Dumping connection string from memory and SQL Injection.</h3><p>Hey all.</p><p>Today, we will check any sensitive string by dumping the memory of our thick client application. We will also see SQL injection into our application.</p><p>Now, checking any sensitive string by dumping memory will <strong>only possible</strong> if our thick client application uses encrypted/non-encrypted <strong>hard-coded</strong> connection string.</p><p>Now we will use Process Hacker. We can download that from <a href="https://processhacker.sourceforge.io/downloads.php">https://processhacker.sourceforge.io/downloads.php</a></p><p>Then select binaries(portable) &gt; open the x64 version.</p><p>Before starting the process hacker start the thick client application and login and surf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*06EnMC9M9KzLRqtHNZ8NJw.png" /></figure><p>Now, start the process hacker and look for our thick client application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*Www0mllMjwqY8e_m6SsPIw.png" /></figure><p>Now double-click on our thick client application in process hacker. It will show our thick client application’s properties and then click on memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*kXwXgUPIBQTuEQRcddWezg.png" /></figure><p>After clicking on memory. Click on strings. There select/tick all and set minimum length is 10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*4HElmVm75LSd_ZmC_Iz00w.png" /></figure><p>Now we will get a big list of strings. So we need to filter (contains case-insensitive) with our juicy strings. Like data source, password, user, decrypt and many more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IU7LBuHPV3UMXWM74b5cOQ.png" /></figure><p>We can see username, password, and many more in clear text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MzcqWIZQl3k2xnS8cvO3qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*IoE25DLHZ3-BNIhdxhZFUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*_sYwhFTFLYAKMqWcj2LKcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*pDVpZLNSL4Ub-J3CYKhvAw.png" /></figure><p>We can see the username, password of user <strong>rahul</strong> and <strong>SQL express</strong> from above images. This is a vulnerability. To make it more impactful vulnerability, we can try to use those credentials to connect in SQL management studio and also in our thick client application.</p><p>Now for SQL injection. There is nothing as such. We need to just use payloads in the login to bypass that.</p><p>Payloads can be like: x’or’x’=’x</p><p>In payloads, we can put spaces to look like this: x’ or ‘x’=’x or other SQL injection payloads like with a genuine username but not the password like: rahul’or’x’=’y</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*5gcpZeYD1-aeKHZpO3q0qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*5deX7r8mDI3LeOWVmFNaZQ.png" /></figure><p>So, in this blog we learned Dumping connection string from memory and SQL Injection. Let’s meet in the next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e55640ff38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 7. DLL Injection.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-7-dll-hijacking-1efa58b6aba5?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/1efa58b6aba5</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Tue, 24 Oct 2023 10:42:09 GMT</pubDate>
            <atom:updated>2023-10-25T05:25:39.417Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all.</p><p>Today we will learn DLL Injection.</p><p>What is DLL?</p><p>A Dynamic Link Library or DLL is a kind of instruction file which can be used by any application. Suppose you have two application in your machine. One application has DLL “A”. Now the second application can also use that DLL “A”. You can also see sometime many games required DLL files, and sometimes it was missing, so we can always download and use that to run the application. So it is a dependency to run an application. You can find DLL load search order by an application from here: <a href="https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order">https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order</a></p><p>Now, our thick client application will also search for DLL files. Now we can do this two ways. First, which is for me, who is a lazy person. We will use an automation. Once we find that possibility to inject a malicious DLL (renaming to an actual DLL), then we will confirm that by manual verification. Then we can do this by doing totally manual level to find the vulnerable DLL.</p><p>For automation, we need to download this GitHub repo: <a href="https://github.com/knight0x07/ImpulsiveDLLHijack">https://github.com/knight0x07/ImpulsiveDLLHijack</a></p><p>Let’s check if it’s working or not and yes it is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSUYyVNc0hl7xFDBRGfInA.png" /></figure><p>Now let’s use this with our thickClientApplication.exe</p><p>Ohhh… we need procmon as a dependency and it’s correct.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ji20NonSZ9LqX0CwMpfIAw.png" /></figure><p>Just copy the procmon.exe from sysinternal suits to our impulsive DLL hijack folder. And again run the impulsive DLL hijack. Or the best is to copy the all contents of prerequisite folder from impulsive DLL hijack and paste in impulsive DLL hijack’s main folder and again run the impulsive DLL hijack.</p><p>If we only copy the procmon from sysinternals then we can get this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pBcrydicqkFQyvpro29l3g.png" /></figure><p>But if we copy all contents of prerequisite folder, then we will get to see which ones are actually vulnerable along with the above image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NfLUYGtvTzGx8N5a9TA6-w.png" /></figure><p>Sometimes we need to run the script two times to get the better results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8m-aVc1hW1ajZYPJjUNJog.png" /></figure><p>Now let’s open the Kali and make a malicious DLL. Remember that malicious DLL’s name has to be same which is called by our thick client application. That DLL, we will download on our windows to run. Our windows&#39; defender will block that, so let’s turn off the real time checking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*5gtxMwEC706fCsdzxDJJLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*sacc1bJVDdklwi9WCWzy_A.png" /></figure><p>Let’s download that to our Windows machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*2jlhd9gnZUqbBw9vAowtSg.png" /></figure><p>And paste it in our thick client application folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*0z_1pwQPd68I3n1raUBZZw.png" /></figure><p>Now, let’s run the listener in our Kali.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*ogg_a-Ama87SSsMUu0vbKw.png" /></figure><p>Now run the listener and after that start our thick client application.</p><p>Thick client did not open after starting as it get injected with wrong DLL. Although, it will show in task manager if you open the task manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z7mEKZAK6X1hSR0K-dot9g.png" /></figure><p>But simultaneously we got meterpreter shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*prbGj9ainvC5-efQsTPzLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*ZaaMWrsGgaS0W1xDniYvfQ.png" /></figure><p>And we did the DLL injection successfully.</p><p>Now we can find the vulnerable DLL files manually. How?</p><p>Let’s open the procmon from sysinternal suite and add this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gwhi9EhebJ7p-jGuRiMMrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cFUzl2oWMLXzog1Avwt9hg.png" /></figure><p>Now let’s open our thickclientapplication.exe and login</p><p>By doing that, we can see all the DLLs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*BegfUAaqo5-qBltmUAC44A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*LPUhvdHNmT_GH2wndOt-Rg.png" /></figure><p>After that again use Kali to make payload as a DLL file while the name have to be same like those DLL files found by us in procmon. Copy and paste that malicious DLL to the thick client application folder. Then making the listener in Kali and start the thick client application in windows. Then we will get the connection in the listener.</p><p>By using automated script we are doing list of DLL files which are calling by our thick client application which we can do by procmon manually. Although automated script is also using procmon. Then the script is checking which DLL is/are vulnerable, otherwise we need to check each one by one.</p><p>So we can do DLL injection now. Let’s meet on the next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1efa58b6aba5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 6. Account Takeover.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-6-account-takeover-6da195d05eb2?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/6da195d05eb2</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Tue, 24 Oct 2023 10:40:16 GMT</pubDate>
            <atom:updated>2023-10-24T10:40:16.292Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all.</p><p>Today we will learn about regshot. Basically to compare the difference between registry changes in our machine before and after the login into our thick client application. We can download the regshot from here: <a href="https://github.com/Seabreg/Regshot">https://github.com/Seabreg/Regshot</a></p><p>Before that lets login into our thick application as rebecca and add some expenses. Then logout from our thick client application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*yTrI9AAkqhmAOim8xb_rHA.png" /></figure><p>Let’s open the regshot without login into our thick client application and hit the 1st shot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*3DKQoqdK1DuhC6-SwC70zg.png" /></figure><p>Now, lets login into our thick client application and hit the 2nd shot on regshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlOBtZ6phZrKXe8MT7GZgA.png" /></figure><p>Now, let’s click on compare in the regshot, and it will give us the HTML result like this below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mi8sSq_Q3hU-bw2HpDOTsw.png" /></figure><p>Let&#39;s find the string DVTA and see if anything is there. It has to be because in registry it will be there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*W0CtMQkyOXft1oYvB5ELGQ.png" /></figure><p>Let’s open to registry editor and open the HKU. But where is HKU?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*mLEvmssOZ8no1605Ndy6dg.png" /></figure><p>By a simple google search we can know that HKU is HKEY_CURRENT_USER</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*4a1qJ0xRbLX_DDiqmgZ_2A.png" /></figure><p>We can see the logged-in user data is present in registry which is normal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*_vrPFBJJneWpFqiLiiXGBQ.png" /></figure><p>Now, let&#39;s do one thing. Let’s change the username to another user rebecca which is also a genuine user. Also change the email to rebecca@test.com. We will not change the password in the registry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*zLdkTOoStsRkLuF51f-vEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*ltzU3hCIc95aD2IBdt2cpw.png" /></figure><p>Now let’s just close our application (not the logout) and again open the application. We are in rebecca’s account. Note: rebecca user’s password is not rahul.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tgtke2jNfVL9MiqL0tlNoA.png" /></figure><p>Let’s fetch the expenses from view expenses. If we can see rebecca’s expense on clothes then it is a vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*FSflzNk1WC5Mj1Mx6KLMeA.png" /></figure><p>We can see the rebecca’s expense and not the user rahul’s expense. We are in the account of rebecca where we did not know about rebecca user’s password.</p><p>So, we learned that how to account takeover by using regshot and manipulate the registry. Let’s meet on next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6da195d05eb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 5. Verify and Strings.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-5-verify-and-strings-ee4997147d92?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee4997147d92</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Tue, 24 Oct 2023 10:37:42 GMT</pubDate>
            <atom:updated>2023-10-24T10:37:42.765Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all.</p><p>Today we will use the strings and sigcheck. All these are available in sysinternal tools.</p><p>So, let’s open the sigcheck with our DVTA, and we can see that it is showing it is unsigned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*UeTJ_J7cLAz4PV88iQ1mZA.png" /></figure><p>Now, above that is a vulnerability. Any application which is a production level or which is in market for customers to use that should be verified by their organization. That shows it is a genuine product.</p><p>Let’s use strings on our application and save in a text file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WTKJ2f9jplKnWIxOz_Jdmg.png" /></figure><p>Let’s open the text file and check for any suspicious strings. We can see that FTP password is in clear text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*UuBE3XJQ--ltVzd5rmDj4A.png" /></figure><p>This is a vulnerability, no credential or sensitive data should be hard-coded so that one can find by this.</p><p>So, we learned about sigcheck and strings. Let’s meet in the next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee4997147d92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 4. Application Structure and Unencrypted communication]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-4-application-structure-and-unencrypted-communication-5fde1249ab36?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fde1249ab36</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Wed, 18 Oct 2023 10:59:10 GMT</pubDate>
            <atom:updated>2023-10-18T10:59:10.543Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all.</p><p>Let’s first download all necessary tools. Maximum tools can be found on sysinternal tools, which is from Microsoft. We can download from here: <a href="https://learn.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite">https://learn.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite</a></p><p>First we need to see what type of our thick client application is. like what language is used to made that and all. For this we have a tool named CFF explorer. We can download that from here: <a href="https://github.com/cybertechniques/site/blob/master/analysis_tools/cff-explorer/index.md">site/analysis_tools/cff-explorer/index.md at master · cybertechniques/site · GitHub</a>. Let’s open our application into the CFF explorer.</p><p>We can see that it is made by .net</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*cy5Rkk4cwZcKfnaQaGcJcg.png" /></figure><p>Okay now let&#39;s run TCP view from sysinternals and then run the DVTA and login. We can see TCP view highlights the sqlexpress connection, when we log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnNxhR3JVH-U0CU-j3cJ1Q.png" /></figure><p>Now move on to Wireshark and open the loop back traffic as our thick client will connect to our machine to connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pH93qLUFd7CKoa1Bx414MQ.png" /></figure><p>Now, let’s open our thick client application and login. We can see in the Wireshark that a TCP SYN packet is going.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sLUIQFoe9HIpt8nCcZb84A.png" /></figure><p>Let’s select that traffic and follow the TCP stream. We can see the SQL query, username, password all are in clear text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzmPygtodSkt49ilpmK1Vw.png" /></figure><p>This is a vulnerability. It should have encrypted.</p><p>So, now we know how to check for application language and any unencrypted communication. We will meet in the next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fde1249ab36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 3. Patching the Application by Reverse Engineering.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-3-patching-the-application-by-reverse-engineering-e231ca6bfa34?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/e231ca6bfa34</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[vapt]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 13:46:41 GMT</pubDate>
            <atom:updated>2023-10-17T13:46:41.615Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all. Previously we have done the lab setup. But we actually don&#39;t know we are able to log in or not.</p><p>Moreover, this DVTA is a 2-tier thick client application, its database is in our machine only. And if we start the DVTA application we can see there we need to configure our server but the button configure server is not highlighted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*3P5pNO8sN5Eq55MrooNd3g.png" /></figure><p>We need to patch this application, so we can configure the server and login.</p><p>For that we need dnspy which is a decompiler. Let’s open our DVTA application into the dnspy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSIlNrOJrjrmf0Svm3yI4A.png" /></figure><p>We can see that it is marked as false as hard-coded for the configure server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1gKEmiPo7LxY1LkfWxfmMg.png" /></figure><p>If we change the language from C# to IL, we can see the config server part like below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z3IhcG8mZ0acfJALUutm1A.png" /></figure><p>Right-click on that and edit with IL instructions. We already know that it&#39;s using boolean logic. We can see that ldc14.0 is there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUyMrvyT0-fzBM2bztltgg.png" /></figure><p>Let’s make that 14.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*92TR3529MA4lcmVTObRfXQ.png" /></figure><p>Let’s click on Ok and save the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*dlvAb1jrp7kvquheCKbbDQ.png" /></figure><p>Just save it. Let’s open the DVTA application, and we can see that the configure server button is now enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*IjlDkbyxQGc9HWDHKZm8FQ.png" /></figure><p>Let’s put localhost on that, click on configure. It is success. Now put any credential we know and we are in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*tRjIBqZjpDRMfwQZ-oO-FQ.png" /></figure><p>So here we learned how we can patch an application by reverse engineering. For more, let’s go to next part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e231ca6bfa34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 2. Lab Setup.]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-2-lab-setup-6d505d288819?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d505d288819</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 11:09:24 GMT</pubDate>
            <atom:updated>2023-10-16T11:09:24.056Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all.</p><p>Now we need a fresh Windows 10. I did in the virtual box. We need to install some applications like Microsoft SQL server and Microsoft SQL Management studio. I installed the current latest version which 2022.</p><p>Microsoft SQL server: <a href="https://www.microsoft.com/en-IN/sql-server/sql-server-downloads">SQL Server Downloads | Microsoft</a><br>Microsoft SQL Management Studio: <a href="https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16#download-ssms">Download SQL Server Management Studio (SSMS) — SQL Server Management Studio (SSMS) | Microsoft Learn</a></p><p>Just do normal installation. Nothing complicated are there. <strong>But remember use custom mode of installation of SQL Express, not the basic/default one. Because there, you need to add password of mixed (windows+SQL) authentication. Then in service accounts part in installation process make NT Authority\SYSTEM of SQL server database engine. In the service accounts part, we also need to make automatic in startup type of both SQL server database engine and SQL server browser. This password will be used in FTP(FileZilla) also.</strong></p><p>After all installation, just open the SQL server management studio, connect, and we can see like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9J_isdXpZ4xxKPbsJQADxg.png" /></figure><p>Now we need to download DVTA as a zip: <a href="https://github.com/srini0x00/dvta/releases/tag/2.0">Release DVTA 2.0 · srini0x00/dvta · GitHub</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*VIQAsyK62GoopQFtx7aPmg.png" /></figure><p>We actually need only the release folder. All other we can delete. Release folder location: DVTA/bin/Release</p><p>Now, we need to configure (especially for the database)the DVTA. This configuration is mentioned in the DVTA site.</p><p>First is creating a database named DVTA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*scY-0n2JVL9_4a2Yx1vNUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*8PbtUhLAoiO0m4a9b1Hgbw.png" /></figure><p>Now we need to create query for the database DVTA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*vIUmF4YuBe_Vp7SwbF9vcA.png" /></figure><p>Now copy from the DVTA GitHub site and paste this in query area in management studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*yLjSP1MAVXMNmwBCp96XVQ.png" /></figure><p>Now click on DVTA database and refresh from right click. So we can see the users table under table of DVTA database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*-aibVzdx2nmVWVV9AOKXmQ.png" /></figure><p>Now with the new query for the user data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*UtQa-ZJ3uGyO0X4S7HDb7A.png" /></figure><p>Same thing with other query too. After that, save all those. Then open the SQL server configuration manager and check that as below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*tmkWMvos6KRYrMXLIxnL4Q.png" /></figure><p>We need to change that TCP/IP value from disabled to enabled. Then we need to restart the SQL server service to take that effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*CGG8NQzccdtsK4pHcS_N2A.png" /></figure><p>Now we need to download the FileZilla server for the sharing services from here: <a href="https://filezilla-project.org/download.php?type=server">Download FileZilla Server for Windows (64bit x86) (filezilla-project.org)</a></p><p>Port number we did not change it was like that only, but we put password which is same password of SQL express, by that it can connect with database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*MIbQCj9OIaq5qTwreqqzbg.png" /></figure><p>Once installation done, it will show like below image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*wQZdRNeq6_vwepdDCi__pA.png" /></figure><p>Just use the password we have used and we are in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*7S0AML5ZM8VBDdQzROVojA.png" /></figure><p>Now we need to add a user for that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*09gLHPF5hWt1ABfJ-i-9oA.png" /></figure><p>Or you can leave that password part as it will say leave that if you want same password. So leave that and click on OK.</p><p>To connect with a folder to make a shared folder, just do this: in virtual path put / and in native path put the location of the folder which we want to share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*jHV3AniU0KCaJpIsJXR8rA.png" /></figure><p>And we are done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*qKeHBd6NlBzzWuos8t0tkg.png" /></figure><p>We are done with the Lab setup. Let’s go to the next part.</p><p><strong>Note:</strong> I got some issue with my VM. So I had to configure again. By that, I gave the database name as DVTA_database. You can give any name. For that, you need to put that exact same name in the DVTA.exe config file (not the application.exe) also by that our thick client application can connect to that database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*xQ77fFVr80Wbl6hkWc-MnQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d505d288819" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Thick Client VAPT with me. Part 1]]></title>
            <link>https://rahulmondal666.medium.com/learning-thick-client-vapt-with-me-part-1-adfe0cf5f74f?source=rss-3f64cddcb303------2</link>
            <guid isPermaLink="false">https://medium.com/p/adfe0cf5f74f</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[thick-client-security]]></category>
            <dc:creator><![CDATA[Rahul Mondal]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 11:07:57 GMT</pubDate>
            <atom:updated>2023-10-16T11:07:57.103Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all. From today onwards, we will learn Thick Client. To learn we will use the DVTA which is a vulnerable machine for learning and practice thick client VAPT.</p><p><strong>Now what is Thick client?</strong></p><p>Thick client is a desktop application. It can work online or offline. Like zoom, slack. It can be a 2 tier architecture or can be a 3 tier architecture. Normally it is developed by java, c/c++, Microsoft silver light, .net/c#</p><p><strong>Now what is 2 tier architecture and a 3 tier architecture?</strong></p><ol><li>Two tier = client and server. Like desktop application is client and server can a database. So it is like a direct communication. Like music player.</li><li>Three tier = client, then application server and then database. Desktop application request some data to server then server fetch that from database then comes back to our desktop application through application server. Like outlook, teams, zoom.</li></ol><p><strong>Difference between Thick Client and Thin Client:</strong></p><ol><li>A web application is a thin client application, where skype, Slack are thick client application.</li><li>Thin client user mostly uses HTTP, HTTPS protocol with 80, 443, 8080 ports.</li><li>Thin client has complete processing on server side, nothing in locally. Where thick client uses local resources, and it is periodically sync with server.</li></ol><p>So, now we got the basics in theory, now let&#39;s move on to the part 2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adfe0cf5f74f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>