New Landing How can we help? Themeforest Theme Support Dante DOM XSS in functions.js

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #194448
    Jackcoldrick
    Member
    Post count: 84

    Hi Guys,

    I’ve noticed within your ‘functions.js’ file which resides in /themes/dante/js/ that there is a block of code that is vulnerable to DOM XSS. I’m wondering If I remove this code from functions.js will it cause other components within the theme to break ? Is this code really needed?

    // SET DESIRED TAB ON LOAD
       setTimeout(function() {
          if (jQuery('.spb_tabs').length > 0) {                                     
               // Show correct tab on page load
               var url = document.location.toString();
               if (url.match('#') && jQuery('.nav-tabs a[href=#'+url.split('#')[1]+']').length > 0) {
                                  var thisTab = jQuery('.nav-tabs a[href=#'+url.split('#')[1]+']'),
                                  parentTabs = thisTab.parents('.spb_tabs'),
                                   tabHash = url.split('#')[1];
                                                                                        
               jQuery('.nav-tabs a[href=#'+tabHash+']').tab('show');
    }

    Thanks

    #194454
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    This code used for Tab functionality. You can remove it if you dont use tab anywhere.
    Thanks
    Mohammad

    #210828
    Jackcoldrick
    Member
    Post count: 84

    thanks

    #210857
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

    #212018
    Jackcoldrick
    Member
    Post count: 84

    This issue is resolved guys could you please update. many thanks

    #212022
    David Martin – Support
    Moderator
    Post count: 20834

    Sure, marking as resolved.
    -David.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register