-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
Matching against domain goes too far #1820
Comments
Same issue here, the autofill provides wrong entries for the following examples :
|
Yeah, this looks wrong and even more odd. I wonder if there is a specific logic for matching IP addresses to cause these results.
This is okay if you don't have the option "Subdomain search" enabled. The idea behind this is presumably that many domains use the same credentials on different subdomains like www. or login., for example. The problem is that it also matches sub1mydomain.com which is not a sub-domain of mydomain at all. |
A new algorithm will be implemented in version 4.1.0. |
This issue is not fixed. If anything it is now worse than before. Ever since I found this issue I had enabled "subdomain search" in the app settings. After updating to 4.1.0 I have to select each entry manually. This even applies to the login on github.com, so I wonder how this was tested, if it was tested at all. |
You're right, I closed it too quickly. I thought the #1105 resolution would solve this problem too, but it's not exactly the same because there's no subdomain here. |
I've just figured out what's wrong, I've tested it but I don't know why, the SearchHelper line contains \\ that have been added line KeePassDX/database/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt Line 157 in ada8f74
Maybe an error of inattention before making the commit but when I remove them it works fine. |
I just installed 4.1.1 and the login on github.com doesn't suggest the existing entry at all regardless of the setting "subdomain search". The matching of the URLs to the login domain still seems to be broken. |
I've just done the test again and there's no problem. There is no sub-domain to the github login https://github.com/login , I have two entries with URL https://github.com and github.com and both are recognized. |
I also made sure that it worked properly with https://dropbox.com/ and https://account.box.com/login |
Indeed, but that's another problem. The resolution of the current issue respects the constraints you put in the first description. Can you open another dedicated issue for this? Currently the recognition system only does basic string checks without real URL formatting, I have to transform the string in this case and I'm afraid it will slow down the search for many entries. I'll think about it and try to find a solution to also recognize IPs and port numbers. |
When the setting "Subdomain search" is disabled, entries are suggested that match only the last part of the domain name.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An entry with https://box.com might match any subdomain like example.box.com but not a domain that just has box.com at the end. While enabling the "Subdomain search" setting prevents this from happening, there should be no match because these domains are completely unrelated and it only benefits phishing.
KeePass Database
Irrelevant.
KeePassDX:
Android:
The text was updated successfully, but these errors were encountered: