<?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 Mudasser Hussain on Medium]]></title>
        <description><![CDATA[Stories by Mudasser Hussain on Medium]]></description>
        <link>https://medium.com/@mudasserhussain1111?source=rss-fa3872a594------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*r71239gqasFkTZVq79OmDQ.jpeg</url>
            <title>Stories by Mudasser Hussain on Medium</title>
            <link>https://medium.com/@mudasserhussain1111?source=rss-fa3872a594------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 20:39:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mudasserhussain1111/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[Docker Hacking: From Shodan to Root]]></title>
            <link>https://medium.com/@mudasserhussain1111/docker-hacking-from-shodan-to-root-f61d99f9c090?source=rss-fa3872a594------2</link>
            <guid isPermaLink="false">https://medium.com/p/f61d99f9c090</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[shodan]]></category>
            <dc:creator><![CDATA[Mudasser Hussain]]></dc:creator>
            <pubDate>Wed, 04 Sep 2024 08:22:06 GMT</pubDate>
            <atom:updated>2024-09-04T08:22:06.099Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>In the rapidly evolving landscape of cloud computing, containers have emerged as a game-changer in how we deploy and manage applications. Before the advent of containers, software often encountered compatibility issues when moved between different environments — what worked on one system could fail on another. Containers address this by bundling an application’s operating system, libraries, and dependencies into a single, portable unit, ensuring consistent behavior across environments. Among the various containerization platforms, Docker stands out as the most widely used, becoming indispensable for developers and operations teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TBcMLB8eYV5t98gKwUwwEw.jpeg" /></figure><h4>Docker Basics</h4><p>Docker is the go-to tool for containerization. It allows developers to package applications into containers — self-contained, standardized executable components that include everything needed to run the application. This packaging ensures that the application behaves the same regardless of the underlying system, significantly reducing the “it works on my machine” problem.</p><p>To create a Docker container, you start with a Docker image. The image contains the operating system, application code, necessary libraries, and other dependencies. The process of building this image typically involves writing a Dockerfile, which contains the instructions for creating the image. The docker build command is then used to compile the Dockerfile into a Docker image. Once built, the image can be stored in a container registry—a centralized repository for Docker images—and can be pulled from there to run on any compatible system.</p><h4>Information Gathering: Shodan</h4><p>One of the critical components of Docker is its API, which is exposed by default on port 2375. This API allows users to interact with the Docker engine, performing actions like starting or stopping containers, pulling images, and more. However, if this API is exposed to the internet without proper security measures, it becomes a significant vulnerability. Attackers can leverage this open API to gain unauthorized access to the Docker environment, potentially leading to severe security breaches. Shodan can be used to look for any public exposed docker API’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_X7M1cw6KVe1t2Qo2VDneQ.png" /></figure><h4>Initial Access: Exposed Docker API</h4><p>To determine if a Docker API is exposed, an attacker might send a GET request to the /version endpoint. If the API is exposed, the attacker will receive a JSON response that reveals details about the Docker instance. This initial reconnaissance step confirms the presence of Docker and can provide valuable information about the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wVgdTQ9OU1eCxdJqcOfPaA.png" /></figure><p>Once the API is confirmed to be exposed, attackers can list the running containers with the following command:</p><pre>docker -H &lt;host&gt;:&lt;port&gt; ps</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*3BgohwMmzPukG0HC0R5haA.png" /></figure><p>This command provides a list of all active containers, along with their respective names, IDs, and status. If a container of interest is identified, an attacker can execute commands within it by using:</p><pre>docker -H &lt;host&gt;:&lt;port&gt; exec -it &lt;container name&gt; /bin/bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*otu0Is_JyX8WdDftpsMGFw.png" /></figure><p>This command opens an interactive shell inside the container, potentially giving the attacker root access. With this level of access, an attacker could attempt to escalate privileges to the host system, depending on how Docker is configured. For instance, if the container is running with elevated privileges or if there are known vulnerabilities in the Docker version being used, the attacker might break out of the container and gain control over the host machine.</p><h4>How To Secure your Docker Environment?</h4><p>To secure your Docker environment, it’s crucial to address the vulnerabilities associated with an exposed Docker API, especially on port 2375. Here’s a summary of the key steps to mitigate these risks:</p><ol><li><strong>Restrict API Access</strong>: Bind the Docker API to localhost or use a firewall to limit access. Consider using SSH tunneling for remote access.</li><li><strong>Enable TLS</strong>: Encrypt communication with the Docker API by configuring TLS, ensuring secure data transmission.</li><li><strong>Implement Authentication and Authorization</strong>: Use OAuth, LDAP, or Docker’s native authentication to control access, and implement Role-Based Access Control (RBAC) to enforce the principle of least privilege.</li><li><strong>Monitor and Audit</strong>: Enable logging, integrate with SIEM tools, and set up alerts to detect suspicious activities.</li><li><strong>Regular Updates</strong>: Keep Docker and its dependencies updated with the latest security patches to protect against known vulnerabilities.</li><li><strong>Disable Unnecessary Services</strong>: If remote API access isn’t needed, disable it to reduce your attack surface.</li></ol><p>By following these practices, you can significantly enhance the security of your Docker environment, protecting it from unauthorized access and potential exploits.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f61d99f9c090" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Microsoft IIS: IIS Vulnerabilities]]></title>
            <link>https://medium.com/@mudasserhussain1111/hacking-microsoft-iis-iis-vulnerabilities-4c74c82b2af8?source=rss-fa3872a594------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c74c82b2af8</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mudasser Hussain]]></dc:creator>
            <pubDate>Thu, 18 Apr 2024 08:29:21 GMT</pubDate>
            <atom:updated>2024-04-18T08:29:21.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*zxkFQCQmC6z9B-hbLdgv2A.jpeg" /></figure><p>Welcome back to our exploration of Microsoft Internet Information Services (IIS) vulnerabilities and misconfigurations. In the previous article, we delved into the enumeration phase of IIS hacking. Now, let’s delve deeper into common vulnerabilities and misconfigurations that can compromise the security of IIS servers.</p><h3>Internal IP Address Disclosure</h3><p>Upon encountering a 302 response on an IIS server, stripping the Host header and using HTTP/1.0 may reveal internal IP addresses. This can be achieved by examining the Location header within the response.</p><h3>Executing .config Files</h3><p>A significant vulnerability lies in the ability to upload and execute .config files. By appending executable code within HTML comments at the end of the file, attackers can exploit this vulnerability.</p><h3>Leaking Source Code</h3><p>Multiple web.config files scattered throughout application folders often contain references to “assemblyIdentity” files and “namespaces.” By analyzing these files, attackers can discern the location of executables and download them. Additionally, files such as connectionstrings.config and global.asax may harbor sensitive information.</p><h3>Exploring Binary Files</h3><p>Accessing binary files like web.config can unveil crucial settings and dependencies, including EntityFramework versions, AppSettings, system configurations, and assembly bindings. This information provides insights into the application’s structure and potential vulnerabilities.</p><h3>Root Directory Files</h3><p>Files located in the root directory, such as global.asax and connectionstrings.config, are vital for the application’s configuration and operation. Notably, connectionstrings.config may contain sensitive passwords, making it a prime target for attackers.</p><h3>IIS Authentication Bypass with Cached Passwords (CVE-2022–30209)</h3><p>Exploiting known Common Vulnerabilities and Exposures (CVEs), such as CVE-2022–30209, can lead to authentication bypasses by leveraging cached passwords. It’s crucial to stay vigilant and address known vulnerabilities in the IIS version being utilized.</p><p>In conclusion, understanding and mitigating these vulnerabilities and misconfigurations are essential for safeguarding IIS servers against malicious attacks. Stay tuned for further insights into enhancing cybersecurity measures for IIS environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c74c82b2af8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Microsoft IIS : IIS Enumeration]]></title>
            <link>https://medium.com/@mudasserhussain1111/hacking-microsoft-iis-enumerating-iis-for-v-39de5a27f101?source=rss-fa3872a594------2</link>
            <guid isPermaLink="false">https://medium.com/p/39de5a27f101</guid>
            <category><![CDATA[infosec-write-ups]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mudasser Hussain]]></dc:creator>
            <pubDate>Sat, 18 Nov 2023 13:15:40 GMT</pubDate>
            <atom:updated>2023-11-24T07:47:18.543Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ICwnkhXZ_IOJREt1ut2TYA.png" /></figure><p>Microsoft’s Internet Information Services (IIS) is a popular web server, but like any technology, it has its vulnerabilities. In this article, we’ll explore various enumeration techniques, fingerprinting methods, tools, and potential exploits related to IIS. Let’s dive into the details.</p><h3>Enumeration Techniques</h3><p>When dealing with IIS, understanding the intricacies of file naming is crucial. Windows generates MS-DOS-compatible short file names (8.3 format) alongside long names to facilitate compatibility with legacy systems. To view these short names, use the /X switch with the dir command.</p><h3>Nuclei</h3><p>Check out the <a href="https://github.com/projectdiscovery/nucleitemplates/blob/d6636f9169920d3ccefc692bc1a6136e2deb9205/fuzzing/iis-shortname.yaml">Nuclei templates</a> for fuzzing techniques.</p><h3>Fingerprinting with Shodan</h3><p>Utilize Shodan to identify IIS instances with specific characteristics:</p><ul><li>http.title:&quot;IIS&quot;</li><li>Ssl:&quot;Company Inc.&quot; http.title:&quot;IIS&quot;</li><li>Ssl.cert.subject.CN:&quot;company.in&quot; http.title:&quot;IIS&quot;</li></ul><h3>Fingerprinting Techniques</h3><h4>Cookies</h4><ul><li>ASP.NET_Sessionid</li><li>ASPSESSION</li></ul><h4>Headers Regex</h4><ul><li>X-AspNet-Version: (.*)\\;version:\\1</li><li>X-Powered-By:^ASP\\.NET</li></ul><h4>HTML Regex</h4><ul><li>&lt;input[^&gt;]+name\&quot;_VIEWSTATE</li></ul><h4>URL Regex</h4><ul><li>\\.aspx?(?.$|\\?)</li></ul><h3>Ignoring Directories from Scanning</h3><p>Exclude these directories from your scans:</p><ul><li>ASPNET~1</li><li>DEFAULT~1.ASP</li><li>DEFAULT~1.CSS</li><li>GLOBAL.ASA</li><li>GLOBAL.ASP</li><li>GLOBAL.CS</li><li>MASTER.CS</li><li>WEB.CON</li></ul><h3>Extensions to Bruteforce</h3><p>Bruteforce file extensions to uncover vulnerabilities:</p><ul><li>.aspx (Legacy active server pages)</li><li>.aspx (Modern Active server pages)</li><li>.ashx (APIs/AJAX)</li><li>.wsdl (Web Services Description Language)</li><li>.wadl (Web Application Description Languages)</li><li>.asmx (XML Web Services)</li><li>.xml</li><li>.zip</li><li>.txt</li></ul><h3>Tools for Investigation</h3><p><strong>Burp Extension:</strong> <a href="https://portswigger.net/bappstore/523ae48da61745aaa520ef689e75033b">IIS Tilde Enumeration Scanner</a></p><p><strong>Shortscan Tool</strong></p><ul><li>shortscan <a href="https://example.com/">https://example.com/</a></li><li>shortscan <a href="https://example.com/admin/">https://example.com/admin/</a></li><li>shortscan <a href="https://example.com/test">https://example.com/test</a></li></ul><p><strong>ffuf</strong></p><ul><li>ffuf -w iis.txt -u <a href="https://example.com/FUZZ">https://example.com/FUZZ</a></li><li>ffuf -w iis.txt -u <a href="https://example.com/shortnameFUZZ">https://example.com/shortnameFUZZ</a></li></ul><p><strong>IIS Short Name Scanner</strong></p><ul><li>Explore the latest version on <a href="https://github.com/irsdl/IIS-ShortName-Scanner">GitHub</a>.</li></ul><p><strong>nmap</strong></p><ul><li>nmap -p80 --script http-iis-short-name-brute 71.167.30.116</li></ul><p><strong>sns</strong></p><ul><li>Discover the tool at <a href="https://github.com/se33tLie/sns">https://github.com/se33tLie/sns</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39de5a27f101" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unauthorized Account Access: Password Reset Flaw  Unauthorized Access  to User Account]]></title>
            <link>https://medium.com/@mudasserhussain1111/password-reset-flaw-allows-unauthorized-access-c34708683121?source=rss-fa3872a594------2</link>
            <guid isPermaLink="false">https://medium.com/p/c34708683121</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Mudasser Hussain]]></dc:creator>
            <pubDate>Sun, 20 Aug 2023 07:33:32 GMT</pubDate>
            <atom:updated>2023-12-11T07:19:41.844Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qPBd9GWnQeL5KpShljlMQ.jpeg" /></figure><h3>Unauthorized Account Acces: Password Reset Flaw</h3><p>In the age of digital dependence, the security of our online accounts is of paramount importance. Every day, we rely on various online platforms to communicate, shop, and manage personal information. Yet, it is imperative that we remain vigilant in safeguarding our accounts from potential threats. Recently, I encountered a significant security flaw in a platform, which I will not disclose for security reasons, that has the potential to expose user accounts to unauthorized access. This vulnerability lies within the process of resetting passwords, a fundamental feature across numerous online services.</p><p><strong>The Vulnerability: A Glaring Oversight</strong></p><p>Typically, when a user initiates a password reset, they receive a password reset link in their registered email address. This link is the linchpin that secures the account. However, in the case I investigated, a critical vulnerability was discovered — a vulnerability that can be exploited if an attacker knows how to manipulate certain steps in the password reset process.</p><p><strong>Unveiling the Vulnerability</strong></p><p>Let’s walk through the steps an attacker could follow to exploit this flaw:</p><ol><li>Sending the Reset Link: As a user, you send a password reset link to your registered email address (e.g., email=<a href="/service/mailto:1@.com">1@.com</a>). This email serves as your primary email address linked to your account.</li><li>Crucial Step: You must refrain from opening the password reset link received in your inbox at <a href="/service/mailto:1@.com">1@.com</a>. This is where the vulnerability lies.</li><li>Updating Your Email: Access your account and initiate the process to update your email address by entering a new one (e.g., email=<a href="/service/mailto:2@.com">2@.com</a>). The new email address could be temporary or disposable — a crucial point.</li><li>Verification: Verify the new email address, which is now associated with your account.</li><li>Back to the Reset Link: After successfully changing the email address, return to the untouched password reset link originally sent to <a href="/service/mailto:1@.com">1@.com</a>.</li><li>Exploiting the Link: Utilize the password reset link to change the account’s password.</li><li>Confirmation: Confirm that the password has indeed been changed.</li></ol><p><strong>Understanding the Impact</strong></p><p>The implications of this vulnerability are far-reaching and severe. By following the steps outlined above, an attacker can change the account password even after the victim has updated their email address. This effectively grants unauthorized access to the victim’s account, putting their sensitive data in jeopardy. The consequences of such a security breach are grave and may include identity theft, unauthorized transactions, and the loss of personal information.</p><p><strong>The Path Forward: Recommendations</strong></p><ol><li>Immediate Fix: The platform must address this vulnerability swiftly by ensuring that a password reset link becomes invalid if the associated email address is changed.</li><li>Regular Security Audits: Routine security audits and penetration testing are crucial for identifying and mitigating potential vulnerabilities.</li><li>User Education: Users should be educated about the importance of not clicking on any password reset links that they did not request, especially if they have recently updated their email address.</li><li>Two-Factor Authentication (2FA): Encouraging users to enable 2FA can serve as an additional layer of security.</li></ol><p><strong>Conclusion: Vigilance is Key</strong></p><p>In an era where online security is paramount, the discovery of vulnerabilities like this highlights the critical need for robust security measures. Companies must remain vigilant, act promptly to rectify vulnerabilities, and collaborate closely with security researchers to ensure the safety of user accounts and their data. In this specific instance, immediate action is necessary to rectify the vulnerability, protect user accounts, and shield personal information from unauthorized access. The security of our digital lives depends on it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c34708683121" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey to Discovering an HTML Injection Bug]]></title>
            <link>https://medium.com/@mudasserhussain1111/unraveling-web-application-vulnerabilities-my-journey-to-discovering-an-html-injection-bug-639f902880f4?source=rss-fa3872a594------2</link>
            <guid isPermaLink="false">https://medium.com/p/639f902880f4</guid>
            <category><![CDATA[infosec-write-ups]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-application-security]]></category>
            <dc:creator><![CDATA[Mudasser Hussain]]></dc:creator>
            <pubDate>Tue, 08 Aug 2023 12:42:05 GMT</pubDate>
            <atom:updated>2023-08-10T12:19:06.068Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*OvL4yQs-jHk2vSeZ66nMgQ.png" /></figure><p><strong>Introduction:</strong> In the ever-evolving landscape of web application security, unearthing vulnerabilities becomes a pivotal pursuit for security enthusiasts. This article takes you through my exciting journey of discovering an HTML injection bug, a menace that could have exposed users to various risks. Delve into the steps, techniques, and tools that led to the discovery of this critical flaw and the subsequent responsible disclosure to secure the digital realm.</p><p><strong>The Alluring Chat Box:</strong> As part of the security assessment, I came across a web application with an engaging chat feature. Users could communicate with the support team, format their messages with HTML tags, attach images, and more. The allure of exploring this interactive chat box drew me in, and little did I know that it would be a journey of discoveries.</p><p><strong>Discovering the First Clue:</strong> I commenced by thoroughly examining the chatbox’s functionality and noticed its acceptance of basic HTML tags. Testing revealed that the application’s input fields sanitized HTML tags, preventing their execution within the browser. However, my curiosity was piqued, and I decided to dig deeper.</p><p><strong>The First Hints of Vulnerability:</strong> To explore the potential HTML injection, I employed the Burp Suite, a powerful web application security testing tool. Intercepting and modifying the outgoing requests, I inserted benign HTML tags, such as &lt;p&gt; and &lt;b&gt;, into the input fields. Surprisingly, the browser did not render the tags as expected, confirming the initial defenses against basic HTML injection.</p><p><strong>Unleashing the Colors:</strong> Determined to push the boundaries, I couldn’t resist attempting to inject some visual flair. By using HTML style tags, I tested changing the text color to blue. My heart skipped a beat when the chat record was sent via email, and the text color changed successfully! I had discovered an HTML Injection vulnerability.</p><blockquote><em>Example Injection Script: </em><em>&lt;p style=&quot;color:blue;&quot;&gt;I am blue&lt;/p&gt;</em></blockquote><p><strong>The Image Attachment Twist:</strong> The intrigue didn’t end there. I found that the application allowed users to attach images, but only through the designated attachment option. However, crafty as I am, I couldn’t resist the temptation to test this further. Using the chatbox’s HTML parameter, I injected an &lt;img&gt; tag, successfully attaching an image directly through the chatbox.</p><blockquote><em>Example Injection Script: </em><em>&lt;img src=&quot;https://malicious.site/malware.jpg&quot;&gt;</em></blockquote><p><strong>The Impact and Severity:</strong> As I comprehended the implications of the HTML injection vulnerability, the gravity of the situation became evident. The impact ranged from unauthorized access to sensitive information to potential phishing attempts, malware distribution, and defacement. Such an attack could have dire consequences for the application, its users, and the organization’s reputation.</p><p><strong>The Responsible Path:</strong> Recognizing the severity of the issue, I decided to follow the principles of responsible disclosure. I promptly reported my findings to the application’s security team, providing detailed steps to reproduce the vulnerabilities. This ensured that mitigation measures could be implemented to safeguard the users.</p><p><strong>The Call for Vigilance:</strong> The discovery of the HTML injection vulnerability reinforces the criticality of thorough security assessments for web applications. Vigilance, continuous testing, and a robust security mindset are paramount to identify and mitigate potential flaws before malicious actors exploit them.</p><p><strong>Mitigation and Best Practices:</strong> To shield web applications from HTML Injection and similar vulnerabilities, robust measures must be implemented. These include:</p><ol><li>Input Sanitization: Thoroughly validate and filter user input to prevent the execution of malicious code.</li><li>Output Encoding: Apply appropriate encoding when displaying user-generated content to prevent script execution.</li><li>Content Security Policy (CSP): Implement strict CSP to restrict sources for loading scripts and content.</li><li>Image Attachment Validation: Enforce server-side validation to prevent unauthorized image attachments.</li></ol><p><strong>Conclusion:</strong> My journey into the world of HTML Injection was both thrilling and eye-opening. This experience reaffirms the importance of rigorous security assessments and the need for continuous vigilance in safeguarding web applications. By raising awareness about such vulnerabilities, we can strive for safer online experiences for everyone.</p><p>So, next time you’re exploring a web application, don’t hesitate to dive deeper — who knows what hidden gems you might uncover?</p><blockquote>Remember, security is a journey, not a destination.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=639f902880f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Discovered a Critical PII Info Disclosure Bug: A Journey Through the Wayback Machine]]></title>
            <link>https://medium.com/@mudasserhussain1111/how-i-discovered-a-critical-pii-info-disclosure-bug-a-journey-through-the-wayback-machine-4c0cb5370eb5?source=rss-fa3872a594------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c0cb5370eb5</guid>
            <category><![CDATA[infosec-write-ups]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[pii-data]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mudasser Hussain]]></dc:creator>
            <pubDate>Mon, 31 Jul 2023 05:11:01 GMT</pubDate>
            <atom:updated>2023-07-31T05:23:53.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7OvJzsrxmiksqHkFQh9jyw.png" /></figure><p><strong>Introduction:</strong> In today’s interconnected digital world, data security is of paramount importance. Personal Identifiable Information (PII) such as names, addresses, and payment details are extremely sensitive, and any unauthorized access to this data can lead to severe consequences for both individuals and organizations. In this article, I will share my experience of discovering and responsibly disclosing a PII info disclosure bug that I stumbled upon while browsing the Wayback Machine.</p><p><strong>Understanding the Impact of PII Info Disclosure:</strong> A PII info disclosure bug occurs when an application or website inadvertently exposes sensitive user data to unauthorized parties. The ramifications of such a vulnerability can be significant, ranging from identity theft and financial fraud to reputational damage for the affected organization.</p><p><strong>Encounter with Wayback Machine:</strong> <em>The Wayback Machine</em>, maintained by the Internet Archive, is a powerful tool that allows users to browse through archived versions of websites. It captures snapshots of websites over time, providing a historical view of how websites evolve and change. While using this tool to explore the historical versions of a particular domain, I made a startling discovery.</p><p><strong>Uncovering the Exposed Endpoint API URL:</strong> The domain I was investigating was pay.domain.com, a payment processing platform for a prominent company. During my journey through the archived pages, I encountered a hidden API endpoint URL: “<em>pay.domain.com/api/PaymentInfobyID/ID</em>”.</p><p>Upon further inspection, it became evident that this endpoint was designed to fetch payment information using the “<em>PaymentID/ID</em>” parameter. However, to my astonishment, the endpoint lacked proper access controls, allowing unrestricted access to anyone with the endpoint’s URL.</p><p><strong>The Leaked User Payment History:</strong> By simply altering the “<em>PaymentID/ID</em>” parameter in the API request, I was able to access and view the payment history of any user on the platform. The information exposed included transaction dates, amounts, payment methods, and even partial card details, making it a treasure trove for potential malicious actors.</p><p><strong>Reproduction Steps:</strong> To ensure the vulnerability’s authenticity and to prepare for responsible disclosure, I recreated the steps to replicate the issue:</p><ol><li>Visit the Wayback Machine (<a href="https://archive.org/web/">https://archive.org/web/</a>).</li><li>Enter “<em>pay.domain.com</em>” in the search bar and access historical versions of the website.</li><li>Navigate through the archived pages to find references to API endpoints.</li><li>Discover the exposed API endpoint: “<em>pay.domain.com/api/PaymentInfobyID/ID</em>”.</li><li>Alter the “<em>ID</em>” parameter in the API request to access different payment records.</li></ol><p><strong>Responsible Disclosure and Mitigation:</strong> Responsible disclosure is crucial in ensuring the vulnerability is fixed without causing harm. I immediately reported my findings to the organization responsible for the pay.domain.com platform, providing them with a detailed explanation of the issue and its potential impact.</p><p>To their credit, the organization acted promptly, acknowledging the vulnerability and working diligently to address it. They implemented proper access controls and data encryption to safeguard user payment information, preventing any unauthorized access to sensitive data.</p><p><strong>Conclusion</strong>: My journey through the Wayback Machine led me to a critical discovery, emphasizing the significance of regular security audits and the necessity of responsibly disclosing vulnerabilities. This incident serves as a reminder that data security is an ongoing process, and constant vigilance is crucial in safeguarding sensitive user information. As technology evolves, so do potential threats, and it is the collective responsibility of organizations and security researchers to ensure a safe digital landscape for all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c0cb5370eb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Escape Walkthrough:]]></title>
            <link>https://medium.com/@mudasserhussain1111/objective-321db2fbb9a6?source=rss-fa3872a594------2</link>
            <guid isPermaLink="false">https://medium.com/p/321db2fbb9a6</guid>
            <category><![CDATA[infosec-write-ups]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[htb-walkthrough]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mudasser Hussain]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 14:59:39 GMT</pubDate>
            <atom:updated>2023-07-21T15:55:46.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gyUYOJs6vyNdn8cAfLIZVA.png" /></figure><p>The objective was to escape a medium-rated box by enumerating SMB shares, finding PDF credentials for MSSQL, and obtaining NTLMv2 hash to achieve privilege escalation and gain access to the administrator account.</p><h3>1. Initial Enumeration:</h3><ul><li>Conducted an Nmap scan and discovered various open ports on the target system, including 53, 88, 135, 139, 389, 445, 593, 636, 1433, 3268, 3269, 5985, 9389, 49667, 49669, 49670, 49686, 49696, and 49716.</li></ul><h3>2. SMB Share Exploration:</h3><ul><li>Checked for null authentication of SMB and found some accessible shares.</li><li>Found a PDF document in the “Public” share, which provided information about accessing SQL Server with non-domain joined machines and mentioned potential usernames: Tom, Brandon, and Ryan.</li></ul><h3>3. MSSQL Enumeration:</h3><ul><li>Tried using Impacket’s mssqclient to log in to the database using the found credentials, but enabling xp_cmdshell failed due to insufficient privileges.</li></ul><h3>4. NTLMv2 Hash Capture:</h3><p>Used xp_dirtree to capture the NTLMv2 hash of the account running the MSSQL service.</p><h3>5. Hash Cracking:</h3><ul><li>Cracked the hash using hashcat to obtain the plaintext password.</li></ul><h3>6. Privilege Escalation — Attempt 1:</h3><ul><li>Attempted to log in to MSSQL with the cracked password, but encountered login issues.</li></ul><h3>7. Domain Enumeration and BloodHound Analysis:</h3><ul><li>Used sql_svc to enumerate domain users.</li><li>Ran BloodHound to further enumerate the domain and gather information on potential attack paths.</li></ul><h3>8. Privilege Escalation — Attempt 2:</h3><ul><li>Discovered that sql_svc had CanPsRemote on DC from BloodHound analysis, enabling us to log in through the WinRM service using evil-winrm.</li></ul><h3>9. Privilege Escalation (Ryan.Cooper):</h3><ul><li>Checked C:\SQLServer\Logs\ERRORLOG.BAK and found the password for Ryan.Cooper.</li></ul><h3>10. Privilege Escalation (Administrator):</h3><ul><li>Used Certify to check for a vulnerable certificate template and downloaded it.</li><li>Followed a series of steps to obtain the TGT of the administrator</li></ul><h4>NTDS Dump:</h4><ul><li>Used secretsdump.py to dump NTDS and obtain credentials.</li></ul><h4>Administrator Access:</h4><ul><li>Logged in as the administrator to get a shell on the machine.</li></ul><h4>Unintended Privilege Escalation (Silver Ticket):</h4><ul><li>Attempted an unintended method by forging a silver ticket to impersonate the administrator on MSSQL.</li><li>Obtained the NTLM hash of sql_svc and the domain SID.</li><li>Used rpcclient to get the domain SID.</li><li>Created the silver ticket using ticketer.py.</li></ul><h4>Executing Commands on MSSQL:</h4><ul><li>Synchronized the time zone with ntpdate and enabled xp_cmdshell to execute commands on MSSQL.</li></ul><h4>Reverse Shell:</h4><ul><li>Transferred netcat to get a reverse shell.</li></ul><h4>Abusing SeImpersonatePrivilege:</h4><ul><li>Checked if SeImpersonatePrivilege was enabled.</li></ul><h4>Privilege Escalation as SYSTEM:</h4><ul><li>Used JuicyPotato-NG to gain a reverse shell as SYSTEM by exploiting SeImpersonatePrivilege.</li></ul><p>Overall, the process involved extensive enumeration, hash cracking, domain enumeration, and multiple privilege escalation techniques to achieve the final objective of escaping the medium-rated box and gaining administrator access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=321db2fbb9a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>