User information are getting cached on browser
search cancel

User information are getting cached on browser

book

Article ID: 397365

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction

When performing an unsuccessful POST to the out of the box login.fcc, the response is 200 which is allowing user info to be cached when the "Browser back button"  or "Refresh button" are used on browser.

If a form posts sensitive data through a POST request, the server should return 302 object moved response to redirect users to a different page.

This avoids cashing sensitive information.

Environment

Any Supported Siteminder Agent

Resolution

302 response from Siteminder will only be returned upon a successful POST of the creds and successful authentication otherwise it will be 200.

Since the login.fcc is a sample login page, there are couple of options you can do to overcome this:

 

***** 1) To prevent browsers from storing credentials entered into HTML forms, include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).

for example , set the autocomplete as shown below , you need to do it in your login.fcc and login_en-US.fcc if you are using the english language.

      <td ALIGN="LEFT" >
        &nbsp; <input type="text" name="USER"  autocomplete="off" size="30" style="margin-left: 1px">
      </td>

 

***** 2) use a customized login page where credentials are posted via an iframe or JavaScript.  If the credentials are posted via JavaScript sec-fetch-dest becomes empty.  

The credentials are posted here through a child request. 

With this method a refresh on top level page would do a GET call rather than POST, 

What does Sec-Fetch-Dest: empty mean?

When Sec-Fetch-Dest is empty, it typically means the request was made by JavaScript, not for a specific destination like a <script>, <img>, or <iframe>.

Common scenarios where this happens:

A fetch() call in JavaScript:

js
CopyEdit
fetch('/api/data');

  • An XMLHttpRequest
     
  • Service worker requests
     
  • WebSocket upgrades

 

Value Description
document Top-level document navigation
script Request for a JavaScript file
style CSS files
image Image resources like <img>
font Fonts
iframe Inline frame content
empty

Usually JavaScript-initiated request

 
 
 
***** 3) Use onauthReject and set a response to redirect the user to a custom page or to the protected resource again