JavaScript Repair

For Speed, Performance & Power in under 2 minutes,
Click here for Free Download of RegCure

  

 
 

 
 
 

JavaScript – a brief description

JavaScript is an object-based, scripting language developed by Netscape and made available with the Netscape browser in December of 1995.  Microsoft created JavaScript for Internet Explorer soon after realizing the potential of JavaScript.  Both are extensions of the international ECMA-262 standard. 

JavaScript interacts with HTML source code so as to transform web pages into dynamic and interactive sites.  Due to the fact that web creators can use it to add flair to web content, it is used throughout the world with millions of server applications and web pages.  The syntax is similar to C++ and Java.  Although Java and JavaScript are both offshoots of the C programming language, there is no relationship between these two.

JavaScript in a web page can enable actions to be performed that are not possible for HTML alone.  In order to do this, embedded JavaScript functions interact with the Document Object Model (DOM) of a web page.  Some examples of this include:

·    Opening and controlling the look, size, and position of new popup windows.

·    Displaying a new image when you scroll over an existing one.

Security Concerns

There have been considerable security issues with JavaScript as it can arbitrarily run code provided by servers.  It is considered an attack vector as hackers can bypass barriers using techniques such as cross-site scripting (XSS).    Java also suffers similar issues but there are typically not as serious due to the use of self-contained security mechanisms known as “sandboxing”.  The kinds of vulnerabilities seen with scripting have been used recently to bring about powerful browser exploits and phishing attacks so as to fraudulently obtain sensitive or confidential information.

One example of an exploit scenario[1] involves a hacker (or malware vendor) creating and sending a URL to direct web traffic to pages that contain JavaScript code.  When the page is viewed, the embedded JavaScript is called into action and downloads an HTML page on the user’s computer.  The HTML page can now be considered a system vulnerability as it can be used to run malicious scripts.  It is difficult to detect when these security breaches occur as they happen behind the scenes with little to no noticeable effect. 

Prevention?

In order to avoid malicious attacks and issues related to system vulnerabilities, HTML special characters would need to be encoded for any data that could be considered a threat.  This would need to occur before the display of the web information and there are several programming languages that provide this encoding which is known as “escaping” or “quoting”.  The downside is that this disables particular functionality for web applications (specifically those for web mail and forums). 

There are applications that strive to encode or remove all HTML that is potentially malicious but, due to the complex nature of this endeavor, it is difficult to know how thorough the process is in catching all the offences.  This is largely due to the fact that the scripts are closely tied into the HTML syntax and considerable interpretation would have to be provided to determine how servers resolve or fix broken HTML.

There are web programs that are available that enable users to disable client-side scripting.  This would prevent falling prey to attacks related to cross-site scripting.  However, some tactics can still be applied to trick users such as loading external content with special tags “<” “>”.  Users can also disable running scripts for particular web sites using their web browser settings.  However, this requires knowing the sites that contain malicious scripting mechanisms beforehand.  Also, some sites do not function properly with these restrictions in place.

Solutions

Reliance on good web programming is a necessity. There is little a user can do to provide protection - the burden of providing safe, online activities typically rests on web developers.  Some of the top web companies such as eBay, Microsoft and Google have had to address scripting vulnerabilities.  Validation of user submitted scripts and fixing cross-site scripting vulnerabilities are solutions needing to be addresses on the server side.

We are still in the early stages of scripting attacks but due to the popularity of this kind of JavaScript functionality and, with malware creators turning to more sophisticated and stealthy tactics, it is likely we will see more issues related to malicious scripting.  Adhering to best practices is highly recommended but cannot, in all situations, provide sufficient protection from malware attacks.  There attacks can be a serious matter with respect to loss of confidential information.

In the event that malware is downloaded to your system, a thorough and effective tool for detection and removal of malicious and infected items is crucial.  We recommend you try XoftSpySE Anti-Spyware for complete removal of malware infections and RegCure Registry Cleaner to clean and optimize the performance of your PC .

 

  Fix JavaScript

For Speed, Performance & Power in under 2 minutes,
Click here for Free Download of RegCure

(Limited time offer)

 
 

Glossary

Scripting language: a simple developer’s programming language which is used to write scripts – a list of commands automatically executed.

ECMA: European Computer Manufacturers Association; an international organization originally established in 1961 for the standardization of computer systems – Computer Electronics and Information Communication Technology or ICT.

Syntax: the set of acceptable terms, order, and punctuation that can be used in programming languages.

Attack vector: the entry point or a means of gaining access to a system; hackers seek out and exploit these system vulnerabilities. 

Cross-site scripting (XSS): a type of vulnerability found in web programs that fall prey to hackers who inject HTML or scripts that other users will browse to. 

Malware: malicious software


[1] Wikipedia: “Cross-site scripting” (http://en.wikipedia.org/wiki/Cross-site_scripting)

 
 

© 2006 Fix-PC-Errors.com  All rights reserved.        Terms of Use         Privacy Policy         Definitions