Skip to content
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

HIBP excluded entries are still included when scanning #59

Open
koitsu opened this issue Jan 27, 2023 · 2 comments
Open

HIBP excluded entries are still included when scanning #59

koitsu opened this issue Jan 27, 2023 · 2 comments

Comments

@koitsu
Copy link

koitsu commented Jan 27, 2023

Scenario

  • A KeePass group has 10 entries in it
  • Of those 10 entries, 4 are marked "Excluded" (for HIBP checks)
  • Select all 10 entries in KeePass
  • Right-click and select "Have I Been Pwned? -> Check"
  • All 10 entries are checked (rather than just 6)
    • I ASSUME all 10 are checked; the progress bar size etc. seems to imply all 10 are checked, given the interval delay between all 10

Conclusion

It seems the Excluded feature is only considered when checking the entire password database (via Tools -> HIBP Offline Check... -> Check All Passwords), and not through the right-click context menu.

I can see the use for doing HIBP checks for entries which are marked Excluded, but not as a default; a user expects an excluded entry to truly be excluded.

Recommended change

In the right-click context menu, make a new option called "Check (forced)", which will check selected entries regardless of their Excluded status. However, "Check" should exclude entries as described above.

@mihaifm
Copy link
Owner

mihaifm commented Jan 27, 2023

Hi, thanks for the detailed report.

Excluded passwords are not checked, it is just the progress bar that counts all passwords.

Not sure if it's worth fixing, it would just complicate the logic for the progress bar, but I'll give it a thought.

@koitsu
Copy link
Author

koitsu commented Jan 27, 2023

This provokes a lot of questions :) Sorry for them in advance.

  • How would this complicate the logic? The progress bar certainly knows "how many" total items there are (otherwise it would not be able to calculate the length accurately); is it that hard to count the number of "Excluded" entries and subtract that from the total?
  • If it's just the progress bar that counts all the selected entries, then what is it doing for the entries that are excluded? In my example, for those 4 entries? Why is there an interval delay (which implies a sleep/wait interval to keep HIBP API rate-limiting from kicking or the equivalent)?

Kind of strange logic going on here, but you know the code, not me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants