Cant remove an unwanted script from website


This is related to my prior post

I have some HTML code on my website that I can not remove and might be malicious and a potential cause of a cross-site scripping XSS issue I have just had. I do not know, as I am waiting to here back from secuirty techs of what caused the cross-site scripping XSS issue
But the timing of the issue is around the time I added the widget.

The HTML code was created via website and creates a widget on my website that was to link to a Telegram channel. But this widget does not link to the channel, it goes to and offers some totally un-related file sharing offer before then re-directing to Telegram offical website not the channel.

Any advise on how to remove this widget would be most appreciated.
I see an addon called: Safe HTML
Developed by JohntheFish

Which might help me find the HTML location , but I am not sure if that will work. Plus due to the issue in my prior post relating to not being able to re-connect to community I can not get the addon.

The HTML code creating the Telegram icon on my home page is:

[<iframe id="webbuttonwidget" class="center" file="webbuttonwidget" src=" darken-3&pulse=false&textcolor=white&shadowval=&textval=join channel" border="1" style="border:20px;height: 125px;z-index:9999;position:fixed;bottom:0;right:0;" width="240px"></iframe>]

Is it possible to remove this HTML from the server I'm running CC5 on? If so any advise on how to do this and risks involved ?

My skill set is limited.

Any help would be appeciated.


1 Attachment

JohntheFish replied on at Permalink Reply

"If you only discovered Safe HTML after already putting a dodgy script into an HTML block and can't get back by reverting the page version, you can use the Safe block template to create an override of the core HTML block view, so making every HTML block on your site use Safe HTML.

Use FTP or your host control panel to copy


This will create an override of the core HTML block view making it 'safe'. You can then edit the afflicted pages and use block design to change problematic HTML block's templates to use the Safe template. Once finished, simply delete /application/blocks/html/view.php and your other HTML blocks will revert to the default."

Once you can edit the page, just delete that problem html block with the iframe