<?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"><channel><title><![CDATA[Nilanjan Builds_in_Public]]></title><description><![CDATA[Nilanjan Builds_in_Public]]></description><link>https://nilanjan.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6aff4f72ddd4c58ff5caf027/33dad04a-5513-4806-9acc-f847b70b506d.png</url><title>Nilanjan Builds_in_Public</title><link>https://nilanjan.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:29:51 GMT</lastBuildDate><atom:link href="https://nilanjan.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[My DAST Engine Had a Validator That Never Said No]]></title><description><![CDATA[Author : Nilanjan Chowdhury Okay so this one’s a little embarrassing to admit. SUDARSHAN has three phases. Phase 2 finds stuff. Phase 3 is supposed to…]]></description><link>https://nilanjan.hashnode.dev/my-dast-engine-had-a-validator-that-never-said-no</link><guid isPermaLink="true">https://nilanjan.hashnode.dev/my-dast-engine-had-a-validator-that-never-said-no</guid><category><![CDATA[cybersecurity]]></category><category><![CDATA[ethicalhacking]]></category><category><![CDATA[websecurity]]></category><category><![CDATA[vapt services]]></category><category><![CDATA[Build In Public]]></category><dc:creator><![CDATA[Nilanjan]]></dc:creator><pubDate>Mon, 30 Nov 2026 18:58:52 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aff4f72ddd4c58ff5caf027/46754aa4-54bd-40f6-9fb8-6b678831b755.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Author : <a href="https://www.linkedin.com/in/nilanjan-chowdhury-a36787359/">Nilanjan Chowdhury</a></p>
<p>Okay so this one’s a little embarrassing to admit.</p>
<p>SUDARSHAN has three phases. Phase 2 finds stuff. Phase 3 is supposed to check if the stuff Phase 2 found is actually real. Phase 4 writes it up. I built Phase 3 specifically so the engine could catch its own mistakes — a second brain whose entire job is to look at the first brain’s work and go “nah, that’s wrong.”</p>
<p>I was digging through old scan logs last week for an unrelated reason and noticed something that stopped me mid-scroll. Every finding Phase 2 confirmed, Phase 3 also confirmed. Every one Phase 2 dropped, Phase 3 dropped too. Not once, in the entire history of the project, had they disagreed.</p>
<p>First thought: oh nice, the validator’s accurate. Second thought, ten seconds later:</p>
<blockquote>
<p><em>A system that agrees with itself 100% of the time either built the world’s most perfect detector, or it isn’t doing anything. I know which one I’d bet on with my own code.</em></p>
</blockquote>
<p>So I opened <a href="http://validator.py"><code>validator.py</code></a> and read it slowly, the way you read something when you already suspect it's going to disappoint you. It was disappointing. The "validation" step was copying Phase 2's answer into a new dictionary and sending it back out. No second opinion. No opinion at all.</p>
<img src="https://cdn-images-1.medium.com/max/900/1*T2FIPJuEJH2oxUCpO4K2iw.png" alt="" style="display:block;margin:0 auto" />

<p>Digging further, I found the rot underneath it. The independent checks that were supposed to disagree with Phase 2 if needed — never actually connected to anything. They existed, they just weren’t being called. Two that were hooked up had a dumber problem: they were hitting the exact same URL for both the “clean” baseline and the attack request. So nothing ever looked different between them — there was nothing to compare. I’d basically built a function that compares A to A and reports “no difference found.” Groundbreaking.</p>
<p>And then, almost as a cherry on top, <code>__init__.py</code> was only exporting half the check functions. The other three sat right there in the folder, perfectly fine code, never imported anywhere.</p>
<p>I sat back from my laptop for a second after finding all three in the same evening. Because the real problem wasn’t any one bug — it was that I had a full test suite and none of it would’ve caught this.</p>
<blockquote>
<p><em>My tests check whether detection logic works. Not one of them checks whether the validator is actually validating anything. You could gut the inside of Phase 3, replace it with</em> <code>return input</code><em>, and every test would still pass green.</em></p>
</blockquote>
<p><strong>Fixing it</strong></p>
<img src="https://cdn-images-1.medium.com/max/900/1*6hku_BhUK4DcaJRe__drxQ.png" alt="" style="display:block;margin:0 auto" />

<p>Five things, not all equally fun. Fixed the baseline requests so they actually hit a clean, separate request instead of duplicating the attack URL. Fixed the missing exports — all six check functions reachable now. Rewrote the validator so it requires real agreement before confirming anything, and can downgrade a finding Phase 2 got wrong. Ripped out the hardcoded “high/medium/low” labels — a little ashamed those were ever there — and replaced them with a weighted score out of 100 built from response similarity, status shifts, timing, size delta, and header changes. Parameter discovery got smarter too, pulling real params off the crawled URL instead of guessing from a fixed list.</p>
<p>The one that annoyed me most was <a href="http://main.py"><code>main.py</code></a>. It had an old rule baked in — only elevate findings, never downgrade — which made sense back when the validator was cosmetic. Once the validator could actually disagree, this rule was quietly throwing that disagreement in the trash. The layer I built to stop false positives was itself causing one. A very specific kind of dumb that only makes sense in hindsight.</p>
<img src="https://cdn-images-1.medium.com/max/900/1*ok9QIDauQyLHtspp9Vhpxg.png" alt="" style="display:block;margin:0 auto" />

<p><strong>The part that actually humbled me</strong></p>
<p>Ran the fixed engine against a deliberately vulnerable box on my local network. Two IDOR findings got correctly downgraded — exactly the false positive this rebuild was meant to catch. Felt good for about five minutes.</p>
<p>Then two Command Injection findings got downgraded too. Findings I knew were real, because the vulnerable app’s own source shows an unsanitized <code>subprocess.check_output</code> call. No ambiguity here. A real hole, and my new, more honest validator had thrown it out.</p>
<p>Took a bit to track down why. The independent check was looking for Unix-style output — <code>uid=</code>, <code>root:</code> — to confirm the injection worked. The target box was running Windows. The payload fired fine, it just had nowhere to land, since <code>id</code> isn't a Windows command. The check looked for proof that could never exist, found nothing, and quietly killed a real finding.</p>
<blockquote>
<p><em>False positives are loud, obviously wrong. False negatives just look like the system working correctly — right up until it’s wrong in the other direction, and you never even know.</em></p>
</blockquote>
<p>Fixed it with an OS-agnostic marker, basically the same echo trick Phase 2 was already using. Lazy of me not to reuse it sooner. Reran everything: 13 findings, 8 confirmed, 5 correctly downgraded. The command injection ones flipped back to confirmed, the IDOR false positive stayed dead. Had both runs side by side to prove it.</p>
<p><strong>What’s still not done</strong></p>
<p>Only 6 of 22 vulnerability classes have a real independent check behind them now. The other 16 still just trust whatever Phase 2 says. Not pretending that’s fine — just where I’ve gotten to. If I shipped this claiming full validation while a quarter of it was actually checked, I’d be doing exactly what I spent a week ripping out of my own code.</p>
<p>A validator that never disagrees with you isn’t protecting you from anything. It’s just agreeing with you slower, and calling it diligence.</p>
<h3>Build, Break, Document, Fix</h3>
<p>Follow my journey here : </p>
<blockquote>
<p><strong>You can find me here :</strong><br />Linkedin : <a href="https://www.linkedin.com/in/nilanjan-chowdhury-a36787359/">https://www.linkedin.com/in/nilanjan-chowdhury-a36787359/</a><br />Github : <a href="https://github.com/CalculusGuy">https://github.com/CalculusGuy</a><br />HashNode: <a href="https://hashnode.com/@nilanjan-chowdhury">https://hashnode.com/@nilanjan-chowdhury</a><br />Medium: <a href="https://medium.com/@nilanjan.calculus">https://medium.com/@nilanjan.calculus</a></p>
</blockquote>
<p>#Cybersecurity #ethicalhacking #DAST #bugbounty #websecurity</p>
]]></content:encoded></item><item><title><![CDATA[Your WAF Scanner Checks a Header. Mine Checks Its Pulse.]]></title><description><![CDATA[Author: Nilanjan Chowdhury Why behavioral fingerprinting beats blind scanning (and what happened when I pointed HOLLOW at DigitalOcean) Most WAF scanners…]]></description><link>https://nilanjan.hashnode.dev/your-waf-scanner-checks-a-header-mine-checks-its-pulse</link><guid isPermaLink="true">https://nilanjan.hashnode.dev/your-waf-scanner-checks-a-header-mine-checks-its-pulse</guid><category><![CDATA[cybersecurity]]></category><category><![CDATA[ethicalhacking]]></category><category><![CDATA[offensive-security]]></category><category><![CDATA[waf bypass]]></category><category><![CDATA[Build In Public]]></category><dc:creator><![CDATA[Nilanjan]]></dc:creator><pubDate>Thu, 19 Nov 2026 20:18:02 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aff4f72ddd4c58ff5caf027/60bb1ad5-b21e-4f2c-b00c-18ea9f2196f2.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<img src="https://cdn.hashnode.com/uploads/covers/6aff4f72ddd4c58ff5caf027/44645dfa-02cb-4718-9225-212c2b29ef1b.png" alt="" style="display:block;margin:0 auto" />

<p>Author: <a href="https://www.linkedin.com/in/nilanjan-chowdhury-a36787359/">Nilanjan Chowdhury</a></p>
<p>Why behavioral fingerprinting beats blind scanning (and what happened when I pointed HOLLOW at DigitalOcean)</p>
<p>Most WAF scanners are useless.</p>
<p>They send a request, look for a <code>cf-ray</code> header, and proudly announce, "Cloudflare detected!"</p>
<p>But a header check tells you a WAF exists. It doesn’t tell you how it thinks. It doesn’t tell you if it will block your payload. And it certainly doesn’t help you bypass it.</p>
<p>I got tired of blind scanning. So I rebuilt my weekend side-project, HOLLOW, into a behavioral profiling engine. Here’s how it works, and what happened when I pointed it at DigitalOcean — including the part where Cloudflare won the first round.</p>
<h3>The Shift: Headers to Behavior</h3>
<p>When I built HOLLOW v1, it was a simple Python script that checked HTTP headers.</p>
<p>For v2, I ripped that out. Now HOLLOW sends a baseline request, followed by a malicious payload (XSS/SQLi), and reads the response.</p>
<p>Does it return a <code>403 Forbidden</code>? A <code>406 Not Acceptable</code>? Does the body contain Cloudflare’s "Attention Required" page? That behavioral signature is how you identify a WAF even when headers are stripped or spoofed.</p>
<p>text</p>
<pre><code class="language-plaintext">[+] Baseline request sent → 200 OK
[+] Payload fired: &lt;script&gt;alert(1)&lt;/script&gt; → 403 Forbidden
[+] WAF signature matched: Cloudflare
[*] Entering mutation phase...
</code></pre>
<img src="https://cdn-images-1.medium.com/max/900/1*1pxu37_DzTGhsrDjib4-CQ.png" alt="" style="display:block;margin:0 auto" />

<h3>The Payload Mutator (<code>--mutate</code>)</h3>
<p>When a WAF blocks a payload, most people stop.</p>
<p>HOLLOW v2 doesn’t. If the initial payload is blocked, it automatically fires mutated versions:</p>
<ul>
<li>URL Encoding (<code>%3Cscript%3E</code>)</li>
<li>Hex Encoding (<code>\x3Cscript\x3E</code>)</li>
<li>Case Switching (<code>&lt;ScRiPt&gt;</code>)</li>
<li>Inline Comments (<code>&lt;script/**/&gt;</code>)</li>
</ul>
<p>I pointed it at DigitalOcean. Cloudflare blocked the baseline. HOLLOW fired all four mutations.</p>
<p>Cloudflare blocked every single one.</p>
<p>That’s not a failure. That’s data. Enterprise Cloudflare holding against four mutation classes tells you exactly where the syntax layer is a dead end — which means it’s time to stop knocking on the wall and start looking for a door.</p>
<h3>The Origin IP Hunter</h3>
<p>If you can’t bypass the WAF syntax, you bypass the network.</p>
<p>When HOLLOW detects Cloudflare, it automatically queries the HackerTarget API to pull subdomains tied to the root domain.</p>
<p>Why? Because while <a href="http://www.digitalocean.com"><code>www.digitalocean.com</code></a> sits behind Cloudflare, something like <a href="http://clienteng-nyc3.digitalocean.com"><code>clienteng-nyc3.digitalocean.com</code></a> or <a href="http://api.digitalocean.com"><code>api.digitalocean.com</code></a> might point straight at an unproxied origin server.</p>
<p>Against DigitalOcean, Cloudflare ate every mutation I threw at it — and HOLLOW still surfaced 50 subdomains for manual origin-IP hunting. The wall held. It didn’t matter. The door was somewhere else the whole time.</p>
<h3>The Takeaway</h3>
<p>HOLLOW v2 doesn’t just tell you a wall exists. It tells you how the wall thinks, and then it goes looking for a way around it.</p>
<p>It’s built entirely in Python using <code>requests</code>. It runs in seconds. It’s 100% open source.</p>
<p>If you’re doing bug bounties or red teaming: stop relying on header scanners. Point HOLLOW at your next target:</p>
<p>bash</p>
<pre><code class="language-plaintext">python main.py -t https://target.com --mutate
</code></pre>
<p>And see what it finds when the front door’s locked.</p>
<p>Breaking things ethically. 🔒</p>
<p>Follow me and my journey</p>
<p>GitHub: <a href="https://github.com/CalculusGuy">github.com/CalculusGuy</a><br />Medium: <a href="https://medium.com/@nilanjan.calculus">medium.com/@nilanjan.calculus</a><br />LinkedIn: <a href="https://www.linkedin.com/in/nilanjan-chowdhury-a36787359/">linkedin.com/in/nilanjan-chowdhury-a36787359</a><br />HashNode: <a href="https://hashnode.com/@nilanjan-chowdhury">https://hashnode.com/@nilanjan-chowdhury</a><br />My website: <a href="https://calculusguy.github.io/nilanjanchowdhury.github.io/">https://calculusguy.github.io/nilanjanchowdhury.github.io/</a></p>
]]></content:encoded></item></channel></rss>