News for hackers. Stuff that matters.
Re:Bitwarden leaks passwords to other subdomains by pavon on Sunday September 20, 2020 @09:37AM (#24533952)
This is a good opportunity to inform folks about the Public Suffix List[1]. In short, there is no algorithmic way to know how far up a subdomain is controlled by a single entity. For example ".org", ".co.uk", and ".cloudfront.com" are all public suffixes where subdomains under them are controlled by different entities. Mozilla created[2] the public suffix list to document these regions of control. If you write any software that gives subdomains the same privilege as the base domain, you should (at a minimum) check this list and verify that the subdomain is not known to be controlled by a different party. If you share a domain across multiple entities, you should add your domain to the public suffix list. I don't know if bitwarden uses PSL or not.

I learned about this from gorhill who is very diligent about appling this in uMatrix, etc[3].

[1]https://publicsuffix.org/

[2]https://wiki.mozilla.org/Public_Suffix_List

[3]https://github.com/gorhill/uMatrix/issues/264

Re:Bitwarden leaks passwords to other subdomains by tialaramex on Sunday September 20, 2020 @10:05AM (#24534113)
Ryan Sleevi suggests (perhaps that's putting it too mildly) that further reliance on the PSL is a bad idea:

https://github.com/sleevi/psl-problems and https://news.ycombinator.com/item?id=24441942

His recommendation is to as much as possible use the Same Origin Policy or if you must, a slightly weakened variant like ignoring port numbers.

I suspect I'll make another comment elsewhere in this discussion that says more about the problems with that.

Re:Bitwarden leaks passwords to other subdomains by captn3m0 on Monday September 21, 2020 @01:54AM (#24540247)
Another relevant read is the ICANN's research on the same: https://research.google/pubs/pub43821/

Title: SSAC Advisory on the Use of Static TLD / Suffix Lists

Ultimately, it boils down to there not being any decent alternative. This is exactly the kind of hard problem that IETF should be tacking.

Re:Bitwarden leaks passwords to other subdomains by tpetry on Sunday September 20, 2020 @10:00AM (#24534086)
I am shocked how broad the list has grown. A few years ago it only contained the iana domains now there are many domains for cloud services etc.
Re:Bitwarden leaks passwords to other subdomains by paulryanrogers on Sunday September 20, 2020 @10:47PM (#24539302)
This seems to be an inevitable outcome as ICANN has sold out. It should have been an international non-profit once the significance of domain names became clear.
Re:Bitwarden leaks passwords to other subdomains by mekster on Monday September 21, 2020 @01:14AM (#24540047)
ICANN is a mess, look at the pricing of new TLD like .rich. It's all joke because it's not a neutral entity with proper peer pressures.

ICANN is one of the internet's failure.

Re:Bitwarden leaks passwords to other subdomains by FDSGSG on Monday September 21, 2020 @06:26AM (#24541730)
How does this have anything to do with ICANN selling out?
Re:Bitwarden leaks passwords to other subdomains by paulryanrogers on Monday September 21, 2020 @08:47AM (#24542670)
TLDs proliferated which contributes to weaknesses like this one in BitWarden.
Re:Bitwarden leaks passwords to other subdomains by FDSGSG on Tuesday September 22, 2020 @07:14PM (#24561122)
TLD proliferation has nothing to do with this problem though.
Re:Bitwarden leaks passwords to other subdomains by johnbatch on Sunday September 20, 2020 @10:16AM (#24534181)
As far as I can tell Bitwarden is using that and pulling that info here:

https://github.com/bitwarden/server/blob/0f1efdd18b879ccdf41...