-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
2.5.1 - Browser Confirm Access ignores subdomain specificity #3848
Comments
We specifically fixed this issue in 2.5.1. What do the URL's look like for the sites that are erroneously sent? |
Since 2.5.1, it KeepassXC sends all the sibling sub-domains: if I browse to |
I'll check the behaviour if there's something we've missed. Thanks for reporting it. |
Probably start with a new test case and see where things go sideways |
@droidmonkey Already did it. I have the fix ready. Sadly this didn't make to 2.5.1. |
The fix has been submitted. Feel free to test it. |
For what it's worth - the previous version already had an issue with one entry that had a space at the end of the url field. Now it asks for access to seemingly random domains. |
@luchaos Please test the PR if you can! I'd appreciate it if any extra bugs are found. |
I'd be happy to test as well, but the PR is not available for download yet, is it? |
@jm-duke You'll have to compile the sources yourself using https://github.com/varjolintu/keepassxc/archive/fix/browser_subdomain_matching.zip or https://github.com/varjolintu/keepassxc/tree/fix/browser_subdomain_matching via git. |
I know this is a stupid Q, but I have never compiled from source a github windows file. Reading the compiling for windows instructions appears to be using a linux environment to compile (from a quick scan). Have I got that right? I don't really want to mess about with my Windows env as it is really overdue for a HW upgrade and adding yet more stuff into it will probably kill it from lack of storage space. Sorry to ask such a newbe Q. Thanks |
@chc-pr That's right. You can install everything needed via MSYS2. It's pretty simple actually. If you use git with it, everything is downloaded to the same MSYS2 root path. It's easy to clean/uninstall. EDIT: I can also build test packages for Windows, if anyone is interested. |
Thx. I'll do that ASAP, prob later today or early tomorrow (I feel I should allow a bit of time to do it without being pressured by other things) - but if you can build a Windows test package I can implement that pretty much immediately and report back. Thank you for the offer. |
+1 I probably won't find the time to build stuff today, but I would definitely be able to test a build |
I am also affected wildly by this, because most of my entries end on db.de (our internal company dns). It leads to receiving 30ish matches on each page, KeepassXC became unusable in 2.5.1 for this. I will try to build the patched version on my mac and let you know if this works for me. Thanks for the quick fix, I appreciate that! |
Apologies for this snafu, I blame myself for not testing this case prior to merging. The code did not look like it changed to cause this, crazy stuff. |
Ok I can confirm, that the above PR fixes this issue for me. I made a couple of tests opening various URLs in the browser. They all behaved correctly. And kudos for the instructions on how to build the software. As an outsider to the project, this made it really easy for me! |
The matching has been broken a long time, since the KeePassHTTP support. Tried to fix it for 2.5.1 but the subdomain matching was a miss. This time it really should work correctly. Thanks everyone for the patience. It's frustrating when something breaks. |
Looking at the test cases, I get the feeling that there this problem is not actually verified by unit tests yet, is that correct? I am actually not 100% sure if I understand them correctly, I am used reading BDD test cases, so this code is a little hard on my eyes. |
@Morl99 The test happens here: keepassxc/tests/TestBrowser.cpp Line 295 in 2a5feeb
First, it's tested against various GitHub URL's, but the test only searches matches for Second, it's tested against a common Third, there's a list of entry URL's to be tested against I hope this clarifies the test cases used here. |
~~ Shouldn't https://example.com NOT match in the last test case mentioned? This would be because the URL in the entry is less specific then the one provided. ~~ |
I'm sorry you are absolutely correct. Please ignore me. |
Thank you @varjolintu, I had found the test class, but was unsure of the test cases. Your explanation made it clear, thanks. I am convinced and think this should be shipped as soon as possible. |
When will this be fixed? Or is there a workaround? |
@patrick7 It's already fixed. Just have to wait for it to be merged. Then a snapshot build can be used while waiting for a new release. |
@varjolintu any ETA for v2.5.2? |
+1 This bug is REALLY REALLY seriously annoying ... |
+1 to the previous 2 comments. |
You can test a snapshot build from: https://snapshot.keepassxc.org/ |
@thePanz I agree, this bug does heavily impact the usability of the keepassxc browser extension and an update would be very important. |
Apparently it's not yet merged in the latest snapshot :( |
You can also downgrade to 2.5.0 until there's an update. |
@varjolintu Downgrading to |
Can someone tell me where I can find 2.5.0? I can't see it anywhere and a search of github hasn't actually resulted in my finding it ... but I am sure it must be here somewhere .. Thx Ignore this, I found it by accidentally forking the code ... I then saw all the releases ... |
@chc-pr : https://github.com/keepassxreboot/keepassxc/releases/tag/2.5.0 |
I don't think that this is true, the fix for this is already merged in the 2.5.2 branch, it is just not released yet. See #3854 |
When will the fixed v2.5.2 be released? |
We are wrapping it up right now. |
Any news? |
@patrick7 The info I have, the release could be already tomorrow. |
"already". |
We are releasing tomorrow. |
@django987 I'll check it out. |
I came here using KeepassXC 2.6.6 because this behavior is still annoying me. I have several "services" installed like https://mydomain.com/owncloud and https://mydomain.com/webmail etc. KeepassXC always suggests all passwords for https://mydomain.com/ even though I set "Match URL scheme" and "Return only best-matching credentials". Is this still open or am I missing something? |
@ilpssun Currently we do matching based on the (sub)domain. There's not yet an option for an exact match. |
I tested this behavior with the KeePassXC-Browser Addon for Firefox and Chrome. Downgrading KeepassXC from 2.5.1 to 2.5.0 fixed the issue, so it seems to be related to the latest version of KeepassXC and not to the browser addon.
Expected Behavior
When browsing to a site, the "KeePassXC-Browser Confirm Access" pop-up requests password access to the credentials stored for this specific site or does not pop-up at all for sites, for which I already granted password access.
Current Behavior
The pop-up requests access to multiple, unrelated sites.
Also, on sites that were already known and that never showed the pop-up after I ticked "Remember this decision", the pop-up requests access to other sites now.
Steps to Reproduce
Context
Tested on two different Windows desktops, one using Firefox + KeepassXC Browser, the other using Chrome + KeepassXC Browser
Debug Info
KeePassXC - Version 2.5.1
Revision: 0fd8836
Qt 5.13.1
Debugging mode is disabled.
Operating system: Windows 10 (10.0)
CPU architecture: x86_64
Kernel: winnt 10.0.18362
Enabled extensions:
Cryptographic libraries:
libgcrypt 1.8.5
The text was updated successfully, but these errors were encountered: