<?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 Spoorthi on Medium]]></title>
        <description><![CDATA[Stories by Spoorthi on Medium]]></description>
        <link>https://medium.com/@spoorthi002?source=rss-df75f9af020a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aVPMNgzO6SSFvqGm</url>
            <title>Stories by Spoorthi on Medium</title>
            <link>https://medium.com/@spoorthi002?source=rss-df75f9af020a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:07:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@spoorthi002/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[Blind OS Command Injection with Time Delays]]></title>
            <link>https://medium.com/@spoorthi002/blind-os-command-injection-with-time-delays-35c0775044a0?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/35c0775044a0</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[os-command-injection]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 12:03:00 GMT</pubDate>
            <atom:updated>2026-11-26T12:03:00.482Z</atom:updated>
            <content:encoded><![CDATA[<h3>Making the Server Reveal a Hidden Vulnerability</h3><p>While working through PortSwigger’s Web Security Academy labs, I came across a scenario where traditional command injection techniques didn’t work. The application didn’t display command output, error messages, or any other clues that could help confirm whether commands were executing.</p><p>At first, it seemed as though every payload was failing. But in reality, the commands were running just fine. The challenge was finding a way to prove it.</p><p>This is where <strong>time-based command injection</strong> comes into play.</p><h3>Understanding the Problem</h3><p>The application contained a feedback form that submitted user input to the server.</p><p>Testing suggested that user input might be reaching an operating system command. However, whenever I injected commands such as <em>whoami </em>or <em>id, </em>the response remained unchanged. No output appeared in the browser. No error messages were generated. No obvious evidence of command execution existed.</p><p>This is what makes the vulnerability “blind.”</p><h3>Thinking Differently</h3><p>If I couldn’t see the output, perhaps I could observe another side effect. Instead of trying to retrieve data, I decided to make the server wait before responding.</p><p>Most Linux systems provide the ping command, which can be used to introduce a measurable delay. If my injected command executed successfully, the application’s response time would noticeably increase.</p><h3>Crafting the Payload</h3><p>Using Burp Suite, I intercepted the feedback request and modified the vulnerable email parameter.</p><p>Payload:</p><pre>xyz@email.com||ping+-c+10+127.0.0.1||</pre><p>Breaking down the payload:</p><ol><li><strong>||</strong> (OR operator): In Linux/Unix shells, this tells the system: “If the command before this fails, run the command after it.”</li><li><strong>+ (Plus signs):</strong> In web URLs, a + symbol is often used to represent a space ( ). When a web server reads this, it translates the string into ping -c 10 127.0.0.1.</li><li><strong>ping:</strong> A basic network tool used to test if a computer can reach another computer over a network. It sends a small signal and waits for a reply.</li><li><strong>-c 10:</strong> A setting (flag) that stands for <strong>count</strong>. It tells the ping tool to send the signal exactly <strong>10 times</strong> and then stop.</li><li><strong>127.0.0.1:</strong> A special IP address known as <strong>localhost</strong> or the <strong>loopback address</strong>. It always points back to the exact same computer that is running the command.</li></ol><h3>Observing the delay</h3><p>After sending the request, the application eventually returned its normal success message. However, something important had changed. The response took roughly <strong>10 seconds longer</strong> than usual. That delay was my proof.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5DeGaZ0GgoB9raFcVaFfw.png" /></figure><p>Once the delayed response was observed, the lab was successfully solved.</p><h3>Remediation</h3><p>To prevent blind OS command injection vulnerabilities:</p><ul><li>Avoid executing operating system commands with user input.</li><li>Use secure APIs instead of shell commands.</li><li>Enforce strict allowlist validation on all parameters.</li><li>Properly escape command arguments.</li><li>Apply the principle of least privilege.</li><li>Monitor for unusual command execution patterns.</li><li>Conduct regular source code reviews and penetration tests.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35c0775044a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OS Command Injection: The Simple Case]]></title>
            <link>https://medium.com/@spoorthi002/os-command-injection-the-simple-case-561eb8a13622?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/561eb8a13622</guid>
            <category><![CDATA[os-command-injection]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 11:52:02 GMT</pubDate>
            <atom:updated>2026-11-26T11:52:02.740Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>When User Input Becomes a System Command</strong></p><p>While working through PortSwigger’s Web Security Academy labs, I came across a classic example of <strong>OS Command Injection</strong>. Unlike blind command injection vulnerabilities where attackers must find creative ways to retrieve output, this lab exposed command results directly in the application’s response.</p><p>That made it a perfect demonstration of how a small coding mistake can hand complete control of system commands to an attacker.</p><h3>Discovering the Vulnerability</h3><p>The application provided a feature that allowed users to check stock availability for products. When a request was sent, the application appeared to execute a system command on the server to retrieve inventory information.</p><p>A normal request looked something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1koD2N52h-6T9MOtv-btYQ.png" /></figure><p><strong>Testing for Command Injection</strong></p><p>A common way to test for command injection is to add a command separator and execute another command.</p><p>I modified the vulnerable parameter and appended |whoami. After sending the request, it contained the output of the injected command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xk93w4VrYWNVMYbVWZbL4g.png" /></figure><h3>Remediation</h3><p>To prevent OS command injection vulnerabilities:</p><ul><li>Avoid invoking operating system commands whenever possible.</li><li>Use secure APIs instead of shell commands.</li><li>Validate and allowlist user input.</li><li>Escape command arguments properly.</li><li>Apply the principle of least privilege.</li><li>Implement monitoring to detect suspicious command execution patterns.</li></ul><h3>Final Thoughts</h3><p>This lab serves as an excellent introduction to OS command injection. The vulnerability was easy to exploit because the application displayed command output directly, making verification immediate. Although real-world scenarios are often more complex, the root cause remains the same: trusting unvalidated user input. A simple payload was enough to turn a harmless stock-checking feature into a doorway for arbitrary command execution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=561eb8a13622" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting a File Upload Race Condition to Execute a Web Shell]]></title>
            <link>https://medium.com/@spoorthi002/exploiting-a-file-upload-race-condition-to-execute-a-web-shell-7390ed49c10d?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7390ed49c10d</guid>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 12:08:03 GMT</pubDate>
            <atom:updated>2026-11-25T12:08:03.802Z</atom:updated>
            <content:encoded><![CDATA[<p>While working through the PortSwigger Web Security Academy file upload labs, I came across an interesting challenge that didn’t rely on the usual upload bypass techniques. Instead of tricking the application into accepting a malicious file permanently, the goal was to exploit a race condition during the upload process.</p><p>The result? Successful execution of a PHP web shell and retrieval of a sensitive file from the server.</p><h3>Understanding the Vulnerability</h3><p>The lab provided part of the server-side upload logic, which immediately revealed the issue.</p><p>The application first saved uploaded files to the publicly accessible /files/avatars/ directory and only then performed validation checks. If the file failed validation, it was deleted.</p><p>This sequence created a small race window:</p><ol><li>Upload file</li><li>Save file to public directory</li><li>Perform validation</li><li>Delete file if validation fails</li></ol><p>During the gap between steps 2 and 4, an attacker can potentially access the uploaded file before it is removed.</p><h3>Initial Recon</h3><p>As with previous file upload labs, I logged in using the provided credentials and navigated to the avatar upload feature. A legitimate image upload worked normally, confirming the correct functionality was identified.</p><p>Next, I attempted to upload a PHP web shell designed to read Carlos’s secret file:</p><pre>&lt;?php<br>echo file_get_contents(&#39;/home/carlos/secret&#39;);<br>?&gt;</pre><p>As expected, the upload was rejected and the application displayed an error stating that only JPEG and PNG files were allowed. At first glance, the validation appeared secure.</p><h3>Capturing the Requests</h3><p>Using Burp Suite, I located the upload request in HTTP History &amp; GET request that retrieves my upload avatar and sent it to Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kpPnKZC0Ao3-72F54V2fiQ.png" /></figure><p>After confirming the image was accessible, I modified the request to target my PHP exploit instead:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAiI59Xo6BngAYwH2Ij90A.png" /></figure><p>The response was a 404 Not Found, which made sense because the server had already deleted the malicious file.</p><h3>Exploiting the Race Window</h3><p>The challenge was to access the PHP file before validation completed.</p><p>To increase the chances of success, I grouped the upload request together with multiple GET requests targeting the shell. In Burp Repeater, I duplicated the GET request several times and added all requests to a single tab group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*9zJ1_c7Bsqr0VaY_nBNczg.png" /><figcaption>Grouping tabs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*e4t2yWtpeA4Z5gnTScLycg.png" /><figcaption>Duplicating tab</figcaption></figure><p>I then used <strong>Send Group in Parallel</strong> to fire everything at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*SPClfbeToz8zKGsVY9yWtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjWjbQdinYeHbM6rnBIuVA.png" /></figure><h3>Why It Worked</h3><p>The upload request took roughly half a second to complete because the server still needed to perform its validation logic. During this processing time, the file already existed inside the avatars directory.</p><p>Some of the GET requests failed with <strong>404 Not Found</strong> because they arrived too early or too late.</p><p>However, one of the requests successfully hit the file while it still existed on disk, before the cleanup routine removed it. That request returned <strong>200 OK</strong> and executed the PHP code.</p><h3>Conclusion</h3><p>Most file upload vulnerabilities focus on bypassing validation. This challenge was different. The validation worked exactly as intended, but the order of operations introduced a race condition.</p><p>By uploading a PHP web shell and sending multiple parallel requests to access it, I was able to execute the file before the application removed it and ultimately retrieve Carlos’s secret. It’s a great reminder that security bugs don’t always come from missing controls. Sometimes they come from doing the right things in the wrong order.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7390ed49c10d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Shell Upload via Path Traversal: Turning a Safe Upload into Remote Code Execution]]></title>
            <link>https://infosecwriteups.com/web-shell-upload-via-path-traversal-turning-a-safe-upload-into-remote-code-execution-7ee64843f384?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ee64843f384</guid>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 12:05:10 GMT</pubDate>
            <atom:updated>2026-11-24T12:05:10.783Z</atom:updated>
            <content:encoded><![CDATA[<p>While working through PortSwigger’s file upload labs, I came across an interesting challenge: <strong>Web Shell Upload via Path Traversal</strong>. Unlike previous labs where the application directly accepted PHP files, this one had a defense mechanism in place.</p><p>The application tried to prevent uploaded files from being executed by storing them in a safe location. However, a <strong>path traversal vulnerability</strong> in the filename parameter allowed me to bypass this protection and place my web shell in an executable directory.</p><h3>The Scenario</h3><p>The application allowed users to upload profile pictures. During testing, I discovered that uploaded files were being stored in a non-executable directory, reducing the risk of web shell attacks.</p><p>I attempted to upload a PHP web shell:</p><pre>&lt;?php echo file_get_contents(&#39;/home/carlos/secret&#39;); ?&gt;</pre><p>Although the file upload succeeded, simply uploading a PHP file wasn’t enough because of where the application stored it.</p><h3>Investigating the Upload Request</h3><p>Using <strong>Burp Suite</strong>, I intercepted the upload request and examined the multipart form data.</p><p>The filename looked similar to:</p><pre>Content-Disposition: form-data; name=&quot;avatar&quot;; filename=&quot;exploit.php&quot;</pre><p>This immediately raised a question:</p><blockquote><em>What if the application trusted the filename and used it directly when saving the file?</em></blockquote><p>If so, path traversal sequences might allow me to control the destination folder.</p><h3>Exploiting Path Traversal</h3><p>I modified the filename parameter from “exploit.php” to “../exploit.php”. After forwarding the request, the upload was accepted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-H3lfP18GQlIA81aYSnIfA.png" /></figure><h3>Achieving Remote Code Execution</h3><p>Once the file was uploaded, I browsed to the location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vME6vsbCRfHaBKQ2oN90g.png" /></figure><p>Unfortunately, the application filtered the traversal sequence and prevented the attack.</p><p>At this point, it was clear that some path sanitization was taking place.</p><h3>Discovering the Bypass</h3><p>Instead of using a normal slash, I URL-encoded it. The payload became “..%2fexploit.php”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y8wNpaSxKArvVwHoRracAQ.png" /></figure><h3>Achieving Remote Code Execution</h3><p>After the upload completed, I navigated to the uploaded file. This time, instead of seeing the source code, the PHP executed successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvdbXZ474KCEdlCfYx-oBg.png" /></figure><h3>Remediation</h3><p>To prevent this attack:</p><ul><li>Normalize and decode input before validation.</li><li>Reject all path traversal sequences after canonicalization.</li><li>Never trust user-supplied filenames.</li><li>Generate server-side filenames instead.</li><li>Enforce fixed upload directories.</li><li>Store uploads outside the web root.</li><li>Disable script execution in upload locations.</li></ul><h3>Conclusion</h3><p>The <strong>Web Shell Upload via Path Traversal</strong> lab highlights the dangers of improper input validation and path handling. Although the application attempted to prevent directory traversal, it validated the filename before decoding URL-encoded characters. By replacing / with %2f, I was able to bypass the filter, escape the intended upload directory, execute a PHP web shell, and retrieve the secret file. The lab serves as a powerful reminder that security validation must always occur on normalized input, not on its encoded representation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ee64843f384" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/web-shell-upload-via-path-traversal-turning-a-safe-upload-into-remote-code-execution-7ee64843f384">Web Shell Upload via Path Traversal: Turning a Safe Upload into Remote Code Execution</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Shell Upload via Content-Type Restriction Bypass: When One Header Changes Everything]]></title>
            <link>https://infosecwriteups.com/web-shell-upload-via-content-type-restriction-bypass-when-one-header-changes-everything-0f55dcd02013?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f55dcd02013</guid>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 11:46:15 GMT</pubDate>
            <atom:updated>2026-11-24T11:46:15.225Z</atom:updated>
            <content:encoded><![CDATA[<p>As I continued exploring PortSwigger Web Security Academy labs, I encountered <strong>Web Shell Upload via Content-Type Restriction Bypass</strong>. At first, the application appeared to have protection in place. Unlike a completely vulnerable upload feature, this one attempted to validate uploaded files before accepting them.</p><p>However, the validation relied on a user-controlled HTTP header, making it surprisingly easy to bypass.</p><h3>The Scenario</h3><p>The application allowed users to upload profile pictures. During testing, I noticed that the server rejected my PHP web shell upload.</p><p>This suggested that some validation was occurring behind the scenes.</p><p>To understand how the upload process worked, I intercepted the request in <strong>Burp Suite</strong> and examined the multipart form data.</p><p>The uploaded file looked something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEH9LvgH5-2LTGmlTHK6iw.png" /></figure><p>The server rejected the request.</p><h3>Investigating the Validation</h3><p>Looking closely, I observed that the application appeared to be checking the <strong>Content-Type</strong> header associated with the uploaded file.</p><p>Since this header is supplied by the client, it should never be trusted as a security control.</p><p>This gave me an idea:</p><blockquote><em>What if I simply claimed that my PHP file was an image?</em></blockquote><h3>The Bypass</h3><p>I kept the malicious PHP payload unchanged &amp; modified only the Content-Type header. After forwarding the modified request, the upload was accepted successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L9Gp2l5afQ3ocmbEmnCP4g.png" /></figure><p>The application trusted the Content-Type value without verifying the actual file contents.</p><h3>Achieving Remote Code Execution</h3><p>Once the file was uploaded, I navigated to its URL.</p><p>Instead of treating the file as a harmless image, the server executed the PHP code because the file still had a .php extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OQmkp1rP9wSKqj5UEFjrgg.png" /></figure><p>The payload got executed &amp; displayed the contents of the secret file directly.</p><h3>Remediation</h3><p>To prevent Content-Type bypass attacks:</p><ul><li>Never trust the client-supplied Content-Type header.</li><li>Use strict file extension allowlists.</li><li>Store uploads outside web-accessible directories.</li><li>Disable execution permissions for upload folders.</li><li>Rename uploaded files using server-generated names.</li><li>Perform server-side content inspection before storing files.</li></ul><h3>Conclusion</h3><p>This lab highlights how weak file validation mechanisms can create critical security risks. By changing the uploaded file’s Content-Type from a PHP type to image/jpeg, I was able to bypass the application&#39;s checks, upload a web shell, and execute code on the server. The exercise reinforces a fundamental principle of web security: <strong>never trust client-controlled input, especially when validating uploaded files.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f55dcd02013" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/web-shell-upload-via-content-type-restriction-bypass-when-one-header-changes-everything-0f55dcd02013">Web Shell Upload via Content-Type Restriction Bypass: When One Header Changes Everything</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remote Code Execution via Web Shell Upload]]></title>
            <link>https://infosecwriteups.com/remote-code-execution-via-web-shell-upload-34fa8ea61a13?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/34fa8ea61a13</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[file-upload-vulnerability]]></category>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 11:38:44 GMT</pubDate>
            <atom:updated>2026-11-24T11:38:44.212Z</atom:updated>
            <content:encoded><![CDATA[<p>As I progressed through the PortSwigger Web Security Academy labs, I came across a seemingly simple challenge: <strong>Remote Code Execution (RCE) via Web Shell Upload</strong>. At first glance, it looked like a basic file upload vulnerability, but it quickly demonstrated how a small oversight in file validation can lead to complete server compromise.</p><h3>The Scenario</h3><p>The application allowed users to upload profile images. Normally, we’d expect the server to accept only image files such as .jpg or .png.</p><p>However, the application failed to properly validate uploaded files. This created an opportunity to upload a malicious file instead of an image.</p><p>The objective of the lab was straightforward:</p><blockquote><em>Upload a web shell, execute commands on the server, and retrieve the contents of the secret file.</em></blockquote><h3>Understanding Web Shells</h3><p>A <strong>web shell</strong> is a script that attackers upload to a vulnerable web server. Once uploaded, it can execute operating system commands remotely through a web browser.</p><p>For this lab, a simple PHP web shell was enough:</p><pre>&lt;?php echo file_get_contents(&#39;/home/carlos/secret&#39;); ?&gt;</pre><p>Instead of providing an interactive command shell, this payload directly reads the target file and displays its contents.</p><h3>Exploitation Steps</h3><p>I uploaded the PHP file directly as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTBgqjL3NXhGOeaFeLwQjA.png" /></figure><p>The server accepted the upload without any objections.</p><p>After the upload completed, I navigated to the URL where the file was stored.</p><p>Instead of displaying the PHP code as text, the server executed it. The script read the contents of /home/carlos/secret &amp; and displayed the secret value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dx5QdZFe64KCwW43xY_i9g.png" /></figure><p>Copy the secret code and solve the lab by submitting it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O457w9_W0VmTzQTxL6HI0w.png" /></figure><h3>Key Takeaway</h3><p>This lab demonstrates a simple but critical security lesson: <strong>never trust user-uploaded files</strong>. In this case, there was no need for an advanced bypass technique. The application accepted a PHP file directly, stored it in a location where it could be executed, and effectively handed over code execution capabilities to the attacker.</p><p>A single insecure upload feature was all it took to turn a normal user action into full server compromise.</p><h3>Conclusion</h3><p>The <strong>Remote Code Execution via Web Shell Upload</strong> lab highlights one of the most severe risks associated with file upload functionality. By directly uploading a PHP web shell and accessing it through the browser, I was able to execute server-side code and retrieve sensitive data. The exercise serves as a reminder that even the simplest upload feature can become a critical attack vector when proper validation and execution controls are missing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34fa8ea61a13" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/remote-code-execution-via-web-shell-upload-34fa8ea61a13">Remote Code Execution via Web Shell Upload</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PortSwigger lab: Password Brute-Force via Password Change]]></title>
            <link>https://infosecwriteups.com/portswigger-lab-password-brute-force-via-password-change-cb0666075eaa?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb0666075eaa</guid>
            <category><![CDATA[change-password]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[brute-force]]></category>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 11:20:31 GMT</pubDate>
            <atom:updated>2026-11-23T08:42:44.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Scenario</h3><p>During testing, I discovered that the application’s password change functionality could be abused to brute-force a user’s current password. While the login page itself was not the target, the password change feature exposed a weakness in how credential validation was handled.</p><p>A typical password change request required:</p><ul><li>Current password</li><li>New password</li><li>Confirmation of the new password</li></ul><h3>The Vulnerability</h3><p>The application verified the current password before allowing a password change. However, it responded differently depending on whether:</p><ul><li>The current password was incorrect.</li><li>The new passwords did not match.</li></ul><p>This difference allowed an attacker to determine when the correct current password had been supplied.</p><p>By repeatedly submitting requests with different values for the current password field, it was possible to brute-force the victim’s password through the password change functionality.</p><h3>Exploitation</h3><ol><li>Log in to the attacker-controlled account.</li><li>Intercept the password change request using Burp Suite.</li><li>Modify the request to target the victim user.</li><li>Use Burp Intruder to brute-force the current-password parameter.</li><li>Deliberately set different values for the new password fields.</li></ol><h3>How it worked:</h3><p><strong>Step 1:</strong> Log in as <strong>wiener</strong> and open the <strong>Change Password</strong> functionality. Capture the password change request using Burp Suite. Keep the current password correct, but deliberately enter two different values for the new password fields. This helps identify the application’s response when the current password is valid but the new passwords do not match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XwtPl32rM7-PSB2D-bVmvA.png" /></figure><p><strong>Step 2:</strong> Forward the captured request to <strong>Burp Intruder</strong> and mark the <strong>current-password</strong> field as the payload position. Next, import the password list supplied by the lab &amp; set up the Grep match to identify the correct password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oscc9fWrAytOn4GqWu5XNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*_OXvycroUpou29JvUqvs9g.png" /></figure><p><strong>Step 3: </strong>Start the attack &amp; look for the Grep match rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Lhd6__hlGOv0i5W-P-1yw.png" /></figure><p>And, the correct password is discovered.</p><p><strong>Step 4: </strong>Logout and login using the discovered password for carlos account.</p><h3>Impact</h3><p>This vulnerability allows attackers to:</p><ul><li>Enumerate and brute-force a user’s current password.</li><li>Abuse password change functionality as an authentication oracle.</li><li>Bypass security assumptions focused solely on the login page.</li><li>Gain unauthorized access to user accounts.</li></ul><h3>Remediation</h3><ul><li>Return generic error messages for all password change failures.</li><li>Prevent response differences that reveal whether the current password is correct.</li><li>Apply rate limiting to password change endpoints.</li><li>Require re-authentication using secure mechanisms for sensitive actions.</li><li>Implement account lockout or adaptive throttling after repeated failures.</li><li>Monitor and alert on excessive password change attempts.</li><li>Enforce multi-factor authentication (MFA) for account management operations.</li></ul><h3>Conclusion</h3><p>This lab demonstrates that brute-force vulnerabilities can exist outside of the login page. By observing subtle differences in server responses, an attacker can use the password change functionality to identify a victim’s current password. Consistent error handling, rate limiting, and strong authentication controls are essential to preventing this type of attack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb0666075eaa" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/portswigger-lab-password-brute-force-via-password-change-cb0666075eaa">PortSwigger lab: Password Brute-Force via Password Change</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting Broken Brute-Force Protection with Multiple Credentials per Request]]></title>
            <link>https://infosecwriteups.com/exploiting-broken-brute-force-protection-with-multiple-credentials-per-request-6bf33d5d9c5f?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bf33d5d9c5f</guid>
            <category><![CDATA[authentication-flaw]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[brute-force]]></category>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 11:08:45 GMT</pubDate>
            <atom:updated>2026-11-23T08:42:40.832Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Scenario</h3><p>While testing a login endpoint, I discovered an interesting flaw in the application’s brute-force defense. The login API expected credentials in JSON format, but it failed to properly validate the structure of user input. By supplying multiple password values in a single request, it was possible to make numerous authentication attempts through a single login request.</p><p>A normal login request looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ACJfetUKM4xqmbZfqjVTqA.png" /><figcaption>Login Request</figcaption></figure><h3>The Vulnerability</h3><p>The application assumed that the password parameter would contain a single value. However, it also accepted an array of passwords.</p><p>Instead of sending one password, I modified the request to include a list of commonly used passwords.</p><p>And, the backend processed each password in the array and checked them against the target account. With the correct password included in the array, the application authenticated the account without requiring separate login requests for each password guess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0VT10RtzWOlZ_PNlNaWOA.png" /><figcaption>Successful login</figcaption></figure><h3>Impact</h3><p>This vulnerability allows attackers to:</p><ul><li>Submit multiple password guesses in a single request.</li><li>Increase the efficiency of brute-force attacks.</li><li>Circumvent security controls that monitor requests rather than individual authentication attempts.</li><li>Gain unauthorized access to accounts protected by weak passwords.</li></ul><h3>Remediation</h3><ul><li>Strictly validate input types and reject password arrays.</li><li>Allow only a single password value per authentication request.</li><li>Count every password verification as an individual login attempt.</li><li>Implement adaptive rate limiting and account lockout mechanisms.</li><li>Enforce strong password policies and multi-factor authentication (MFA).</li><li>Monitor and alert on abnormal authentication payloads.</li></ul><h3>Conclusion</h3><p>This lab highlights how subtle input validation flaws can undermine authentication security. Although the login endpoint was intended to process a single password, accepting multiple password values enabled numerous credential guesses within a single request. Proper input validation and accurate tracking of authentication attempts are essential to preventing this type of brute-force bypass.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bf33d5d9c5f" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/exploiting-broken-brute-force-protection-with-multiple-credentials-per-request-6bf33d5d9c5f">Exploiting Broken Brute-Force Protection with Multiple Credentials per Request</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind XXE with Out-of-Band Interaction via XML Parameter Entities]]></title>
            <link>https://infosecwriteups.com/blind-xxe-with-out-of-band-interaction-via-xml-parameter-entities-8f448c9b09f4?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f448c9b09f4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 10:11:41 GMT</pubDate>
            <atom:updated>2026-11-18T10:11:41.968Z</atom:updated>
            <content:encoded><![CDATA[<p>After completing the previous <strong>Blind XXE with OOB Interaction</strong> lab, I came across a slightly more challenging variation: <strong>Blind XXE with Out-of-Band Interaction via XML Parameter Entities</strong>.</p><p>At first glance, it looked similar to the previous lab. The objective was still to confirm a Blind XXE vulnerability using <strong>Burp Collaborator</strong>. However, the difference was that traditional external entities were not enough. Instead, the lab required the use of <strong>XML parameter entities</strong>, a feature commonly overlooked during XML security testing.</p><h3>Understanding the Challenge</h3><p>The application accepted XML input but did not reflect any user-supplied content in its response. Regardless of the payload sent, the response remained unchanged.</p><p>This meant there was no way to directly observe whether an XXE payload had executed.</p><p>To confirm the vulnerability, we needed the target server to communicate with an external system under our control. This is where <strong>Burp Collaborator</strong> becomes invaluable.</p><p><strong>What Are XML Parameter Entities?</strong></p><p>Most XXE examples use general entities:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mr3Fz6O_pegrSy0U2QeuAg.png" /></figure><p>which are referenced as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sd0dZn_V7M20N-a6PpyaQw.png" /></figure><p>Parameter entities work differently. They are defined and referenced inside the DTD using the % symbol:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ps0tlyEqPhM4HW4_-oRWLg.png" /></figure><p>Because they are processed during DTD parsing, parameter entities can sometimes bypass restrictions that prevent normal entity usage.</p><p><strong>Exploitation Process</strong></p><ol><li>Capture the XML request in Burp Suite.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-7RxabUoeEo39eku8B7N6g.png" /></figure><p>2. Open <strong>Burp Collaborator Client</strong> and copy the generated Collaborator URL.</p><p>3. Inject the XXE payload containing the Collaborator URL &amp; send the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfhALxMXmfoDhVY0XMrRuQ.png" /></figure><p>4. Return to <strong>Burp Collaborator Client</strong> and click <strong>Poll now</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F3Vcb_gkLcNd6x4UJg7gpw.png" /></figure><p>After polling, Burp Collaborator displayed DNS Interaction &amp; HTTP interaction proving that the XML parser successfully processed the external parameter entity and attempted to fetch the remote resource.</p><p>Although the application’s response never changed, the out-of-band interaction provided clear evidence that the XXE payload had executed.</p><h3>Conclusion</h3><p>This lab demonstrated how <strong>XML parameter entities can be abused to detect Blind XXE vulnerabilities through Out-of-Band interactions</strong>. Even when the application provides no visible feedback, DNS and HTTP callbacks captured by Burp Collaborator can conclusively prove that the XML parser processed attacker-controlled entities. Understanding parameter entities is an important step toward mastering advanced XXE exploitation techniques and recognizing how seemingly harmless XML functionality can become a powerful attack vector.</p><h3>Remediation</h3><p>To prevent XXE vulnerabilities:</p><ul><li>Disable <strong>DOCTYPE declarations</strong> whenever possible.</li><li>Disable <strong>external entity resolution</strong> and <strong>parameter entity processing</strong> in XML parsers.</li><li>Use secure parser configurations provided by Java, .NET, PHP, and Python libraries.</li><li>Restrict outbound DNS and HTTP traffic from application servers through network egress filtering.</li><li>Validate and sanitize XML input before processing.</li><li>Regularly perform security assessments and review XML parser configurations.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f448c9b09f4" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/blind-xxe-with-out-of-band-interaction-via-xml-parameter-entities-8f448c9b09f4">Blind XXE with Out-of-Band Interaction via XML Parameter Entities</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind XXE with Out-of-Band (OOB) Interaction: A Beginner-Friendly Walkthrough]]></title>
            <link>https://infosecwriteups.com/blind-xxe-with-out-of-band-oob-interaction-a-beginner-friendly-walkthrough-5c86c8dee9b9?source=rss-df75f9af020a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c86c8dee9b9</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[out-of-band]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[xxe]]></category>
            <category><![CDATA[burp-collaborator]]></category>
            <dc:creator><![CDATA[Spoorthi]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 10:18:35 GMT</pubDate>
            <atom:updated>2026-11-18T18:16:17.954Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first encountered <strong>Blind XXE</strong>, I understood XML External Entity attacks but struggled with concepts like <strong>Out-of-Band (OOB) interaction</strong> and <strong>Burp Collaborator</strong>.</p><p>In a normal XXE attack, you can inject an external entity and see the result directly in the application’s response. For example, reading /etc/passwd might display its contents on the page.</p><p>However, in <strong>Blind XXE</strong>, the application processes the XML but never returns the result. The response looks the same regardless of whether the attack succeeds:</p><p>When I first encountered <strong>Blind XXE</strong>, I understood XML External Entity attacks but struggled with concepts like <strong>Out-of-Band (OOB) interaction</strong> and <strong>Burp Collaborator</strong>.</p><p>In a normal XXE attack, you can inject an external entity and see the result directly in the application’s response. For example, reading /etc/passwd might display its contents on the page.</p><p>However, in <strong>Blind XXE</strong>, the application processes the XML but never returns the result. The response looks the same regardless of whether the attack succeeds:</p><pre>Request processed successfully</pre><p>Since there’s no visible output, we need another way to verify the vulnerability.</p><p><strong>Understanding Out-of-Band (OOB)</strong></p><p>Instead of asking the server to return data to us, we ask it to make a request to a server we control. This secondary communication channel is called <strong>Out-of-Band (OOB)</strong>.</p><p><strong>Burp Collaborator</strong> provides a unique domain such as: <em>abc123.oastify.com</em></p><p>We then inject the following payload:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kx8NX2dkJoq6wzoDzttPWA.png" /></figure><p>When the XML parser processes &amp;xxe;, the target server attempts to access <em>abc123.oastify.com.</em></p><p><strong>Lab Solution</strong></p><ol><li>Capture the XML request in Burp Suite.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JgYoyLZ3Pq0iU1Tla26wfQ.png" /></figure><p>2. Open <strong>Burp Collaborator Client</strong> and copy the generated Collaborator URL.</p><p>3. Inject the XXE payload containing the Collaborator URL &amp; send the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XvmKfKdv1XX54sn6gAJXjQ.png" /></figure><p>4. Return to <strong>Burp Collaborator Client</strong> and click <strong>Poll now</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R7fJTIdDQYX3JZLbknCD9w.png" /></figure><p>Seeing the DNS and HTTP interactions in Burp Collaborator was the “proof of execution” moment for me. Even though the application never revealed any data in its response, the out-of-band callback confirmed that the XML parser processed my external entity, successfully demonstrating Blind XXE. 🚀</p><h3>Conclusion</h3><p>This lab demonstrated how <strong>Blind XXE</strong> can be identified even when the application does not return any visible output. By leveraging <strong>Burp Collaborator</strong> for <strong>Out-of-Band (OOB) interaction</strong>, we were able to verify that the XML parser processed our external entity and initiated DNS/HTTP requests to a Collaborator-controlled domain. The DNS and HTTP callbacks served as clear evidence of successful XXE execution, ultimately confirming the vulnerability and solving the lab.</p><h3>Remediation</h3><p>To protect applications from Blind XXE and OOB data exfiltration:</p><ul><li><strong>Disable DTDs (Document Type Definitions)</strong> unless they are explicitly required.</li><li><strong>Disable external entity processing</strong> in XML parsers.</li><li>Keep XML parsing libraries and frameworks <strong>updated with the latest security patches</strong>.</li><li>Perform regular security testing for XXE vulnerabilities using tools like <strong>Burp Suite Professional</strong>, <strong>OWASP ZAP</strong>, and secure code reviews.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c86c8dee9b9" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/blind-xxe-with-out-of-band-oob-interaction-a-beginner-friendly-walkthrough-5c86c8dee9b9">Blind XXE with Out-of-Band (OOB) Interaction: A Beginner-Friendly Walkthrough</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>