cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14202
Views
26
Helpful
31
Replies

Chrome 60 won't login to ESA Web UI

tsilveruits
Level 1
Level 1

After upgrading to Chrome 60, I cannot login to the ESA web UI. Entering the password and pressing Enter or clicking Login, the request is not submitted. I have tried Chromium 60 as well. Just sharing so that others can be aware (hopefully) before they upgrade.

1 Accepted Solution

Accepted Solutions

Libin Varghese
Cisco Employee
Cisco Employee

This was brought to our notice earlier today and we are in the process of getting that investigated.

Thank you for sharing.

- LIbin V

View solution in original post

31 Replies 31

Libin Varghese
Cisco Employee
Cisco Employee

This was brought to our notice earlier today and we are in the process of getting that investigated.

Thank you for sharing.

- LIbin V

dominik.kaeding
Level 1
Level 1

Are there any news on this topic?

A defect was filed with Chrome and we are currently tracking the below link:

https://bugs.chromium.org/p/chromium/issues/detail?id=749680

- Libin V

Thanks for the update Libin.

Please do keep us posted on any development.

Sharing the defects that have been filed to track and investigate further into the issue.

ESA - https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvf51219/?reffering_site=dumpcr
SMA - https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvf51283/?reffering_site=dumpcr
WSA - https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvf51310/?reffering_site=dumpcr

A workaround is now available.

https://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/211583-Cisco-ESA-WSA-SMA-Login-Workaround.html

- Libin V

I tried the workaround for Chrome and it did allow me to login, however once the page loads it clears the webgui and replaces it with code.  The top of the code shows 

              var JSON = YAHOO.lang.JSON;
        
    var current_screen_name = 'mytasks_javascript_js';

I'm not sure what the relationship with Yahoo is in this case.

I did these steps:

  1. Install the Tampermonkey Extension
  2. Use this link to install the workaround: Cisco_ESA_SMA_XHR_fix.user.js

keithsauer507  ,

I'd check your Chrome extensions or toolbars for Yahoo and disable it if you find one.

(I have a Yahoo email but it is insidious about weaseling its way onto places it doesn't need to be.)

Thanks for that tidbit, but chrome://extentions did not show anything yahoo.  For the heck of it I reset chrome to default and only enabled a few extensions:

Adblock Plus
Go Back with Backspace
Google Docs
Google Docs Offline
Google Sheets
Google Slides
LastPass
Secret Server Clipboard Utility
Secret Server Login Helper
Tampermonkey

I had some other extentions for things like amazon and accuweather, but I did not re-enable them after the reset.  The strange code page still appears.  This does not occur with Firefox or IE, so its not a showstopper, I can just use Firefox to manage WSA and ESA.  I'll try again on another computer just to make sure nothing funny got on here.

The code that comes up is as follows (I did find and replace on our domain name and changed it to "companyname")

var JSON = YAHOO.lang.JSON;

var current_screen_name = 'mytasks_javascript_js';
var current_screen_url = 'https://webfilter.companyname.com:8443/mytasks_javascript_js';
var current_screen_parms = '%7B%7D';
var tasks_lst = [{"url": "https://webfilter.companyname.com:8443/monitor/overview", "text": "Overview", "screen": "monitor.reportmap.wsa_monitor_overview"}];
var my_tasks_list = {};
for (var i=0; i < tasks_lst.length; i++) {
var item_cfg = tasks_lst[i];
my_tasks_list[item_cfg['url']] = item_cfg;
}

function init_my_tasks(modulename, can_add_my_task, add_fav){
var my_tasks_submenu = get_my_tasks_submenu();
var menu_groups = my_tasks_submenu.getItemGroups(),
gl = menu_groups.length;
var add_my_task_item = menu_groups[0][0],
view_my_tasks_item = menu_groups[0][1],
my_tasks_list_group = menu_groups[1],
current_page_screen = current_screen_name,
disable_add_menu_item = false,
item_to_mark;
if(add_fav || (!(can_add_my_task))){
disable_add_menu_item = true;
}
for(var i=0; i<tasks_lst.length; i++){
var item_cfg = tasks_lst[i];
if(item_cfg.url == current_screen_url){
item_cfg.classname = 'current-screen';
disable_add_menu_item = true;
}
my_tasks_submenu.insertItem(item_cfg, i, gl-1);
}
if(tasks_lst.length > 0){
my_tasks_submenu.removeItem(tasks_lst.length, gl-1);
}

if (disable_add_menu_item) {
my_tasks_submenu.getItem(0).cfg.setProperty('classname',
'myTasksDisabledItem');
my_tasks_submenu.getItem(0).cfg.setProperty('disabled', true);
} else {
var form = getObj('my_tasks_form');
if (form){
form.parms.value = unescape(current_screen_parms);
form.screen.value = current_screen_name;
}
}
}

function get_my_tasks_submenu() {
if(!help_bar_menu.widget){
console.error('Menu not initialized: ', help_bar_menu);
return;
}
var my_tasks_submenu,
submenus = help_bar_menu.widget.getSubmenus();
for(var i=0; i<submenus.length; i++) {
if(submenus[i].parent.id == 'my_tasks_submenu') {
my_tasks_submenu = submenus[i];
break;
}
}
var groups = my_tasks_submenu.getItemGroups();
if(groups.length == 0){
my_tasks_submenu._onBeforeShow();
}
return my_tasks_submenu;
}


safeOnLoad(function(){
var interval = 1000;
interval_val = setInterval(function(){
get_current_url();}, interval);
});
var my_tasks_dialog;
function display_add_dialog_script(modulename){
var dialog_container =
YAHOO.util.Selector.query('#add_to_my_tasks_dialog', '', true);
YAHOO.util.Dom.setStyle(dialog_container, 'display', '');
my_tasks_dialog = new YAHOO.widget.Dialog('add_to_my_tasks_dialog',
{width: '600px',
fixedcenter: true,
modal: true,
visible: false,
close: false});

on_dialog_show = function(){
var form = document.forms['my_tasks_form'];
var task_name = getObj('task_name');
YAHOO.webui.AJAXValidator.clearFieldError(task_name)
var err_screen_obj = getObj('error_area_valid_screen_parms');
if(err_screen_obj ) {
err_screen_obj.style.display = 'none';
err_screen_obj.innerHTML = '';
}
if(modulename != 'my_favorites'){
var custom_task_name = '';
var page_title = YAHOO.util.Selector.query(
'h1#page_title, td#report_title h1', '', true);
if(page_title){
var title = '';
if (custom_task_name) {
title = custom_task_name;
} else {
title = page_title.textContent || page_title.innerText ||
page_title.innerHTML;
}
form.elements['task_name'].value = YAHOO.lang.trim(title);
}
}else{
var screen = form.elements['screen'];
if(screen.type == 'select-one'){
var option = screen.options[screen.selectedIndex];
var task_name = option.label || option.text;
form.elements['task_name'].value = task_name;
form.elements['description'].value = '';
}
}
}
my_tasks_dialog.beforeShowEvent.subscribe(on_dialog_show, my_tasks_dialog, true);

if(modulename != 'my_favorites'){
var my_buttons = [
{ text: 'Add', handler: doAjaxAddMyTask, isDefault: true },
{ text: 'Add and View All My Favorites', handler: doAddMyTask },
{ text: 'Cancel', handler: doCancelAddMyTask }
];
}else{
var my_buttons = [
{ text: 'Add', handler: doAjaxAddMyTask, isDefault: true },
{ text: 'Cancel', handler: doCancelAddMyTask }
];
}
my_tasks_dialog.cfg.queueProperty("buttons", my_buttons);
my_tasks_dialog.render();
YAHOO.util.Event.on("task_name", "keydown", function(e) {
if (YAHOO.util.Event.getCharCode(e) == 13) {
//Prevent the default browser behavior which submits
//single text box forms. Do javascript handler
//Only for add form (not edit)
if (typeof(document.forms['my_tasks_form']) != 'undefined'){
YAHOO.util.Event.preventDefault(e);
doAjaxAddMyTask()
}
}
});
}


function doCancelAddMyTask() {
this.cancel();
}


function my_tasks_connect(form, action, callback){
form.elements['action'].value = action;
YAHOO.util.Connect.setForm(form);
YAHOO.util.Connect.asyncRequest('POST', "https://webfilter.companyname.com:8443/options/my_favorites", callback, null);
}

function doAddMyTask() {

var dialog = this;
var callback = {
success: function(o) {
if (handleAddTaskSuccess(o)) {
dialog.hide();
window.location.href = "https://webfilter.companyname.com:8443/options/my_favorites";
}
}
};
my_tasks_connect(this.form, 'AjaxAdd', callback);
}

var Screen_handle = function(o) {
var contentTypeHeader = o.getResponseHeader['Content-Type'];
if(contentTypeHeader != 'application/json') {
window.location = 'https://webfilter.companyname.com:8443/mytasks_javascript_js';
}
else {
if(o.responseText != undefined) {
var response_data = YAHOO.lang.JSON.parse(o.responseText);
json_obj = response_data;
var modulename = json_obj['module_name']
var pagename = json_obj['page_name']
var is_license = json_obj['license_key']
var is_logoutShown = json_obj['login_key']
var add_fav = json_obj['is_page_added']
var bool_val = json_obj['bool_val']
var can_add_my_task = ((!(pagename == 'my_favorites')) && (!(is_license)) && is_logoutShown && bool_val)
init_my_tasks(pagename, can_add_my_task, add_fav);
set_modulename(modulename, pagename);
if (can_add_my_task || pagename == 'my_favorites'){
display_add_dialog_script(pagename);
}
}
}
}

var check_callback = {
success:Screen_handle,
failure:null,
argument: {}
};


function my_tasks_get_url(form, check_callback){
this.url = window.location.href;
var current_url = this.url;
var res = current_url.split('?');
if(res){
var url_without_params = res[0];
}else{
var url_without_params = current_url;
}
var form = document.forms['my_tasks_form'];
form.elements['urldata'].value = url_without_params;
form.elements['action'].value = 'GetMapName';
YAHOO.util.Connect.setForm(form);
var sUrl = "https://webfilter.companyname.com:8443/mytasks_javascript_js";
try {
if (!request || (request && !YAHOO.util.Connect.isCallInProgress(request))){
request = YAHOO.util.Connect.asyncRequest('GET', sUrl, check_callback);
clearInterval(interval_val);
}
} catch (exception) {
// expected
}

}


function get_current_url() {
var form = document.forms['my_tasks_form']
my_tasks_get_url(form, check_callback);

}

function set_modulename(modulename, pagename){
var form = document.forms['my_tasks_form']
form.elements['screen'].value = modulename;
form.elements['urldata'].value = pagename;
}


function doAjaxAddMyTask() {
var callback = {success: function(o){
if (handleAddTaskSuccess(o)) {
my_tasks_dialog.hide();
}
}};
var form = document.forms['my_tasks_form']
my_tasks_connect(form, 'AjaxAdd', callback);
}

function handleAddTaskSuccess(o) {
var content_type = o.getResponseHeader['Content-Type'];
var form = document.forms['my_tasks_form'];
var url_data = form.elements['urldata'];
var modulename = url_data.value;

if(content_type.indexOf('application/json') == -1) {
doClickAction(document.forms['my_tasks_form'], 'Add');
} else {
var my_tasks_submenu = get_my_tasks_submenu();
if(my_tasks_submenu){
if(o.responseText !== undefined){
var o = YAHOO.lang.JSON.parse(o.responseText);
if(!o.errors){
var task_name = o.task_name;
var task_url = o.task_url;
var groups = my_tasks_submenu.getItemGroups(),
gl = groups.length,
remove_last_item = false;
if(groups[gl-1].length == 1 && groups[gl-1][0].id == 'no_tasks'){
remove_last_item = true;
}
var new_item = my_tasks_submenu.insertItem({text: task_name,
url: task_url}, 0, gl-1);
if (modulename != 'my_favorites'){
new_item.cfg.setProperty('classname', 'current-screen');
}
my_tasks_submenu.getItem(0).cfg.setProperty('classname',
'myTasksDisabledItem');
my_tasks_submenu.getItem(0).cfg.setProperty('disabled', true);
if(remove_last_item){
my_tasks_submenu.removeItem(1, gl-1);
}
setInfo('Added this page successfully to \&quot;My Favorites\&quot; list.');
if (modulename == 'my_favorites'){
add_new_task_row(o);
}
return true;
} else {
o.errors['__custom_set_error_msg__'] = '';
YAHOO.webui.AJAXValidator.form = document.forms['my_tasks_form'];
YAHOO.webui.AJAXValidator.displayErrors(o.errors, o.escaped_errors)
return false;
}
}
}
}
}

Hello,

The :8443 in the link makes me think that this is for a WSA, is that correct? If so, the workaround works for the ESA/SMA only and not the WSA. The WSA introduces separate code which we've not found a complete workaround for yet.

Thanks!

-Dennis M.

Yes WSA.  Interesting because the script allows me to log in (without it, it just sits there).  The odd thing about it is once its logged in and the page finally loads, it changes to just that code.

Hi Keith,

 

did u find any solution to this for WSA. i am getting same issue for WSA and after using ESA workaroung i m able to login but it when i click on any tab it give a script.

 

Thanks 

Hello Dennis,

 

is there any workaround for WSA. i am getting the same issue. i used ESA workaround for WSA and after adding extension to chrome it let me login but when i clicked on any tab in WSA Dashboard it redirect to a script.

 

Thanks

Hello Dennis,

 

is there any workaround for WSA. i am getting the same issue. i used ESA workaround for WSA and after adding extension to chrome it let me login but when i clicked on any tab in WSA Dashboard it redirect to a script.

 

Thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: