<?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 Hassan on Medium]]></title>
        <description><![CDATA[Stories by Hassan on Medium]]></description>
        <link>https://medium.com/@itshassan74?source=rss-89ccb2b72020------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4vSAag2_fFB_Xjx0loIFkA.png</url>
            <title>Stories by Hassan on Medium</title>
            <link>https://medium.com/@itshassan74?source=rss-89ccb2b72020------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 10:08:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itshassan74/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[Catching a Dangling CNAME: How an Unclaimed Squarespace Subdomain Leads to Takeover]]></title>
            <link>https://itshassan74.medium.com/catching-a-dangling-cname-how-an-unclaimed-squarespace-subdomain-leads-to-takeover-99d0166d4251?source=rss-89ccb2b72020------2</link>
            <guid isPermaLink="false">https://medium.com/p/99d0166d4251</guid>
            <category><![CDATA[squarespace]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[subdomain-takeover]]></category>
            <dc:creator><![CDATA[Hassan]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 17:45:18 GMT</pubDate>
            <atom:updated>2026-10-05T17:45:18.241Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Summary</strong></h3><p>While doing some recon, I stumbled upon a subdomain (subdomain.target.com) that had a dangling CNAME record pointing over to Squarespace (ext-cust.squarespace.com). Because the target wasn&#39;t actually claimed or mapped on the Squarespace end, anyone could theoretically register that exact hostname on the platform and take over the subdomain.</p><h3>Recon &amp; Discovery Steps</h3><ol><li><strong>Check the DNS records:</strong></li></ol><p>Ran a quick query to see where the subdomain was routing:</p><pre>dig +noall +answer subdomain.target.com CNAME</pre><ul><li><em>Result:</em> Pointed straight to ext-cust.squarespace.com</li></ul><p>2. <strong>Probe the endpoint:</strong></p><p>Sent an HTTP request to check the live status:</p><pre>curl -skI https://subdomain.target.com/</pre><ul><li><em>Result:</em> Returned a 404 with server: Squarespace.</li></ul><p>3. <strong>Grab the response body:</strong></p><p>Downloaded the page content to confirm the platform status:</p><pre>curl -skL https://subdomain.target.com/ -o response.html<br>grep -Ei &#39;Domain Not Claimed|Domain connection in progress|domainName&#39; response.html</pre><p><em>Result:</em> Hit strings like &quot;domainName&quot;:&quot;subdomain.target.com&quot; and Squarespace - Domain Not Claimed, proving the asset was up for grabs.</p><h3>Proof of Concept</h3><ol><li>Spot a subdomain pointing to a third-party service provider via CNAME where the target resource no longer exists or was never bound.</li><li>Hit the endpoint with curl or a browser to look for platform-specific error markers (like &quot;Domain Not Claimed&quot;).</li><li>Create an account on the third-party service and try adding the target subdomain as a custom domain to verify if it binds successfully.</li></ol><h3>Impact</h3><p>If an external party managed to claim the hostname before the domain owner caught it, they could host arbitrary content right on [https://subdomain.target.com/](https://subdomain.target.com/).</p><p>Risks include:</p><ul><li>Running phishing scams or malicious campaigns behind a legitimate, trusted brand subdomain.</li><li>Bypassing corporate allowlists, security filters, or WAF rules that automatically trust anything matching *.target.com.</li><li>General brand damage and loss of user trust.</li></ul><h3>Remediation</h3><ul><li><strong>Quick fix:</strong> Drop the dangling CNAME record from the DNS zone if the campaign or page is dead.</li><li><strong>Long term:</strong> Set up automated DNS monitoring to catch stale CNAMEs pointing to third-party cloud providers or SaaS platforms before someone else does.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99d0166d4251" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>