Credentials Saved in Web Browsers

Users save passwords in the web browser's built-in password manager, from which malware or anyone able to run code as the user can recover them.

SeverityMedium
CVSS 3.15.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Open in the calculator
CVSS 4.06.8 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N Open in the calculator
CWECWE-257: Storing Passwords in a Recoverable Format
MITRE ATT&CKT1555.003 Credentials from Web Browsers
CategoryInformation Disclosure

Description

Users save the usernames and passwords they enter into websites and web applications in the web browser's built-in password manager, which fills them in on later visits. Google Chrome, Microsoft Edge and Mozilla Firefox keep saved credentials in files in the user's profile. The files are encrypted, but with keys the browser can use without asking the user for anything, so an attacker who runs code as the user, for example through a malicious attachment or download, or who gains administrative control of the device, can generally extract every saved password in clear text in one step. Information-stealing malware is built to do exactly this. Firefox can add protection with its optional Primary Password, which is not set by default.

The credentials often include access to internal applications, cloud services, network device interfaces and suppliers' portals, as well as personal accounts whose passwords may be reused for corporate ones, so the compromise of a single workstation can lead to access well beyond it. Corporate credentials are often stored alongside personal ones, and where users sign in to the browser with a personal account and turn on synchronisation, saved credentials are copied to that account and to every device signed in to it, so they are also exposed on devices the organisation does not manage.

The weakness is identified during a host review, or after access to a device has been obtained, by examining browser profiles for saved logins, through the browser's own password list or with tools such as LaZagne or SharpChrome, and by reviewing browser policy to see whether saving passwords is permitted.

Remediation

Stop corporate credentials being saved in browsers and give users a managed alternative:

  • Disable the built-in password manager by policy: set PasswordManagerEnabled to disabled for Microsoft Edge and Google Chrome through Group Policy, Intune or the Chrome Enterprise console, and set OfferToSaveLogins and PasswordManagerEnabled to false in Firefox's enterprise policies. Disabling saving does not remove passwords already stored, so have users move them to the approved password manager and delete them from the browser.
  • Prevent synchronisation of corporate browsing data to personal accounts, with the SyncDisabled policy or by restricting browser sign-in to corporate accounts with RestrictSigninToPattern.
  • Provide an enterprise password manager protected by a strong primary password and multifactor authentication, so that users have an approved place to keep the credentials they need.
  • Change the passwords of accounts whose credentials were saved on devices that may have been compromised, starting with administrative and shared accounts, and keep administrative accounts out of everyday browsers altogether.
  • Reduce the number of passwords there are to save by using single sign-on, and require multifactor authentication so that a stolen password alone is not enough.

Confirm the fix by checking the browser's policy page (edge://policy, chrome://policy or about:policies) on a sample of devices and checking that no saved credentials remain in their profiles.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Windows and Linux Hosts Findings

Every Windows and Linux Hosts finding