TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bitwarden leaks passwords to other subdomains

107 pointsby mritzmannover 4 years ago

14 comments

pavonover 4 years ago
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 &quot;.org&quot;, &quot;.co.uk&quot;, and &quot;.cloudfront.com&quot; 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&#x27;t know if bitwarden uses PSL or not.<p>I learned about this from gorhill who is very diligent about appling this in uMatrix, etc[3].<p>[1]<a href="https:&#x2F;&#x2F;publicsuffix.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;publicsuffix.org&#x2F;</a><p>[2]<a href="https:&#x2F;&#x2F;wiki.mozilla.org&#x2F;Public_Suffix_List" rel="nofollow">https:&#x2F;&#x2F;wiki.mozilla.org&#x2F;Public_Suffix_List</a><p>[3]<a href="https:&#x2F;&#x2F;github.com&#x2F;gorhill&#x2F;uMatrix&#x2F;issues&#x2F;264" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gorhill&#x2F;uMatrix&#x2F;issues&#x2F;264</a>
评论 #24534113 未加载
评论 #24534086 未加载
评论 #24534181 未加载
philliphaydonover 4 years ago
Looks like user error. The domain matching needs to be set if you don’t want it to work on sub domains. The fact Bitwarden does this by default is a wonderful feature. So I don’t consider it leaking. Besides if you don’t trust a sub domain you shouldn’t trust the root domain.
评论 #24533392 未加载
评论 #24534253 未加载
评论 #24533423 未加载
评论 #24533344 未加载
评论 #24533660 未加载
评论 #24533512 未加载
评论 #24534111 未加载
johnbatchover 4 years ago
Looks like this is a fix to this posted 30 minutes ago<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bitwarden&#x2F;browser&#x2F;pull&#x2F;1397" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bitwarden&#x2F;browser&#x2F;pull&#x2F;1397</a>
Someone1234over 4 years ago
I think there could be a bug here, but not what the title suggests...<p>Domain matching is configurable per login, and default also configurable. The default-default is fine (better compatibility). But if people disagree then re-configure the default then deal with the consequences&#x2F;breakages.<p>The bug here seems to be auto-completing with auto-fill disabled. That&#x27;s a bug, and a security bug I&#x27;d argue.<p>PS - Them tagging the bug &quot;enhancement&quot; is also quite wrong. Leaking credentials with auto-fill off is clearly broken at the most basic levels, even if splitting the auto-fill checkbox into two is an &quot;enhancement.&quot;
addictedover 4 years ago
What am I missing here? Why is Bitwarden sending any data on its own at all?<p>I thought Bitwarden only fills login details in a form when I click on it.<p>What else is it doing that I am unaware of?
评论 #24541861 未加载
Timpyover 4 years ago
I&#x27;m using Bitwarden and all of my passwords are long, complex, and unique. Am I at risk? I understand that this is not good, but if my passwords are unique then the only thing that can happen is losing the credentials to the one account that got leaked, right? I don&#x27;t think my bank&#x27;s website has an unsecure subdomain that I have to worry about. Should I remove Bitwarden from my browser until this is fixed?
评论 #24534018 未加载
评论 #24533915 未加载
meksterover 4 years ago
I keep the domain match rule as &quot;Starts from&quot; in the global setting not because of this (and I realized it was a good choice more now) but because BitWarden automatically sends basic auth if there is only one match, meaning you never get any prompt to begin with, which is handy but having the default &quot;Base domain&quot; can make the match broader and asks me for basic auth and since an extension can&#x27;t fill that space probably due to browser extension API, I have to copy &#x2F; paste which is very tedious.
评论 #24541882 未加载
Ancapistaniover 4 years ago
I’ve noticed the too-broad matching behavior in the past myself. Password for &lt;production&gt;-admin.okta.com will auto fill for &lt;development&gt;-admin.okta.com, for instance. I also turn off auto fill for this reason.<p>I think the default matching behavior should be changed, and the handling of HTTP Basic Auth should be changed to conform to it.
aaomidiover 4 years ago
I don&#x27;t understand people excusing this. Subdomains can be controlled by completely different entities.
pavonover 4 years ago
If you scroll down, it appears that Bitwarden sends BasicAuth passwords in the clear over HTTP. This is a huge security hole, far bigger than the subdomain one.
评论 #24534055 未加载
评论 #24533994 未加载
davidg109over 4 years ago
Sounds like a bug with autocomplete disabled, but I don’t see this as a security issue.<p>What is the risk with using Bitwarden in this circumstance? That I trust one server of the company but not the other and therefore a bad actor now has my creds?
评论 #24533613 未加载
EE84M3iover 4 years ago
So is the TL;DR by default bitwarden sends basic auth (always, even if &#x27;autofill&#x27; is off, because of limitations of the webextension API) to other subdomains (up to the public suffix), people don&#x27;t like this because they use broken sites that aren&#x27;t on the PSL list but are effectively public suffixes, and so bitwarden is changing the default to only send basic auth to strict hostname matches?<p>This seems like kind of a nothingburger security wise to me.
评论 #24541897 未加载
baal80spamover 4 years ago
I really really hate these piecemeal twitter &quot;articles&quot;. Is there really no other way to inform the world about stuff?
评论 #24540135 未加载
评论 #24533294 未加载
IceWreckover 4 years ago
Can you please change the title ? Its very misleading.
评论 #24533647 未加载