<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Why Credentials are Shown as Clear Text in a HAR File
Okta Classic Engine
Okta Identity Engine
Administration
Overview

A HAR file, or HTTP Archive file, is a JSON file that contains a log of all HTTP requests and responses that a web browser makes while loading a web page. This can include sensitive information, such as user credentials, cookies, and session tokens.

Credentials can be seen in a HAR file because they are often transmitted in clear text over HTTP. This means that anyone who has access to the HAR file can see the credentials, even if they are encrypted.

Applies To
  • Mainstream IT knowledge 
Cause

Basic authentication protocols, such as HTTP Basic Authentication, are a simple and convenient way to authenticate users, but they are not the most secure. This is because basic authentication protocols send credentials in plain text, meaning that attackers can intercept the network traffic and obtain the user's credentials.

The Okta Browser plugin facilitates single sign-on (SSO) by injecting the user's credentials into web pages automatically. However, since basic authentication does not support encrypted credentials, the Okta Browser plugin also sends credentials in plain text.

To mitigate the security risks associated with basic authentication protocols, it is recommended to use HTTPS to encrypt all traffic between the web browser and the web server and to use a more secure authentication scheme, such as OAuth 2.0 or OpenID Connect, when possible. If basic authentication must be used, it is important to only use it with websites that are trusted.

However, credentials are the least sensitive data displayed in a network trace. To that extent, leverage the session information collected in a successful session to enact requests coming from that user.

Solution
  • Workforce environments: 
A possible suggestion is to disable developer mode for individuals/end users who would not make use of this functionality. 
 
  • CIAM environments: 
Consider changing to a more secure authentication protocol. Please review What is Secure Web Authentication (SWA) for more details.

Recommended content

Loading
Why Credentials are Shown as Clear Text in a HAR File