Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerable Service: hashnode.com #434

Open
dalpan opened this issue Nov 28, 2024 · 0 comments
Open

Vulnerable Service: hashnode.com #434

dalpan opened this issue Nov 28, 2024 · 0 comments

Comments

@dalpan
Copy link

dalpan commented Nov 28, 2024

Hashnode is a service provided by Hashnode that enables clients to use custom domains via CNAME records pointing to hashnode.network.

When the associated Hashnode project is deleted or not configured properly, the subdomain becomes unclaimed, resulting in a 404 error. This state renders the subdomain vulnerable to takeover.

Proof

Setup a CNAME pointing to hashnode.network
Example:

vulnerable.example.com CNAME hashnode.network  

Check for Vulnerability
Access the subdomain (https://vulnerable.example.com/) and observe a response like (Error Vercel):

404: NOT_FOUND
Code: DEPLOYMENT_NOT_FOUND

image

Takeover the Subdomain

  • Go to Hashnode dashboard.
  • Create a blog or docs page

image

  • Add the custom domain (vulnerable.example.com) in the blog/docs dashboard.

image

if the subdomain is vulnerable, it will show the page that we created

image

Documentation

https://support.hashnode.com/en/articles/5755362-how-to-map-a-custom-domain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant