Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...A Bug Mayhaps? JS files prepended with ???A Bug Mayhaps? JS files prepended with ???
Previous
 
Next
New Post
6/14/2012 1:52 PM
 

Hi,

I ran into in issue with DNN that broke a lot of the JS UI/functionality stuff. I'm not sure what happened, if I should report it as a bug or what to do from here - so here goes.

I had been editing the content of a module, got distracted and left it hanging without submitting changes. When I came back and wanted to submit, I had been auto logged off in the meantime. This resulted in a forward to the login page, I logged in, and voila.....the site was broken!!!

Great...I checked the content entries manually in the DB to check for corrupted stuff or anything that would make sense - nothing. I changed jQuery settings to use hosted jQuery versions 1.7.1/jquery.min.js and 1.8.18/jquery-ui.min.js respectively - nothing. I then inspected the page using Chromes Inspect Element and noticed a couple of errors on the site. There were 5 syntax errors in some JS files, something about "dnnconfirm not 'something something' " and a "Refused to display document because display forbidden by X-Frame-Options."

The 5 JS files being:

  1. /Portals/_default/Skins/DarkKnight/DNNMega/jquery.dnnmega.debug.js
  2. /Resources/ControlPanel/ControlPanel.debug.js
  3. /Resources/Search/Search.js
  4. /js/dnn.modalpopup.js
  5. /js/dnn.jquery.js

I opened the files and noticed that all of them started with 3 question marks - ???

And I was like "Hmm, wtf?". Well, deleted the question marks, uploaded the files and refreshed the site - everything was now working. I've no idea what happened, but somehow those js files had ??? prepended, which caused the shite to blow up in my face. A bug, coincidence, server error, hax attax by js midgets, or what have you??? Who knows! Just thought I should share with you guys!

DNN Setup Details:

  • DotNetNuke Community Edition
  • Version 06.02.00 (1610)
  • .NET 3.5
  • Fresh install (Typical) - not upgrade
  • Using the DarkKnight DNNMega skin thingymabob

Btw - The "Refused to display document because display forbidden by X-Frame-Options." error is still there, I have no iFrames or embedded stuff other than the standard DNN setup pages on my site. I'm not sure if this error existed before the crash or came as a result of it!

Regards
Jones

 
New Post
7/8/2012 1:15 PM
 

Hi again,

An update to this issue:

The problem persists. I think it has something to do with the js files being caught as trojans by antivirus software. I had extracted my backup and as I was just about to grab the backup files and deploy them to the server, they disappeared. My antivirus then popped up with some warnings, and the log showed that the files had been quarantined.

System: Win 7 Pro with Microsoft Security Essentials

The files are treated as containing the following trojans:
Trojan:JS/BlacoleRef.BG
Trojan:JS/BlacoleRef.W

What gives......?? Anyone?

Regards
Jones

 
New Post
7/9/2012 4:49 AM
 

Hi,

Another update! I figured out what caused the problem. It is the JS.Runfore virus that have infected my host. The virus changes all the .js files and tries to access a .ru website similar to this - wakvnkyzkyietkdr.ru/runforestrun?sid=botnet2

Please refer to this post for more info about JS.Runfore infected websites.

Regards
Jones

 
New Post
7/9/2012 6:18 AM
 

Hello Jones,

I examined the .js file in my infected system and noticed the 3 question marks. I don't think that removing the question marks fixes the problem because (in my case) code was appended at the bottom of the files. This code starts with a comment (/*km0ae9gr6m*/try{q=document.createElement("p");q.appendChild(q+"");}catch(qw){h=-012/5;try{bcsd=prototype-2;}catch(bawg){ss ....) followed by binary data.

To fix the problem I restored the original files from the installation files.

I found a few more infected files, so maybe you could check the as well:

jquery.cycle.min.js
ControlPanel.debug.js
initWidgets.js
StandardMenu.js

After I restored the original files I have changed my FTP account, the site seems to work again.

Good luck
Jos

 
New Post
7/12/2012 6:21 AM
 

Hi Jos,

Exactly - I recovered my site the same way you did. Overwriting the files (including the extra js files you mentioned) with the original files from the installation files. To be safe I actually uploaded all original js files.

Due to this infection being caused by a vulnerability in Plesk, I also changed FTP accounts on all my domains. I was told by my host that all email and database accounts should also have their passwords reset. I had lost the connection to one of my DB's due to a password change, wonder if they have grabbed all my data from that DB as well!

Recovering the infected sites in this way, have only temporary effect, unless the host patches their vulnerable systems.

Read more about removing the virus.
Read more about the effects of the virus.
Read more about patching Parallels Plesk Panel.
Read more about other DNN users dealings with the virus.

Regards
Jones

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...A Bug Mayhaps? JS files prepended with ???A Bug Mayhaps? JS files prepended with ???


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out