<?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 Anshubind on Medium]]></title>
        <description><![CDATA[Stories by Anshubind on Medium]]></description>
        <link>https://medium.com/@anshubind89?source=rss-a962eef8d290------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YoSf9qR4wJOagWEU</url>
            <title>Stories by Anshubind on Medium</title>
            <link>https://medium.com/@anshubind89?source=rss-a962eef8d290------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:02:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anshubind89/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[ The Day I Found a Google Sheets API Key Hidden in Plain Sight — Inside a Public JavaScript File]]></title>
            <link>https://medium.com/@anshubind89/the-day-i-found-a-google-sheets-api-key-hidden-in-plain-sight-inside-a-public-javascript-file-45795be4f51c?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/45795be4f51c</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 20:28:00 GMT</pubDate>
            <atom:updated>2025-12-24T20:28:00.043Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔑 The Day I Found a Google Sheets API Key Hidden in Plain Sight — Inside a Public JavaScript File</h3><p>Some vulnerabilities scream for attention. Others sit quietly, tucked inside lines of JavaScript, waiting for someone curious enough to notice them.</p><p>This is the story of the second kind.</p><p>While analyzing Orient Electric’s main website for their Researcher Reward Program, I stumbled upon a simple oversight — a <strong>hardcoded Google Sheets API key</strong> embedded directly inside a public script.</p><p>It didn’t break the website.<br> It didn’t crash anything.<br> It didn’t even look dangerous at first glance.</p><p>But like many security bugs, the danger wasn’t in what it did — it was in what it <em>gave access to</em>.</p><h3>🔍 How It Started: A Routine Script Review</h3><p>I was scanning the main website when a file caught my attention:</p><pre>store-locator-am.js</pre><p>It sounded like a simple script — maybe something related to store locations.<br> Out of habit, I opened the file.</p><p>And right there, sitting comfortably inside the code, was this:</p><pre>AIzaSyBl0n0yWXcoKBEErZmO_oPiE7IjbWWrfEk</pre><p>A full Google API key.<br> Hardcoded.<br> Publicly served.<br> Visible to anyone with a browser inspector or a curl command.</p><p>My internal alarm bells rang.</p><h3>🧠 Why Client-Side API Keys Are Dangerous</h3><p>A lot of developers assume API keys hidden inside JavaScript are “safe enough.”</p><p>But here’s the truth:</p><blockquote><strong><em>If it’s in client-side code, it’s public.<br> If it’s public, it’s exposed.</em></strong></blockquote><p>Anyone can extract that key.</p><p>Anyone can use it.</p><p>Anyone can hit the API endpoints the key authorizes.</p><p>And in this case, the key accessed a Google Spreadsheet containing Orient Electric’s <strong>store location data</strong>.</p><p>Not the most sensitive dataset — but the implications were still very real.</p><h3>🔓 Testing the Key</h3><p>To confirm the exposure, I visited:</p><pre>https://sheets.googleapis.com/v4/spreadsheets/[REDACTED]/values/Store%20Locator?key=[EXPOSED_KEY</pre><p>And just like that — the spreadsheet data loaded.</p><p>No authentication.<br> No restrictions.<br> No referrer checks.<br> No IP filters.</p><p>Just open access.</p><p>Anyone could have done the same.</p><h3>⚠️ The Potential Impact</h3><p>Even though this wasn’t passwords or financial data, the exposure carried several risks:</p><h3>🔹 1. Unauthorized Data Access</h3><p>Anyone could fetch Orient Electric’s store data in bulk — useful for scraping, competitors, or malicious automated systems.</p><h3>🔹 2. Unexpected Financial Charges</h3><p>If the API key was not free-tier restricted, it could generate <strong>billing spikes</strong> through unintended usage.</p><h3>🔹 3. Tampering Risks</h3><p>Depending on API permissions, attackers might modify spreadsheet values.</p><h3>🔹 4. Reputation Impact</h3><p>Exposed credentials highlight weak security practices — something no brand wants associated with them.</p><h3>🔹 5. Larger Attack Surface</h3><p>Misconfigured API keys often lead attackers to dig deeper for misconfigurations elsewhere.</p><p>This wasn’t a catastrophic vulnerability — but it was a <strong>foot in the door</strong> for someone with bad intentions.</p><h3>📝 Reporting the Issue</h3><p>I documented the finding clearly:</p><ul><li>Location of the exposed key</li><li>Direct API endpoint that returned data</li><li>Potential misuse scenarios</li><li>Recommended remediation steps</li></ul><p>The triage team reviewed it quickly and marked it:</p><p><strong>P4 — Sensitive Data Exposure<br> Bounty: ₹1000</strong></p><p>Simple bug, good payout, important lesson.</p><h3>🛠️ How This Should Be Fixed (And How Every Developer Should Handle API Keys)</h3><p>My recommendations included:</p><h3>🔐 1. Revoke the exposed API key immediately</h3><p>Once a key is leaked, it should be treated as compromised forever.</p><h3>🔄 2. Generate a new key with strict restrictions</h3><ul><li>Google Sheets API only</li><li>HTTP referrers locked to specific domains</li><li>Optional IP whitelisting</li></ul><h3>🖥️ 3. Move API calls server-side</h3><p>Client-side keys should be avoided — they will always leak.</p><h3>🧪 4. Use OAuth 2.0 or service accounts</h3><p>Far safer than embedding raw keys.</p><h3>🧹 5. Remove the exposed key from:</h3><ul><li>client-side code</li><li>version control</li><li>historic commits</li></ul><h3>📊 6. Monitor API usage for anomalies</h3><p>This isn’t just a fix — it’s a best practice checklist every developer should know.</p><h3>💡 Final Thoughts: A Small Key With Big Lessons</h3><p>This vulnerability reminded me of something every hunter learns sooner or later:</p><blockquote><strong><em>Secrets don’t belong in the browser.<br> Ever.</em></strong></blockquote><p>An API key doesn’t need to be “sensitive” to be dangerous.<br> Sometimes, the risk lies in <strong>who else can use it</strong>, not just what data it accesses.</p><p>And in this case, that one line of JavaScript turned into:</p><ul><li>a real vulnerability</li><li>a ₹1000 reward</li><li>and a valuable lesson for both developers and researchers</li></ul><p>Bug bounty isn’t always about big hacks.<br> Sometimes, it’s about finding small mistakes before someone else finds — and abuses — them.</p><p>On to the next hunt. 🐞🔍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45795be4f51c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Night I Discovered a Production Server Hiding Behind an Exposed IP — And Why It Mattered…]]></title>
            <link>https://medium.com/@anshubind89/the-night-i-discovered-a-production-server-hiding-behind-an-exposed-ip-and-why-it-mattered-e0f3009cdd51?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0f3009cdd51</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[com-olho]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 20:27:31 GMT</pubDate>
            <atom:updated>2025-12-24T20:27:31.856Z</atom:updated>
            <content:encoded><![CDATA[<h3>🌐 The Night I Discovered a Production Server Hiding Behind an Exposed IP — And Why It Mattered More Than It Seemed</h3><p>Some bug bounty stories start with complicated payloads or clever fuzzing tricks.<br> This one started with something much simpler:</p><p>A URL.<br> A feeling.<br> And a direct IP address that should <em>never</em> have been publicly reachable.</p><p>During my testing for the NBC Bearings Responsible Disclosure Program, I stumbled upon a security oversight that’s far more common than most organizations realize — an origin server IP exposed directly to the internet.</p><p>It wasn’t loud.<br> It wasn’t dramatic.<br> But it quietly bypassed every protection layer the company had put in place.</p><p>And that’s exactly why this story matters.</p><h3>🔍 The Discovery: One Application, Two Doors</h3><p>I began by exploring the official application:</p><pre>https://lifecalc.nbcbearings.com/bearingtool/#/bearingcalculator</pre><p>Clean interface.<br> Well-structured.<br> Hosted behind what appeared to be a CDN or WAF (as most production apps are these days).</p><p>Nothing unusual — until curiosity nudged me to try something else.</p><p>I tested the origin IP that seemed connected to the service:</p><pre>https://43.254.41.162/bearingtool/#/bearingcalculator</pre><p>And to my surprise…<br> it served <strong>the exact same application</strong>, directly from the origin server.</p><p>No domain routing.<br> No CDN.<br> No WAF.<br> No security layers.<br> Just raw, unprotected origin access.</p><p>That’s when the red flags started waving.</p><h3>🧠 Why Exposed Origin IPs Are a Big Deal</h3><p>Modern web apps typically sit behind:</p><ul><li>CDNs</li><li>Firewalls</li><li>Rate limiters</li><li>DDoS protection</li><li>Bot filtering</li></ul><p>These layers exist to harden infrastructure and protect backend servers from direct attack.</p><p>But if the origin IP is exposed?</p><blockquote><em>Attackers can skip all of that and go straight to the server.</em></blockquote><p>This breaks the entire point of having a secured architecture.</p><h3>⚠️ The Risks Hit Immediately</h3><p>Once I confirmed the origin server IP was serving the same content as the official domain, the potential impact became clear:</p><h3>🔹 1. Bypassing Security Controls</h3><p>Attackers could directly interact with the backend, avoiding:</p><ul><li>WAF rules</li><li>CDN caching</li><li>Bot protection</li><li>Rate limiting</li></ul><p>This opens the app to attacks that the CDN was actively blocking.</p><h3>🔹 2. Direct Attack Surface Exposure</h3><p>With the origin reachable, attackers could probe:</p><ul><li>open ports</li><li>outdated services</li><li>misconfigured modules</li><li>server banners</li><li>framework versions</li></ul><p>Things the CDN normally shields.</p><h3>🔹 3. DDoS Risk</h3><p>CDNs mitigate large-scale attacks.<br> Exposed origins do not.</p><h3>🔹 4. Potential Lateral Movement</h3><p>If the origin server shares a network with other assets, an exposed IP can become an entry point.</p><p>Even though the application itself wasn’t vulnerable, the <strong>infrastructure was</strong>.</p><h3>🎯 Reporting It</h3><p>After confirming the issue, I documented:</p><ul><li>both URLs serving identical content</li><li>the fact that the application bypassed all security layers</li><li>the architectural risks</li><li>clear remediation steps</li></ul><p>Simple finding.<br> High architectural importance.</p><p>The triage team reviewed, reproduced, and acknowledged the issue quickly.</p><h3>🛠️ Recommendations That Matter</h3><p>This wasn’t just a bug — it was a misconfiguration with deeper implications.<br> Here are the fixes I recommended:</p><h3>🔐 1. Restrict direct access to the origin IP</h3><p>Block all traffic except connections coming from:</p><ul><li>approved CDN IP ranges</li><li>approved internal networks</li></ul><h3>🌐 2. Enforce domain-only access</h3><p>Origin servers should not respond unless the request uses the official domain.</p><h3>🚫 3. Disable naked-IP access</h3><p>Requests to the raw IP should be dropped entirely.</p><h3>🧱 4. Validate network architecture</h3><p>Ensure load balancers, firewalls, and CDN layers handle all inbound traffic.</p><p>These changes reinforce a strong security perimeter.</p><h3>🧩 What This Bug Reminded Me</h3><p>Not every vulnerability is about exploiting a flaw in the code.<br> Sometimes, the biggest risks lie in <strong>how systems are configured</strong>.</p><p>This one taught — or rather, reminded — me of a simple truth:</p><blockquote><em>A secure application doesn’t matter if the infrastructure around it is exposed.</em></blockquote><p>Even the best code can’t protect a server that’s reachable when it shouldn’t be.</p><h3>🚀 Final Thoughts</h3><p>This discovery wasn’t about complex exploits.<br> It wasn’t about bypassing filters or crafting special payloads.</p><p>It was about paying attention — noticing that the same app lived behind two different doors.<br> One secure.<br> One wide open.</p><p>In bug bounty hunting, these quiet findings often teach the loudest lessons.</p><p>And they’re exactly why I keep looking.<br> Every oversight fixed, every misconfiguration caught, helps strengthen systems in ways that truly matter.</p><p>On to the next hunt. 🐞🔍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0f3009cdd51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Day I Found a Prometheus Node Exporter Exposed to the Internet — And Why It Revealed More…]]></title>
            <link>https://medium.com/@anshubind89/the-day-i-found-a-prometheus-node-exporter-exposed-to-the-internet-and-why-it-revealed-more-1841acd4496b?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/1841acd4496b</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 18:33:21 GMT</pubDate>
            <atom:updated>2025-12-23T18:33:21.244Z</atom:updated>
            <content:encoded><![CDATA[<h3>📡 The Day I Found a Prometheus Node Exporter Exposed to the Internet — And Why It Revealed More Than Expected</h3><p>Some vulnerabilities are loud and obvious.<br> Others are quiet — hiding in a port nobody ever checks, quietly leaking the heartbeat of a production system.</p><p>This story is about the second kind.</p><p>While testing as part of the PNB Housing Finance Responsible Disclosure Program, I stumbled onto something that looked harmless at first glance:</p><pre>:9100/metrics</pre><p>Just one port.<br> One endpoint.<br> But behind it?<br> A <em>massive</em> dump of internal system metrics — the kind you’d normally only expect inside a locked-down monitoring environment.</p><p>What I found wasn’t just a page.<br> It was <strong>the entire system exposed</strong>, line by line.</p><h3>🌐 The Recon That Led Me to Port 9100</h3><p>I was mapping the attack surface of the target domain:</p><pre>ace.redacted.com</pre><p>Everything looked standard — HTTPS, a typical web application, nothing too flashy.</p><p>Then during a scan, port <strong>9100</strong> popped up.</p><p>If you’ve been in the DevOps or security world long enough, you know 9100 usually belongs to one service:</p><p><strong>Prometheus Node Exporter.</strong></p><p>A monitoring agent that should <em>never</em> face the public internet.</p><p>Curious, I opened the endpoint:</p><pre>http://ace.redacted.com:9100/metrics</pre><p>And instantly — <br> my browser filled with thousands upon thousands of lines of system telemetry.</p><h3>🧨 What Was Exposed</h3><p>Prometheus Node Exporter doesn’t hide anything.<br> It proudly exposes every detail it can about a server’s internals.</p><p>And exposed to the public, it becomes a goldmine for attackers.</p><p>Here’s what the endpoint revealed:</p><h3>🧵 System Metrics (70,000+ lines)</h3><ul><li>CPU cores &amp; architecture</li><li>Disk usage and filesystem types</li><li>Installed devices</li><li>Memory &amp; swap availability</li><li>Detailed uptime</li><li>Load averages</li></ul><h3>🌍 Cloud Infrastructure Details</h3><ul><li>Internal AWS hostnames like:<br> <em>ip-172–31–5–78.ap-south-1.compute.internal</em></li><li>Region information</li><li>Instance type metadata</li></ul><h3>🔧 Kernel &amp; Process Information</h3><ul><li>Kernel version</li><li>Go version</li><li>File limits</li><li>Process counts</li></ul><p>The more I scrolled, the more I realized:</p><blockquote><em>This wasn’t just a metrics leak — it was a blueprint of the entire server.</em></blockquote><p>For attackers, this kind of information is reconnaissance heaven.</p><h3>🔍 Why This Vulnerability Is Dangerous</h3><p>Even though the endpoint wasn’t “exploitable” in the traditional sense, its impact was significant.</p><p>Here’s what attackers could do with this data:</p><h3>🔹 1. Fingerprinting for Exploits</h3><p>Kernel versions + Go versions =<br> Attackers know exactly which vulnerabilities to target.</p><h3>🔹 2. Bypassing Security Assumptions</h3><p>Seeing open interfaces, weak configurations, or unusual device mappings helps craft precise attacks.</p><h3>🔹 3. Cloud Infrastructure Mapping</h3><p>Internal hostnames reveal:</p><ul><li>AWS region</li><li>Networking patterns</li><li>Possible lateral movement opportunities</li></ul><h3>🔹 4. Tailoring DoS Attacks</h3><p>Metrics like file descriptors, CPU thresholds, and process counts tell attackers exactly how much it takes to overwhelm the machine.</p><h3>🔹 5. Sensitive Operational Exposure</h3><p>Disk names, filesystem mounts, SELinux status, everything — all laid bare.</p><p>This isn’t just information leakage.<br> It’s structural leakage.</p><h3>🧪 Reporting the Issue</h3><p>Once I confirmed the exposure, I prepared my report:</p><ul><li>Reproduction steps</li><li>Exact endpoint</li><li>Severity analysis</li><li>Real-world attack vectors</li><li>Clear remediation advice</li></ul><p>The report moved quickly through review and validation.<br> The team acknowledged the vulnerability and rewarded it appropriately.</p><p>It was a satisfying moment — the kind that reminds you <em>why</em> bug bounty work matters.</p><h3>🔧 How It Should Be Fixed</h3><p>To help the team secure the system, I recommended:</p><h3>🔒 Immediate Remediation</h3><ul><li>Bind Node Exporter to localhost:<br> --web.listen-address=&quot;127.0.0.1:9100&quot;</li><li>Block port 9100 externally via firewall rules</li><li>Restrict AWS security groups to internal monitoring IPs only</li></ul><h3>🧩 Medium-Term Fixes</h3><ul><li>Access Node Exporter through Prometheus using private networks</li><li>Route metrics via a reverse proxy with authentication</li><li>Avoid exposing raw exporters directly</li></ul><h3>🧱 Long-Term Practices</h3><ul><li>Regular audits for exposed ports</li><li>Include monitoring endpoints in attack surface scans</li><li>Network segmentation for monitoring infrastructure</li></ul><p>These are standard DevOps security practices — but often forgotten during fast deployments.</p><h3>💡 Final Thoughts: Quiet Bugs Can Be the Loudest Risks</h3><p>When people think of vulnerabilities, they picture SQL injections, XSS, or authentication bypasses.</p><p>But sometimes the most dangerous issues aren’t attacks at all — they’re <strong>overlooked observability tools leaking everything attackers need</strong>.</p><p>Prometheus Node Exporter is powerful.<br> But when exposed publicly, it becomes:</p><ul><li>a map</li><li>a fingerprint</li><li>a vulnerability catalog</li><li>an operational diary</li></ul><p>Finding this bug reminded me of something important:</p><blockquote><em>Not all vulnerabilities are exploits.<br> Some are insights — too many insights — given to the wrong audience.</em></blockquote><p>And that’s why securing the basics is just as important as patching the advanced stuff.</p><p>On to the next hunt. 🐞🔍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1841acd4496b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Night I Found a Backup ZIP File Sitting in Plain Sight — And Why It Could Have Exposed Far…]]></title>
            <link>https://medium.com/@anshubind89/the-night-i-found-a-backup-zip-file-sitting-in-plain-sight-and-why-it-could-have-exposed-far-5edfb2fdabde?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/5edfb2fdabde</guid>
            <category><![CDATA[bounties]]></category>
            <category><![CDATA[bug-bounty-hunter]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 18:32:40 GMT</pubDate>
            <atom:updated>2025-12-23T18:32:40.271Z</atom:updated>
            <content:encoded><![CDATA[<h3>📦 The Night I Found a Backup ZIP File Sitting in Plain Sight — And Why It Could Have Exposed Far More Than Expected</h3><p>Some bugs make you dig deep.<br> Others make you write payloads, bypass filters, or chain logic flaws together.</p><p>And then there are the bugs that greet you like an uninvited guest — quietly waiting on a public server, carrying more information than it should.</p><p>This story is about the last kind.</p><p>While exploring the ConfirmTkt web application under the Ixigo Bug Bounty Program, I came across something unusual:<br> A backup ZIP file named <strong>rbooking.zip</strong> sitting openly on the production domain.</p><p>No authentication.<br> No restrictions.<br> Just a simple download link away.</p><p>And as it turned out, that one ZIP file revealed far more about the application’s structure than any public site ever should.</p><h3>🔍 The Discovery — A Backup File in the Wild</h3><p>I was mapping the application when I noticed the endpoint:</p><pre>http://www.redacted.com/rbooking.zip</pre><p>Out of curiosity, I opened it in the browser.<br> Instead of an error or a 403, the file began downloading instantly.</p><p>No redirects.<br> No warnings.<br> Just a direct 200 OK.</p><p>A whole backup ZIP archive… exposed to the internet.</p><p>This was the moment I knew I had stumbled into a classic yet impactful oversight.</p><h3>📂 What Was Inside the ZIP?</h3><p>Once extracted, the ZIP revealed a structure of front-end assets:</p><ul><li>index.html</li><li>CSS files</li><li>JavaScript files</li><li>Layout components</li><li>Scripts and static assets</li><li>Other internal structure files</li></ul><p>At first glance, it looked harmless — just static content.</p><p>But then reality set in.</p><p>Backup files often contain more than people realize.</p><p>Older versions.<br> Deprecated files.<br> Forgotten logic.<br> Hardcoded URLs.<br> Commented-out API calls.<br> Development artifacts developers never expected anyone outside the team to see.</p><p>A single ZIP can tell you how the application thinks.</p><p>And that’s exactly why attackers love them.</p><h3>🧠 Why Backup Files Are More Dangerous Than They Look</h3><p>To many developers, backup files feel harmless — “just an old copy.”<br> But to attackers, they’re reconnaissance gold.</p><p>Here’s why:</p><h3>🔹 1. Revealing the Application’s Internal Structure</h3><p>File paths, directory layout, and naming conventions can expose:</p><ul><li>hidden routes</li><li>internal logic flow</li><li>API architecture</li><li>endpoints not visible on the live site</li></ul><h3>🔹 2. Discovery of Deprecated or Unused Code</h3><p>Older assets often contain:</p><ul><li>outdated JS functions</li><li>test endpoints</li><li>debug logic</li><li>commented API tokens</li><li>hardcoded URLs</li></ul><p>These are often <strong>less secure</strong> than the live code.</p><h3>🔹 3. Sensitive Information Leakage</h3><p>Sometimes backup ZIPs contain:</p><ul><li>staging files</li><li>error logs</li><li>leftover config files</li><li>.env-like references</li><li>prototype modules</li></ul><p>Even one misfiled backup can expose critical details.</p><h3>🔹 4. Laying Groundwork for Future Exploits</h3><p>Even “non-sensitive” files can reveal:</p><ul><li>how authentication works</li><li>how forms validate data</li><li>hidden parameters in API calls</li><li>logic flow attackers can manipulate</li></ul><p>Attackers rarely need a full exploit — <br> <strong>they just need clues.</strong></p><p>And this ZIP file offered plenty.</p><h3>🎯 Reporting the Issue</h3><p>Once I confirmed the exposure, I documented everything:</p><ul><li>The direct access link</li><li>The nature of the files exposed</li><li>Potential security impact</li><li>Steps to reproduce</li><li>Recommended remediation strategies</li></ul><p>The triage team reviewed the finding, validated the issue, and closed it after implementing fixes.<br> It’s always satisfying to see organizations take security seriously and respond quickly.</p><h3>🛠️ How I Recommended Fixing It</h3><p>To ensure the issue wouldn’t happen again, I suggested:</p><h3>🔒 1. Remove the ZIP From the Server</h3><p>Backup archives should never remain in a public directory.</p><h3>🚫 2. Block ZIP Access</h3><p>Server configs can easily deny access:</p><p><strong>Apache (.htaccess):</strong></p><pre>&lt;FilesMatch &quot;\.(zip|rar|tar|gz)$&quot;&gt;<br>    Deny from all<br>&lt;/FilesMatch&gt;</pre><p><strong>NGINX:</strong></p><pre>location ~* \.(zip|rar|tar|gz)$ {<br>    deny all;<br>}</pre><h3>🔍 3. Review the ZIP Contents Carefully</h3><p>Look for:</p><ul><li>leaked tokens</li><li>debug code</li><li>unused endpoints</li><li>outdated logic</li></ul><h3>🔄 4. Improve CI/CD Hygiene</h3><p>Ensure builds don’t include:</p><ul><li>backup files</li><li>temporary archives</li><li>developer leftovers</li></ul><p>This is simple to implement but prevents a surprising number of exposures.</p><h3>💡 Final Thoughts: The Value of Quiet Vulnerabilities</h3><p>Not every vulnerability is about advanced exploitation.<br> Sometimes, it’s about spotting something that shouldn’t be there.</p><p>A single ZIP file can reveal:</p><ul><li>a roadmap of the application</li><li>deprecated behavior</li><li>hidden attack surfaces</li><li>clues attackers can chain</li></ul><p>Finding rbooking.zip reminded me of something I’ve seen again and again:</p><blockquote><strong><em>Security isn’t only about blocking attacks — it’s about preventing unintentional exposure.</em></strong></blockquote><p>And in the world of bug bounty, those exposures are often hiding in plain sight.</p><p>On to the next hunt. 🐞🔍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5edfb2fdabde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Day I Found a Spring Boot Actuator Endpoint Exposed in Production — And How It Nearly…]]></title>
            <link>https://medium.com/@anshubind89/the-day-i-found-a-spring-boot-actuator-endpoint-exposed-in-production-and-how-it-nearly-7ce0e8fb7b0a?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ce0e8fb7b0a</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 11:55:10 GMT</pubDate>
            <atom:updated>2025-12-21T11:55:10.586Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚨 The Day I Found a Spring Boot Actuator Endpoint Exposed in Production — And How It Nearly Revealed Much More Than Expected</h3><p>Some vulnerabilities whisper instead of scream.<br> They don’t pop up with dramatic payloads, obvious SQL errors, or flashy admin bypasses.<br> Sometimes, they hide behind a simple JSON response that looks harmless at first glance — until you read between the lines.</p><p>This is the story of how I discovered publicly accessible <strong>Spring Boot Actuator endpoints</strong> on a production system under the DTDC Responsible Disclosure Program… and how that small JSON output hinted at a much deeper risk.</p><p>And yes — everything you’re about to read is fully redacted so no sensitive domains are exposed.</p><h3>🔍 The Initial Test: A Quiet Endpoint With a Loud Message</h3><p>I was scanning the application hosted at:</p><pre>https://[REDACTED]/api/actuator/health</pre><p>To most developers, the /health endpoint is normal.<br> It usually returns a simple { &quot;status&quot;: &quot;UP&quot; }.<br> No drama. No risk.</p><p>But when Actuator isn’t properly configured, /health becomes a window into the system’s internal workings.</p><p>And that’s exactly what happened here.</p><p>When I opened the endpoint, the server replied instantly with a detailed JSON object:</p><pre>{<br>  &quot;status&quot;: &quot;UP&quot;,<br>  &quot;components&quot;: {<br>    &quot;db&quot;: {<br>      &quot;status&quot;: &quot;UP&quot;,<br>      &quot;details&quot;: {<br>        &quot;database&quot;: &quot;MySQL&quot;,<br>        &quot;result&quot;: 1,<br>        &quot;validationQuery&quot;: &quot;SELECT 1&quot;<br>      }<br>    },<br>    &quot;diskSpace&quot;: {<br>      &quot;status&quot;: &quot;UP&quot;,<br>      &quot;details&quot;: {<br>        &quot;total&quot;: 53464842240,<br>        &quot;free&quot;: 28270936064,<br>        &quot;threshold&quot;: 10485760<br>      }<br>    },<br>    &quot;ping&quot;: { &quot;status&quot;: &quot;UP&quot; }<br>  }<br>}</pre><p>To the untrained eye, it looks like harmless system data.</p><p>To a hacker?</p><p>It’s a map.</p><h3>🧠 Why Exposed Actuator Endpoints Are Dangerous</h3><p>Spring Boot Actuator is incredibly powerful.<br> It’s designed for internal monitoring, health checks, debugging, and system management.</p><p>But when exposed publicly?</p><p>It becomes a security misconfiguration with serious consequences.</p><p>Here’s why:</p><h3>🔹 1. Database Leak</h3><p>The endpoint revealed:</p><ul><li>The database type (MySQL)</li><li>Health check queries</li><li>Connection behavior</li></ul><p>An attacker armed with DB metadata can craft targeted exploits.</p><h3>🔹 2. Infrastructure Exposure</h3><p>Disk space information exposes:</p><ul><li>Total storage</li><li>Available space</li><li>Server load patterns</li></ul><p>Useful for planning DoS or resource exhaustion attacks.</p><h3>🔹 3. Potentially More Dangerous Endpoints</h3><p>If /health is exposed, there’s a chance endpoints like:</p><ul><li>/env</li><li>/configprops</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ce0e8fb7b0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Night I Found a Public Log Directory Exposing Nearly a Gigabyte of Sensitive Data]]></title>
            <link>https://medium.com/@anshubind89/the-night-i-found-a-public-log-directory-exposing-nearly-a-gigabyte-of-sensitive-data-9b05e2eda2ce?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b05e2eda2ce</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 11:54:26 GMT</pubDate>
            <atom:updated>2025-12-21T11:54:26.848Z</atom:updated>
            <content:encoded><![CDATA[<p>Some vulnerabilities appear with fireworks — a broken auth flow, a misconfigured endpoint, a juicy SQL injection.</p><p>Others are quiet.</p><p>They don’t announce themselves.<br> They don’t need payloads.<br> They just sit there… waiting for the wrong person to open them.</p><p>This is the story of one of those silent vulnerabilities — a publicly accessible <strong>log directory</strong> on a production API belonging to DTDC.</p><p>And inside it?<br> Log files containing nearly <strong>one gigabyte</strong> of internal system data.</p><p>Sometimes the simplest bugs have the loudest impact.</p><h3>🔍 The Unexpected Discovery</h3><p>I was testing one of DTDC’s utility APIs as part of their bug bounty program. The target was:</p><pre>https://[REDACTED]/log/</pre><p>At first glance, it looked like an endpoint that shouldn’t exist.<br> So I opened it in my browser… and instantly froze.</p><p>A full <strong>directory listing</strong> appeared:</p><ul><li>error.log – <strong>14 MB</strong></li><li>requests.log – <strong>918 MB</strong></li></ul><p>Both downloadable.<br> Both publicly accessible.<br> Both completely exposed.</p><p>This wasn’t just a stray file — this was the full record of what the application had been doing for months.</p><h3>📜 What These Log Files Can Reveal</h3><p>Log files are like diaries — they tell the story of everything the system has done, everything that succeeded, and everything that broke.</p><p>And when they’re exposed publicly, they become a security risk for very simple reasons:</p><h3>🔹 1. Internal Error Messages</h3><p>error.log often contains:</p><ul><li>stack traces</li><li>server paths</li><li>database queries</li><li>framework versions</li><li>sensitive debug comments</li></ul><p>Attackers love these details; they help craft highly precise attacks.</p><h3>🔹 2. User Requests</h3><p>The requests.log file, nearly <strong>1 GB</strong>, can include:</p><ul><li>full API requests</li><li>bearer tokens</li><li>API keys</li><li>session identifiers</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b05e2eda2ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Open Redirect That Could Turn a Trusted URL Into a Weapon — A Bug Hunting Story]]></title>
            <link>https://medium.com/@anshubind89/the-open-redirect-that-could-turn-a-trusted-url-into-a-weapon-a-bug-hunting-story-c01e47e5ab3a?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/c01e47e5ab3a</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 08:46:04 GMT</pubDate>
            <atom:updated>2025-12-19T08:46:04.729Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔀 The Open Redirect That Could Turn a Trusted URL Into a Weapon — A Bug Hunting Story</h3><p>Some vulnerabilities feel small at first glance — almost too simple to matter.</p><p>A parameter.<br> A URL.<br> A redirect.</p><p>But sometimes, the simplest vulnerabilities open the biggest doors.<br> Especially when they sit inside a real authentication flow.</p><p>This is the story of how I discovered an <strong>Open Redirection vulnerability</strong> in the DTDC OPS Dashboard — hiding quietly in an OIDC authentication endpoint — and how it could have turned a trusted company URL into a weapon for phishing, malware distribution, or brand impersonation.</p><h3>🕵️‍♂️ The Curious Parameter Inside an Auth Endpoint</h3><p>I was testing the OPS Dashboard application when I found an endpoint that immediately caught my attention:</p><pre>/oidcAuth</pre><p>Anything involving authentication — especially OIDC — instantly goes into my “look-closer” bucket.</p><p>Then I saw the parameter:</p><pre>auth_url=</pre><p>Hmm.</p><p>Redirect parameters are harmless…<br> until they’re not.</p><p>So I tested it:</p><pre>https://redacted.dtdc.in/oidcAuth?auth_url=https://evil.com/</pre><p>The server’s response?</p><p><strong>A clean 302 redirect to the malicious site.</strong></p><p>No validation.<br> No warning.<br> No allowlist.<br> Just a redirect — signed by DTDC’s own domain.</p><p>This wasn’t just a code quirk.<br> It was a <strong>phishing dream</strong>.</p><h3>⚡ Why Open Redirects Matter More Than People Think</h3><p>A lot of developers underestimate open redirects.</p><p>“It’s just a redirect. It doesn’t leak data.”</p><p>But here’s why they’re dangerous — especially inside authentication flows:</p><h3>🔹 1. Perfect Phishing Setup</h3><p>Attackers can craft URLs that start with a legitimate domain:</p><pre>https://redacted.dtdc.in/oidcAuth?auth_url=https://fake-dtdc-login.com</pre><p>Users click it.<br> They land on a fake login page.<br> They trust it because the URL <em>began</em> with the real DTDC domain.</p><p>Credential theft becomes effortless.</p><h3>🔹 2. Malware Distribution</h3><p>Redirect users to:</p><ul><li>drive-by download pages</li><li>exploit kits</li><li>malicious APKs</li><li>fake updates</li></ul><p>It only takes one careless click.</p><h3>🔹 3. SEO Spam &amp; Reputation Abuse</h3><p>Attackers often use high-trust domains as redirectors to boost shady websites.</p><p>Your domain becomes a spam tool.</p><h3>🔹 4. Social Engineering Chains</h3><p>Support agents, employees, or users may be tricked into opening the redirect, believing it’s part of the authentication flow.</p><p>Open Redirects are often the first step in larger attack chains.</p><h3>🧪 The Proof of Concept</h3><p>A simple visit to:</p><pre>https://ops-dashboard.dtdc.in/oidcAuth?auth_url=https://evil.me/</pre><p>returned:</p><pre>HTTP/1.1 302 Found  <br>Location: https://evil.me/&amp;</pre><p>The application blindly appended the attacker’s URL and redirected.</p><p>Later, I shared an additional working payload with the team:</p><pre>https://redacted.dtdc.in/oidcAuth?auth_url=https://sms.upastithi.in/</pre><p>This also redirected successfully — confirming the vulnerability.</p><p>No sanitization.<br> No filtering.<br> No allowlist.</p><p>Just trust — where trust should never exist.</p><h3>🎯 Reporting the Issue</h3><p>I documented:</p><ul><li>the vulnerable endpoint</li><li>working payloads</li><li>real-world attack scenarios</li><li>HTTP request/response</li><li>potential chain risks</li></ul><p>The vulnerability was acknowledged and moved to internal review.</p><p>It’s always satisfying when a team takes a report seriously — especially for bugs that seem simple but carry real-world impact.</p><h3>🛠️ How It Should Be Fixed (My Recommendations)</h3><h3>🔒 1. Implement a Strict Allowlist</h3><p>Redirect only to domains explicitly approved:</p><pre>redacted.in  </pre><p>Reject everything else.</p><h3>🚫 2. Avoid Full URLs in Redirects</h3><p>Use safe relative paths:</p><pre>/dashboard  <br>/home  <br>/profile</pre><p>Remove external URLs entirely.</p><h3>🔑 3. Token-Based Redirects</h3><p>Issue one-time hashes for approved redirect targets:</p><pre>/oidcAuth?redirect_token=RANDOM_HASH</pre><p>Server validates token → redirects safely.</p><h3>⚠️ 4. Add an External Redirect Warning Page</h3><p>If a redirect leaves the DTDC domain, show:</p><blockquote><em>“You are now leaving DTDC’s website.”</em></blockquote><h3>🛡️ 5. Strengthen Security Headers</h3><p>Add:</p><pre>Referrer-Policy: strict-origin-when-cross-origin</pre><p>to prevent leakage during redirects.</p><p>These are simple measures — but they eliminate a whole class of phishing risks.</p><h3>💡 Final Thoughts: Simple Bugs, Serious Risks</h3><p>This vulnerability reminded me — again — that not all impactful bugs require advanced exploitation.</p><p>Sometimes the danger lies in trust.</p><blockquote><em>When a trusted domain redirects users anywhere an attacker wants,<br> the domain itself becomes the attack.</em></blockquote><p>In the world of bug hunting, this is a powerful lesson:</p><p>Small parameters can create big problems.<br> Small oversights can expose large systems.<br> And small bugs can save people from big phishing campaigns.</p><p>On to the next hunt. 🐞🔍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c01e47e5ab3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The phpinfo() Page That Shouldn’t Have Been There — And How It Exposed NykaaMan’s Internal…]]></title>
            <link>https://medium.com/@anshubind89/the-phpinfo-page-that-shouldnt-have-been-there-and-how-it-exposed-nykaaman-s-internal-ee5f6e568159?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee5f6e568159</guid>
            <category><![CDATA[money]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 08:45:22 GMT</pubDate>
            <atom:updated>2025-12-19T08:45:22.704Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧪 The phpinfo() Page That Shouldn’t Have Been There — And How It Exposed NykaaMan’s Internal Server Details</h3><p>There’s a specific kind of vulnerability that feels almost nostalgic.<br> Something from the early days of PHP.<br> Something every pentester has seen at least once.</p><p>A lonely little file called:</p><p><strong>info.php</strong><br> sitting quietly on a production server.</p><p>It doesn’t execute malicious code.<br> It doesn’t break authentication.<br> It doesn’t scream “critical” at first glance.</p><p>But it <em>reveals everything</em>.</p><p>This is the story of how I found a publicly accessible <strong>phpinfo() page</strong> on NykaaMan’s environment — and how that tiny page exposed the inner details of the application’s infrastructure.</p><h3>🔍 The Unexpected Discovery at 4:54 a.m.</h3><p>I was running routine tests across Nykaa’s endpoints as part of their bug bounty program when a subdomain caught my attention:</p><pre>env.nykaaman.com</pre><p>“env” often hints at staging or development — but the server behaved like production.</p><p>Curious, I tried the classic check:</p><pre>http://env.nykaaman.com/info.php</pre><p>And just like that, the browser lit up with a full PHP configuration page.</p><p>A complete <strong>phpinfo() output</strong>… on a live environment.</p><p>To many developers, this might seem harmless.<br> But to attackers, it’s a detailed blueprint of the system.</p><h3>🧠 Why phpinfo() Is a Serious Security Risk</h3><p>phpinfo() doesn’t just show PHP settings.</p><p>It exposes:</p><h3>🧬 1. PHP Version — and It Was Outdated</h3><p>The server ran <strong>PHP 8.0.30</strong>, which had already reached <strong>End-of-Life</strong>.</p><p>Unsupported versions mean:</p><ul><li>No security patches</li><li>Known RCE vulnerabilities</li><li>Publicly documented exploits</li></ul><p>This alone is a major red flag.</p><h3>🖥️ 2. Server OS &amp; Kernel Details</h3><p>It showed:</p><ul><li>Rocky Linux 9.2</li><li>Kernel version</li><li>Internal hostname (blaze2.netcoresmartech.com)</li></ul><p>Great information for attackers doing fingerprinting.</p><h3>📦 3. Loaded PHP Modules</h3><p>Including:</p><ul><li>Redis</li><li>SQLite</li><li>Apache modules</li><li>Disabled functions</li><li>Stream wrappers</li></ul><p>These leaks help craft targeted exploit chains.</p><h3>📁 4. Internal File Paths</h3><p>Examples:</p><ul><li>/etc/httpd/...</li><li>/var/www/...</li><li>PHP configuration locations</li><li>Error log paths</li></ul><p>These are critical if someone attempts LFI/RFI-style attacks.</p><h3>📬 5. Server Admin Email</h3><p>Even the admin contact (root@localhost) was visible.</p><p>That’s the thing about phpinfo():<br> It never meant to hide anything — because it was never meant for public eyes.</p><h3>⚠️ The Real Danger: Fingerprinting + Vulnerability Chaining</h3><p>phpinfo() by itself doesn’t exploit anything.</p><p>But it <em>enables</em> exploitation.</p><p>An attacker can use the information to:</p><ul><li>search for PHP-specific CVEs</li><li>map the internal architecture</li><li>determine misconfigurations</li><li>confirm outdated extensions</li><li>check for dangerous functions</li><li>identify LFI/RFI vectors</li><li>discover weak modules or deprecated APIs</li></ul><p>It’s like giving someone the blueprint of your house before they even try breaking in.</p><h3>📝 Reporting the Vulnerability</h3><p>Once confirmed, I documented:</p><ul><li>the endpoint</li><li>the full impact breakdown</li><li>version issues</li><li>OS and module exposures</li><li>possible exploitation pathways</li></ul><p>The report went through fast internal review, and was then <strong>sent to development</strong>.</p><p>This is always a great sign — it means the team recognized the seriousness and took action quickly.</p><h3>🔧 My Recommendations for Fixing It</h3><p>I suggested a few critical steps:</p><h3>🔴 1. Remove the phpinfo() Page Immediately</h3><p>This file should <em>never</em> exist on production.</p><h3>🟠 2. Restrict Access</h3><p>If debugging is needed, restrict access:</p><ul><li>via firewall</li><li>via VPN</li><li>via IP whitelist</li></ul><h3>🟢 3. Upgrade PHP</h3><p>Move to <strong>PHP ≥ 8.1</strong>, ensuring:</p><ul><li>active support</li><li>patched vulnerabilities</li><li>secure modules</li></ul><h3>🔐 4. Sanitize Environment Variables</h3><p>Remove any sensitive values that might have leaked.</p><h3>📦 5. Strengthen CI/CD Pipelines</h3><p>Ensure debug files are never deployed to production again.</p><p>A simple oversight — but one that can create massive attack surface.</p><h3>💡 Final Thoughts: The Smallest Files Can Reveal the Biggest Secrets</h3><p>Finding phpinfo() reminded me of a simple truth:</p><blockquote><em>Vulnerabilities don’t always come from complex logic flaws.<br> Sometimes they come from forgotten files — the ones nobody checked before deployment.</em></blockquote><p>This bug wasn’t flashy.<br> It wasn’t complicated.<br> But it exposed:</p><ul><li>outdated software</li><li>internal infrastructure</li><li>system paths</li><li>modules</li><li>hostnames</li><li>server-level details</li></ul><p>More than enough to plan targeted attacks.</p><p>And that’s why catching these “simple” bugs matters just as much as finding the advanced ones.</p><p>On to the next hunt. 🐞🔍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee5f6e568159" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Night I Stumbled Into an Unprotected Hangfire Dashboard — And Why It Was Far More Dangerous…]]></title>
            <link>https://medium.com/@anshubind89/the-night-i-stumbled-into-an-unprotected-hangfire-dashboard-and-why-it-was-far-more-dangerous-c8212005cf51?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8212005cf51</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Wed, 17 Dec 2025 07:10:36 GMT</pubDate>
            <atom:updated>2025-12-17T07:10:36.372Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔧 The Night I Stumbled Into an Unprotected Hangfire Dashboard — And Why It Was Far More Dangerous Than It Looked</h3><p>Every bug bounty hunter has that moment where they open a URL expecting nothing — maybe a 403, maybe a login page — and instead find themselves staring at something they <em>definitely</em> shouldn’t be seeing.</p><p>For me, this moment arrived when I typed in a Hangfire dashboard URL belonging to a TATA Motors environment.</p><p>Hangfire, for those who haven’t crossed paths with it yet, is a .NET background job processing framework.<br> It quietly powers email sending, scheduled jobs, data syncs, backend workflows — the invisible machinery behind an application.</p><p>And its dashboard?</p><p>That’s the control room.</p><p>So imagine my surprise when I opened the dashboard on a production-like domain… and it <strong>loaded instantly</strong>.<br> No login.<br> No authentication.<br> No restrictions.</p><p>Just full admin access.</p><p>And that’s where this story begins.</p><h3>🕵️‍♂️ The Accidental Discovery</h3><p>I was testing a TATA Motors endpoint as part of their bug bounty program when I came across:</p><pre>https://[REDACTED]/hangfire</pre><p>My expectation?</p><p>Probably a redirect.<br> Or a 404.<br> At worst, a login screen.</p><p>What I actually got was a fully functioning Hangfire dashboard, wide open to the internet.</p><p>No username.<br> No password.<br> No authorization checks.</p><p>Just immediate access to:</p><ul><li><strong>Jobs</strong></li><li><strong>Servers</strong></li><li><strong>Processing queues</strong></li><li><strong>Recurring tasks</strong></li><li><strong>Failed tasks</strong></li><li><strong>Job logs</strong></li><li><strong>Server load and worker threads</strong></li></ul><p>This wasn’t just information disclosure.</p><p>This was <strong>full administrative access</strong> to backend job processing.</p><h3>⚠️ Why This Is Much Worse Than a Simple Exposure</h3><p>To most people, a job scheduler doesn’t sound dangerous.<br> But for developers, system architects, or pentesters — the implications are huge.</p><p>Here’s why:</p><h3>🔹 1. Complete Visibility Into Internal Workflows</h3><p>The dashboard exposed:</p><ul><li>internal job names</li><li>business logic</li><li>data processing tasks</li><li>automation routines</li><li>error messages</li><li>stack traces</li></ul><p>This is enough for an attacker to map the entire backend system.</p><h3>🔹 2. Ability to Manipulate Jobs</h3><p>Hangfire isn’t read-only.</p><p>From the dashboard, an attacker could:</p><ul><li>delete scheduled jobs</li><li>trigger jobs immediately</li><li>retry failed jobs</li><li>pause or stop queues</li><li>overload the system with manual triggers</li></ul><p>This means:</p><p>❌ disruption of business processes<br> ❌ potential data corruption<br> ❌ bypass of workflow constraints<br> ❌ messing with automation critical to operations</p><p>This is <em>beyond</em> sensitive data exposure — it is operational control.</p><h3>🔹 3. Internal Server Information Disclosure</h3><p>The dashboard also shows:</p><ul><li>server hostnames</li><li>worker process counts</li><li>uptime</li><li>connection details</li><li>queue performance</li></ul><p>Perfect reconnaissance for deeper attacks.</p><h3>🔹 4. Potential Supply Chain Impact</h3><p>Given this was a TATA Motors operational environment, an attacker with access might disrupt:</p><ul><li>logistics workflows</li><li>data synchronization</li><li>automated notifications</li><li>processing cycles tied to real-world operations</li></ul><p>In companies of this scale, background jobs are mission-critical.</p><h3>🧪 The Reproduction Was Almost Too Easy</h3><p><strong>Step 1:</strong> Open browser<br> <strong>Step 2:</strong> Go to:</p><pre>https://[REDACTED]/hangfire</pre><p><strong>Step 3:</strong> Enjoy full admin access 😬</p><p>No headers.<br> No tokens.<br> No authentication mechanism.<br> Nothing.</p><p>This is the kind of bug where <em>simplicity makes it dangerous</em>.</p><h3>📝 The Triage Conversation</h3><p>When the triage team asked about impact, I explained:</p><p>This wasn’t just “view-only” exposure.</p><p>It allowed:</p><ul><li>job modification</li><li>job deletion</li><li>forcible execution</li><li>backend workflow interference</li></ul><p>They quickly reassessed its severity and marked it:</p><p><strong>P5 – Sensitive Data Exposure (Triaged)</strong></p><p>Even though it’s categorized as P5, the operational impact could be far higher depending on the environment’s role.</p><h3>🛠️ Recommended Fixes (From Immediate to Long-Term)</h3><h3>🔥 1. Lock Down Access Immediately</h3><p>Require authentication:</p><pre>app.UseHangfireDashboard(&quot;/hangfire&quot;, new DashboardOptions<br>{<br>    Authorization = new[] { new CustomAuthorizationFilter() }<br>});</pre><h3>🔥 2. Add Firewall / IP Restrictions</h3><p>Only allow:</p><ul><li>internal IPs</li><li>VPN users</li><li>secure admin networks</li></ul><h3>🔒 3. Implement Role-Based Access Control</h3><p>Admins only.<br> No public access under any circumstances.</p><h3>🛡️ 4. Integrate With SSO</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8212005cf51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The Debug Log Left Behind — And How It Exposed the Inner Workings of a Major Automotive Platform]]></title>
            <link>https://medium.com/@anshubind89/the-debug-log-left-behind-and-how-it-exposed-the-inner-workings-of-a-major-automotive-platform-97d1f09cadef?source=rss-a962eef8d290------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d1f09cadef</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Anshubind]]></dc:creator>
            <pubDate>Wed, 17 Dec 2025 07:09:41 GMT</pubDate>
            <atom:updated>2025-12-17T07:09:41.873Z</atom:updated>
            <content:encoded><![CDATA[<h3>📝 The Debug Log Left Behind — And How It Exposed the Inner Workings of a Major Automotive Platform</h3><p>Some vulnerabilities feel like opening a door no one remembered existed.</p><p>No authentication bypass.<br> No elaborate exploit.<br> No advanced payload.</p><p>Just a simple file sitting on a server… quietly exposing everything underneath it.</p><p>This is the story of how a publicly accessible debug.log file — belonging to a platform inside one of India’s largest automotive companies — revealed far more than it should have.</p><p>And why debug logs in production are one of the most underestimated security risks out there.</p><h3>🔍 The Discovery: A Curious URL With a Big Secret</h3><p>I was testing an internal-facing healthcare-related platform operated by <strong>a major automotive manufacturer</strong> (yes, <em>that</em> one) as part of their bug bounty program.</p><p>One endpoint in particular caught my eye:</p><pre>https://[REDACTED]/debug.log</pre><p>It looked odd.<br> Most production systems would never expose something like that.</p><p>Still, curiosity is a bug hunter’s best tool — so I opened it.</p><p>And the file didn’t just download…<br> It opened instantly in the browser.</p><p>A full <strong>debug log</strong>, sitting out in the open.</p><h3>📂 What Was Inside the Debug Log?</h3><p>Debug logs tell stories — messy, detailed, revealing stories.</p><p>Inside this file, I found:</p><h3>🔹 1. Stack Traces &amp; Error Dumps</h3><p>These exposed:</p><ul><li>internal exceptions</li><li>backend logic flow</li><li>exact file locations</li><li>framework behavior</li></ul><p>For an attacker, this is reconnaissance gold.</p><h3>🔹 2. Database-Related Messages</h3><p>Error logs hinted at:</p><ul><li>SQL queries</li><li>table structure</li><li>connection behavior</li><li>failure points</li></ul><p>A stepping stone toward targeted SQL-based attacks.</p><h3>🔹 3. Internal File Paths</h3><p>Examples like:</p><pre>/var/www/...  <br>/home/app/...  <br>/usr/local/...</pre><p>Perfect for directory traversal exploit planning.</p><h3>🔹 4. API Endpoints</h3><p>The log revealed internal API routes — including ones not discoverable through public URLs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97d1f09cadef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>