• Hi
    when accessing a site of my client where the plugin is installed, the Bitdefender antivirus detects this:

    /plugins/social-share-buttons-by-supsystic/src/SocialSharing/Shares/assets/js/share.js?ver=2.

    JS:Trojan.Cryxos.7931

Viewing 1 replies (of 1 total)
  • Plugin Support Support Ole

    (@trsupsys)

    Hi, @webepc
    We will investigate this issue. We do not see any problems in the code of this JS now.

    (function ($) {
        $(document).ready(function () {
            function ssClickHandler(e,clickedBy) {
                var $button = this != document ? $(this) : $(clickedBy),
                    projectId = parseInt($button.data('pid')),
                    networkId = parseInt($button.data('nid')),
                    postId = parseInt($button.data('post-id')),
    				additionalObjectCode = $button.attr('data-plugin-code'),
                    data = {},
                    url = $button.data('url');
    
                if ($button.hasClass('trigger-popup')) {
                    return;
                }
    
                data.action = 'social-sharing-share';
                data.project_id = projectId;
                data.network_id = networkId;
                data.post_id = isNaN(postId) ? null : postId;
    
    			if (additionalObjectCode == 'mbs') {
    				var additionalObjectItemId = parseInt($button.attr('data-plugin-item-id'))
    				,	additionalObjectItemType = $button.attr('data-plugin-item-code');
    				if(!isNaN(additionalObjectItemId)) {
    					data.additional_object_code = additionalObjectCode;
    					data.additional_object_item_id = additionalObjectItemId;
    					data.additional_object_item_type = additionalObjectItemType;
    				}
    			}
    
             if (additionalObjectCode == 'gg') {
                var additionalObjectItemId = parseInt($button.closest('[data-attachment-id]').attr('data-attachment-id'))
    				,	additionalObjectItemType = data.post_id;
    				if(!isNaN(additionalObjectItemId)) {
    					data.additional_object_code = additionalObjectCode;
    					data.additional_object_item_id = additionalObjectItemId;
    					data.additional_object_item_type = additionalObjectItemType;
    				}
             }
    
                $.post(url, data).done(function () {
                    $button.find('.counter').text(function (index, text) {
                        if (isNaN(text)) {
                            return text;
                        }
    
                        return parseInt(text) + 1;
                    });
                });
    
                /** e.preventDefault(); **/
            };
    
            $(document.body).on('click', '.supsystic-social-sharing a.social-sharing-button', ssClickHandler);
            $(document).on('ssSocialClick', ssClickHandler);
        });
    }(jQuery));
Viewing 1 replies (of 1 total)
  • The topic ‘Trojan?’ is closed to new replies.