libkeepass / pykeepass

Python library to interact with keepass databases (supports KDBX3 and KDBX4)
https://pypi.org/project/pykeepass/
GNU General Public License v3.0
403 stars 96 forks source link

crash if reference is broken #384

Closed br-olf closed 3 months ago

br-olf commented 4 months ago

I think I found a bug in the following code: https://github.com/libkeepass/pykeepass/blob/769ee25eca8a82943f59946aafe8c38246b99fe0/pykeepass/pykeepass.py#L704

This crashes when there is a broken reference in the username field.

I messed with the references in my database and suddenly keepmenu crashed. I dug deeper and I think this is actually a bug of pykeepass.

See the also the bug report in keepmenu: https://github.com/firecat53/keepmenu/issues/160