HexBrain

Ruby on Rails · Report #1429148

Subdomain Takeover at https://new.rubyonrails.org/

Validstatus
highseverity
17upvotes
3 Mar 2022disclosed

How it was found

Disclaimer

I know it's OOS but the issue is pretty serious because of the attractive domain name "new.rubyonrails.org" basically anyone could have put malware there.

Summary

Hi!

I discovered that new.rubyonrails.org was pointing to an unclaimed Github Page, making it vulnerable to subdomain takeover. I've managed to claim it in my Github-account and added a simple html file as POC:

{F1548667}

https://new.rubyonrails.org

Mitigation

  • Remove the DNS record

Best regards, nagli

Impact

Subdomain takeovers can be used for

  • Cookies set to the root domain will be shared with this subdomain and can be obtained
  • Stored XSS (arbitrary javascript code can be executed in a users browser)
  • Phishing
  • Hosting malicious content

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original