Vulnerability in KeePass allows theft of Master Password

CVE-2023-3278 vulnerability

Vulnerability in KeePass allows theft of Master Password

KeePass, the preferred open-source password supervisor, is grappling with a safety flaw that may probably reveal the grasp password to attackers, compromising all of the password database. Came upon through a safety researcher referred to as “vdohney,” the vulnerability has been assigned the identity CVE-2023-3278.[1]

Can also be extracted from the appliance’s reminiscence

A grasp password is the cornerstone of a password supervisor’s capability, protective get entry to to a vault of distinctive passwords for more than a few on-line accounts. In KeePass, this grasp password encrypts all of the password database, rendering it unreadable with out the right kind password. Then again, a significant factor surfaces when this grasp password is in peril, as is the case on this newly known KeePass vulnerability.

The flaw necessarily permits attackers to extract the grasp password from the appliance’s reminiscence in cleartext shape, without reference to whether or not the KeePass workspace is locked or despite the fact that this system is closed. Vdohney launched a proof-of-concept device, the “KeePass Grasp Password Dumper,”[2] which is able to carry out this extraction with exceptional potency.

The problem originates from a customized password access field within the tool, referred to as “SecureTextBoxEx,” used no longer just for grasp password access but additionally different password edit bins. As customers kind of their password, the tool leaves strains of each and every personality within the machine reminiscence. This bureaucracy the root for the reminiscence sell off extraction device, which searches for those patterns to reassemble the password.

The vulnerability is found in the newest KeePass model, 2.53.1, and is most probably affecting all challenge forks because of its open-source nature. KeePass 1.X, KeePassXC, and Strongbox don’t seem to be suffering from CVE-2023-32784.

Exploitation and attainable threats

Regardless that the safety flaw is important, it is price noting that an attacker will have to download a reminiscence sell off from the objective gadget to milk it, necessitating both bodily get entry to or malware an infection. In spite of this requirement, information-stealing malware may just scan for the presence of KeePass on a pc, extract this system’s reminiscence, and transmit each the reminiscence sell off and the KeePass database again to the attacker for offline password extraction.

Vdohney’s proof-of-concept device has effectively demonstrated this exploitation. After making a database with a check grasp password and locking the KeePass workspace, the device controlled to get well many of the cleartext password from a complete reminiscence sell off.

The researcher additionally warns that grasp passwords used previously may just probably linger in reminiscence, enabling their retrieval despite the fact that KeePass is now not operating at the compromised pc.

Incoming patch and long run precautions

KeePass’s developer, Dominik Reichl, is operating on a repair for the problem, with the answer anticipated to roll out within the drawing close KeePass model 2.54, most probably in early June.[3] The approaching model is reported to function two safety improvements: direct API calls to steer clear of the introduction of controlled strings that would leak secrets and techniques and dummy fragments with random characters in reminiscence to obfuscate the true grasp password.

Even if the brand new model is launched, the grasp password would possibly nonetheless be saved in reminiscence recordsdata. Customers will wish to transparent their machine’s switch and hibernation recordsdata, and for the ones in need of to make sure absolute protection, a contemporary OS set up after a troublesome force layout is beneficial.

As at all times, the most efficient coverage is precautionary – stay vigilant in regards to the origins of your downloads and be wary of phishing assaults. The possible vulnerability of your grasp password underscores the crucial significance of keeping up powerful safety practices.