Skip to content

Module: Detect LastPass

Isaac Powell edited this page Feb 24, 2022 · 7 revisions

Summary

Describe the following things:

  • Objective: This module checks if the LastPass extension is installed and active
  • Date: 2013.Updated 2022
  • Authors: xntrik, DeezyE
  • Browsers: Firefox, Chrome
  • Code: modules/browser/detect_lastpass

Internal Working

The module first generates a hidden <input> field within the page <body>. The hidden <input> field is intended to allow the LastPass extension to add it's unique attribute artifacts within the page even if there would normally be no forms present. The detection of the LastPass artifacts occurs either via the background image added to input fields:

Or via the LastPass iframe

The module will output result to the UI depending on which artifact was found

Firefox Specific Considerations

Firefox requires some user interaction on a page (clicks) in order to allow the browser extension to read updated HTML on the page. So for successful detection of the generated (hidden) input field, there is an additional 5 second timeout which is intended to allow the user to interact with the page thus allowing the LastPass extension to add it's attributes to the <input> field.

Clone this wiki locally