Archived CMSimple Support Forum

The Old CMSimple User Community
It is currently Fri Jul 30, 2010 2:53 am

This archived CMSimple Support Forum will be locked primo June 2008. Users with a commercial licence are advised to register and use the new Official Support Forum at CMSimple.com instead. A community driven forum with free registration is found at cmsimpleforum.com.

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 
Author Message
 Post subject: Auto removal of malicious N.I.S. Code?
PostPosted: Wed Sep 28, 2005 10:44 am 
Offline

Joined: Sun Oct 17, 2004 9:47 pm
Posts: 2505
As so many users of cmsimple use Norton Internet Secruity and experience the "Stack Overflow" that is caused by javascript inserted from N.I.S., would it not be an idea to auto-remove that code on save?

(The newest Version of Zone Alarm Pro does also cause Problems)

If not, Peter, you should make it very clear that cmsimple is not compatible with Norton Internet Secruity. Best thing would be to write it in big letters next to the download links!


Top
 Profile  
 
 Post subject: Re: Auto removal of malicious N.I.S. Code?
PostPosted: Wed Sep 28, 2005 12:15 pm 
Offline

Joined: Thu Jun 12, 2003 7:05 am
Posts: 729
Jens wrote:
(The newest Version of Zone Alarm Pro does also cause Problems)


I don't have problems or I don't see them. What kind of problems do you mean, Jens?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 12:28 pm 
Offline

Joined: Sun Oct 17, 2004 9:47 pm
Posts: 2505
it insertes some javascript after some links, and adds to iframes some "destroy code"


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 2:09 pm 
Offline

Joined: Thu Jun 12, 2003 7:05 am
Posts: 729
Jens wrote:
it insertes some javascript after some links, and adds to iframes some "destroy code"

Ah, just when editing? If so, with all editors or only under some circumstances?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 10:18 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Are you sure there is only one pattern to match - maybe there are different versions?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 10:34 pm 
Offline

Joined: Sun Oct 17, 2004 9:47 pm
Posts: 2505
All Sites i have seen had the same Code, but there could be others. I will collect these Codes and send them to you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 29, 2005 7:05 pm 
Offline

Joined: Wed Dec 31, 2003 1:07 pm
Posts: 2494
Location: planet earth
-
I think Norton ads the code AFTER it was delivered by the server, so you can't remove it.

djot
-


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 8:20 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
djot - I don't think you are right - it is inserted by the client, as far as I know ... or am I mistaken?

Are anybody having it installed and wanting to do some testing for me?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 2:27 pm 
Offline

Joined: Wed Dec 31, 2003 1:07 pm
Posts: 2494
Location: planet earth
-
I said, the CMSimple page is delivered by the server already, and then Norton ads the code on clientside. So you can't write servercode to remove the Norton code.

djot
-


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 2:31 pm 
Offline

Joined: Sun Oct 17, 2004 9:47 pm
Posts: 2505
Sure the code is inserted on the client, but when CMSimple rewrites to the Content.htm, it could filter out that code.

Thats how it gets into the pages, it happens when using the Editor on a PC where NIS is installed.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 4:52 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
$c[$s]=preg_replace("/<h[1-3][^>]*>(\&nbsp;| )?<\/h[1-3]>/i","",stripslashes($text));

in cms.php should be changed to something like

$c[$s]=preg_replace("/[NIS PATTERN]/i","",preg_replace("/<h[1-3][^>]*>(\&nbsp;| )?<\/h[1-3]>/i","",stripslashes($text)));


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 7:18 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
This seems to work:

Code:
$c[$s]=preg_replace("/<script.*?SymWinOpen.*?script>/si","",preg_replace("/<h[1-3][^>]*>(\&nbsp;| )?<\/h[1-3]>/i","",stripslashes($text)));


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 8:38 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Well, seems like there is other codes inserted by other versions - this was a quick fix inserted in the template to remove it from output:

Code:
<?php echo preg_replace("/<script.*?SymRealWinOpen.*?script>/si","",content());?>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group