Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Latest commit



416 lines (262 loc) · 28.5 KB

File metadata and controls

416 lines (262 loc) · 28.5 KB


Is a WebExtension for browsers to send and receive credentials from KeePass(XC).

Please read at least the section Important information.

Table of content:

1. Features

  • secure integration with KeePass using the KeePassHttp plugin
  • receive credentials from KeePass
  • send new and updated entries to KeePass
  • support multiple KeePass databases
    • select a unique icon for every database
  • contains a password generator which works together with KeePass
  • support multiple credentials for one page
    • select from popup
    • select from autocomplete
  • support autocomplete for username fields
  • support HTTP Auth requests (also known as htaccess-login)
  • support additional field values via String Fields in KeePass
  • support fill-in for dropdown menus (only for String Field values)
  • accessible via context-menu of input fields
  • accessible via shortcuts (Ctrl+Shift+U and Ctrl+Shift+P)
  • automatically detect field combinations of username + password
  • automated password form fill if only one login combination is available
  • choose own credential fields for every page
  • checks for update of KeePassHttp

2. Installation

2.1 Requirements


It is recommended to disable the built-in Chrome password management when using this extension

2.2 Installation

  1. Your database in KeePass has to be unlocked.
  2. Install the extension.
  • For Chrome, the KeePassHTTP-Connector extension is available in the Chrome Web Store.
  • For Firefox, the KeePassHTTP-Connector extension is available in the Mozilla Add-ons.
  1. Now there is a new browser icon available:

  2. Click on the icon and press the button to connect to KeePassHttp:

  3. KeePassHttp shows you an dialog to give the pairing request a name. You could call it "Chrome on my main computer".

  4. If you click on the browser icon again it should show you the following information:

  5. Reload the current page.

  6. Open the settings to adjust KeePassHTTP-Connector for your needs.

3. Functionality

3.1 Access the credentials

If KeePassHTTP-Connector detected a combination of username + password fields it requests all credentials for the current page from KeePassHttp.
The received credentials are accessible via multiple ways which are described in the following sections.

3.1.1 Popup

The icon of KeePassHTTP-Connector gets a question mark.
Clicking on the icon opens a popup on which you can choose the credentials which should be filled in.

If there are several username + password combinations on the page the credentials are filled into the focused combination (focus on username or password field) or into the first combination.

popup choose credentials

3.1.2 Autocomplete

For all combinations of username + password fields the username field supports autocomplete for the received credentials.

By clicking on an entry of the list or when the username field loose the focus it checks whether the username belongs to one of the received credentials and fills-in the password field.

This feature is activated by default and can be disabled on the settings page of KeePassHTTP-Connector.


3.1.3 Context-menu

On every textfield KeePassHTTP-Connector adds 3 entries to the context-menu.
Even if the field was not detected as a username or password field by KeePassHTTP-Connector these entries are available.

If you click on Fill User + Pass or Fill Pass Only KeePassHTTP-Connector checks whether the focused field belongs to a detected combination of username + password field. If this check fails it starts a redetection for only the focused field.
If you focus an unrecognized password field and select Fill User + Pass it will automatically detect the username field and fills-in the credentials.

Fill User + Pass of the context-menu will only work if KeePassHTTP-Connector received only one pair of credentials. Otherwise it shows you an error message and you should use the autocomplete or popup.

Fill Pass Only does work either KeePassHTTP-Connector received only one pair of credentials or the associated username field contains a username which belongs to one pair of the received credentials.

Show Password Generator Icons restarts the detection of visible password fields on the page and adds the key-icon for the password generator to each of them.


3.1.4 Shortcuts

KeePassHTTP-Connector supports 2 page-wide shortcuts:

Ctrl+Shift+U is the shortcut for Fill User + Pass of the context-menu which is described in 3.1.3.

Ctrl+Shift+P is the shortcut for Fill Pass Only of the context-menu which is also described in 3.1.3.

3.2 Password generator

KeePassHTTP-Connector offers a password generator which receives the password from KeePass itself.
This function has to be enabled on the settings-page of KeePassHTTP-Connector.

This feature is only available with the KeePassHttp v1.4 or higher.

If it is enabled every password field contains a key icon on the right side. Click on it to open the password generator:

If the key-icon does not appear, right-click on the input-field and select KeePassHTTP-Connector > Show Password Generator icons in the context-menu.

Once opened the generated password is stored in the field till you reload or submit the page or till you press the generate button. Even if you close the dialog and click on another key-icon the displayed password does not change.

Does a page contain more than one password field and you opened the dialog on the first password field, the option to fill-in the next field is enabled. If the two password fields are successive on the page, this option is also checked. Otherwise it is unchecked.

If the password field has a limited length for inputted text KeePassHTTP-Connector will detect it and automatically cut the generated password. It will inform you about this change and copy the cutted password to your clipboard.

Because KeePassHTTP-Connector has some limitations to remember credentials the password should always be copied to your clipboard.

3.2.1 How is the password generated?

KeePassHTTP-Connector sends a request to KeePass which generates a password with the settings of the built-in profile for auto-generated passwords.
To change the length and composition of generated passwords, please open the KeePass Password Generation Options.
Go to Keepass > Tools > Generate Password... and this dialog opens:

  1. Select the built-in profile (Automatically generated passwords for new entries) and change the composition of the generated passwords.
  2. Now click the save button
  3. A second dialog appears. Click on the down-arrow on the right side and select again the name of the built-in profile (Automatically generated passwords for new entries).
  4. Press OK and your changes are saved to the profile.

3.3 Detection of credential fields

  1. After the page was loaded KeePassHTTP-Connector starts to search for all visible input fields.
  2. For every found input field of the type password it checks whether the previous input field is a normal textfield.
    • if there is no previous field or the previous field is a password field --> don't add this fields as a detected username + password field combination.
    • if the previous field is a textfield --> add both fields as combination of username + password field.

The auto detection of credential fields is called only one time, after loading of the page finished.

There are known limitations when the auto detection cannot detect a username + password combination. Please go to Limitations and known problems > Auto detection of input fields to read more about it.

When it did not detect a username + password field combination you can click on the browser icon of KeePassHTTP-Connector and press the button "Redetect credential fields".

You can also use the shortcuts or context-menu as described in 3.1.3 to start the redetection for the focused field.

3.4 Choose own credential fields for a page

Sometimes there are other input fields between the username field and the password field.
In this cases KeePassHTTP-Connector cannot detect the correct combination of username + password fields.

But you can define the combination by yourself for every page.
Just click on the browser-icon of KeePassHTTP-Connector and press "Choose own credential fields for this page":

First there are all normal textfields highlighted. Click on the field you want to use as username field or skip this step if no username field is required.

Now choose a password field and in the last step confirm your selection.


You can also choose additional fields, the so-called String Fields. Their functionality is described in section 3.7.

The next time you open this page KeePassHTTP-Connector will use the defined combination of username + password field and does no longer auto detect combinations.

Certainly you can focus another field and use the context-menu (3.1.3) or shortcuts (3.1.4) to start the detection for the focused field.

3.5 Remember passwords

Because Google Chrome does not offer an API for their built-in password manager KeePassHTTP-Connector implements it own way of detecting new or updated credentials.

If KeePassHTTP-Connector finds a combination of username + password fields it tries to get the corresponding form for them.
For this form it registers a submit event which is called when the form is send.

There are known limitations for this workflow which are described in Limitations and known problems.

If KeePassHTTP-Connector detects unsaved credentials the browser icon of KeePassHTTP-Connector starts blinking red.
The icon will remain blinking till you click on it or you ignore it for 2 further page visits (loading other sites).

If you click on it, it remains completely red till you add, update or dismiss the detected changes.
It shows you the corresponding URL and username and the database in which the changes will be saved.


If you have multiple credentials for a page and want to update one entry you can press Update.
Now a list of all available entries appears on which you can select the outdated entry. If the username matchs with one username of the available credentials this entry will be marked bold:


New entries are stored in a separate group in KeePass which will be added by KeePassHttp.

3.6 Auto fill-in for HTTP Auth requests

KeePassHttp returns the found credentials sorted by best matching URL to KeePassHTTP-Connector.
KeePassHTTP-Connector can try to automatically login with the first provided credentials on HTTP Auth requests.
If this login attempt fails the login dialog is shown as normal.

The dialog of an HTTP Auth request is shown in the following screenshot:

http auth request

This feature is activated by default and can be disabled in settings.

3.7 Fill-in additional values via String Fields

You can fill-in additional information by defining string fields.

  1. Choose your own credential fields for the page like explained in section 3.4. You can also skip both, username and password.
  2. Now you can choose additional fields which are named String Fields. You can even choose dropdown elements. The order you choose these string fields is important for the fill-in method!
  3. Activate the String Fields setting in KeePassHttp like explained in the KeePassHttp-documentation (setting no. 11). The alphanumeric ordered entries are mapped with the order you chose the String Fields.

Dropdown elements are filled in by the visible value. If you open a dropdown element you can see all available values. This visible value has to match with one String Field value from KeePass.

4. Configuration and settings

You don't need to configure KeePassHTTP-Connector.
If KeePassHTTP-Connector does not have an authenticated connection to KeePassHttp it displays a red cross in the browser icon and requests you to establish a new connection.

For further configurations you can open the settings which are accessible via the settings button in the popups, the context-menu of the browser icon (entry is called Options) or the tab chrome://extensions on the KeePassHTTP-Connector entry there is also a link called Options.

4.1 Settings: General

On the General Settings you can enable and disable key features like autocomplete, password generator or auto fill for HTTP Auth requests.

The changes are saved immediately.

settings general

4.2 Settings: Connected Databases

On the tab Connected Databases KeePassHTTP-Connector shows you which databases are currently paired with KeePassHttp. You can also define a special icon for every database and see when it was last accessed.

The displayed icon depends on the database which is currently activated and unlocked in KeePass.

Removing an entry from KeePassHTTP-Connector does not remove the key from KeePassHttp! But KeePassHttp is no longer able to send credentials to or receive data from KeePassHTTP-Connector for the currently activated database in KeePass.

settings general

4.3 Settings: Specified credential fields

In section 3.4 the function of Choose own credential fields for this page is described.
All credential fields which are defined with this function are listed on this tab.
You can only remove them because it's not useful to define the fields manually.

settings general

5. Tips and tricks

If the credential fields are not detected automatically you can focus one of the fields and press Ctrl+Shift+U or Ctrl+Shift+P to trigger redetecting the fields and filling-in the credentials. Also you can click on the browser icon and press the button Redetect credential fields.

If KeePassHTTP-Connector detects wrong credential fields choose them by yourself with the button Choose own credential fields for this page which is available in every popup.

If KeePassHTTP-Connector always asks to unlock the database and this is annoying you, you can simply disable this feature in the options of KeePassHttp.

It's always a good idea to have a look into the options of KeePassHttp. Maybe your feature request or problem is still implemented and can be solved by changing the options. Go to the illustrated readme for the KeePassHttp options

Support multiple URLs for one username + password combination

This is natively supported by KeePass with the references feature. You can find an illustrated description in the readme of KeePassHttp.

Disable the system tray notifications for found entries

Open the options of KeePassHttp and disable the first feature.

Change the sort order of entries KeePassHTTP-Connector is displaying

Open the options of KeePassHttp and switch the fifth feature.

6. Important information

  • because Google Chrome does not offer an API to communicate with the built-in password manager KeePassHTTP-Connector needs to implement its own kind of password manager. Please read the known limitations which belongs to that.

  • for security reasons KeePassHTTP-Connector wipes out the temporarily stored credentials from cache every time you switch the tabs. Therefor it requests credentials for the current tab every time you switch on it.

7. Limitations and known problems

7.1 Remember credentials

Google Chrome does not offer an API to communicate with the password manager. Therefore KeePassHTTP-Connector implements its own way of checking for changed credentials.

On the form in which a combination of username + password fields is detected, KeePassHTTP-Connector registers an event which will be called when the form is submitted.

This event checks whether the submitted username and password have changed and shows the remember dialog.

But there exist several problems which we currently cannot overcome and which lead to not recognize the changes:

  1. If the password field is cleared by some JavaScript code which hashes the value for example, KeePassHTTP-Connector can no longer access the value of the password and therefore no remember dialog is shown.
  2. If there are page internal submit events registered on the form which will be triggered before our submit-request (for example: ajax calls), our request is possibly not triggered and no remember dialog will be shown.

Another problem is that KeePassHTTP-Connector cannot clearly differentiate between a successful and failed login attempt.
The remember dialog will also be shown for failed login attempts.

7.2 Auto detection of input fields

7.2.1 Problem

The detection does only detect fields which are visible when this function is called.
It is only one time called automatically: After loading of the page finished.

New input fields which are created with JavaScript or with an AJAX-call cannot be detected, because they get visible after the auto detection was called.

For example an overlay for signin or signup could possibly not auto detected by KeePassHTTP-Connector because either the input fields are created just-in-time or they are hidden to the user while auto detection is running.

7.2.2 Solution

When it did not detect any username + password field combination you can click on the browser icon of KeePassHTTP-Connector and press the button "Redetect credential fields".

You can also focus the visible username field or password field and press Ctrl+Shift+U. This will start a redetection for the focused field, too.

8. Troubleshooting

First: Did you read the section 5. Tips and tricks? Second: Did you checked your KeePassHttp options? Maybe you only have to change the options...

If you open an issue always give us at least the following information:

  1. KeePassHTTP-Connector version
  2. Google Chrome or Firefox version
  3. KeePassHttp version
  4. KeePass version
  5. Pages on which the error occur

8.1 Wrong credentials are filled-in

  1. Search in KeePass for the URL of the page on which the wrong credentials are filled-in.
  2. Check the found entries for the credentials and confirm that the entries are up-to-date.

If this does not solve your problem, please open an issue.

8.2 KeePassHTTP-Connector stopped working

8.2.1 First check the running versions of your software

  1. Check if you are using the latest version of KeePassHTTP-Connector for Chrome or the latest version of KeePassHTTP-Connector for Firefox.
  2. Check if your browser Google Chrome or Firefox is up-to-date
  3. Check if your versions of KeePassXC OR (KeePassHttp + KeePass) are up-to-date

8.2.2 Check the background page console for error messages

  1. Open a tab with URL chrome://extensions and activate the Developer mode to be able to generate the background page:
    extensions developer mode

  2. In the opened window choose the tab Console:
    background page console

8.2.3 Check the inline page console for error messages

In the page on which KeePassHTTP-Connector stopped working please press F12 or do a right-click and choose Inspect Element from the context-menu. Now choose the tab Console to open the console for the inline scripts:

inline page console

9. Security

  • every communication with KeePass and KeePassHttp is encrypted with the symmetric version of AES in CBC-mode.
  • the messages are crypted with a key of the length of 256bit.
  • the communication happens via http://localhost on port 19455 on which KeePassHttp is listening.

The system is only in the moment of connecting a database to KeePassHTTP-Connector vulnerable. At this point KeePassHttp has to transmit the key to KeePassHTTP-Connector which will store it in the secured space of the extension. If someone records this traffic it could be possible to extract the key from it.

Any further communication is encrypted with this key and no longer vulnerable!


This readme was created by Lukas Schulze and last updated in October 2017 by Paul Tansom.