That (.) Which Made The Difference
TL;DR Help Scout did distinguish between regular domain name and trailing dot domains which lead to trivial low risk sub domain takeover
After reading The story of EV-SSL, AWS and trailing dot domains it felt the issue shouldn’t be just limited to Amazon because there are lot of other services which allow you to host the content in custom domains using CNAME. One of which pretty frequently comes up in dig is HelpScout.
This time it was Trello, Trello used Help Scout for the Trello Help.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> help.trello.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40237
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;help.trello.com. IN A
;; ANSWER SECTION:
help.trello.com. 299 IN CNAME trellohelp.helpscoutdocs.com.
trellohelp.helpscoutdocs.com. 59 IN CNAME pdocsweb-513455410.us-east-1.elb.amazonaws.com.
pdocsweb-513455410.us-east-1.elb.amazonaws.com. 59 IN A 52.204.90.23
pdocsweb-513455410.us-east-1.elb.amazonaws.com. 59 IN A 54.164.242.232
So CNAME pointing to trellohelp.helpscoutdocs.com
Randomly I inserted . at the end of the domain and instead of obvious help page I get and Help Scout error saying the page wasn’t found.
So trailing dot does make a difference to HelpScout
Next Steps
- Register in HS
- Try to create a page with
Custom Domainset tohelp.trello.com.
So ?
Yes, It worked. My page was loading at http://help.trello.com./
So it looks everyone using HS via CNAME can be at risk.
Further Steps
- Mail HelpScout regarding the issue
- Report to Trello, Harvest via H1 incase I never hear from HS.
Issue:
- Trailing dot should not have made a difference.
- Allow the registration of already registered domain
End Result:
- HS accepted the issue and then never turned up even after fixing the issue
- Trello got in touch with HS from there side as well, Bug Fixed. Tada.
- Myself closed the Harvest Bug report because made no sense once the HS problem was fixed
- Profit ? Yep
That’s about it I guess