Client-Side URL Validation for XSS Attack Prevention

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Cross-site scripting (XSS) attacks occur when malicious scripting code is embedded within URLs, allowing hackers to steal user cookies and sensitive information, leading to potential theft and fraud, as servers fail to recognize and filter out such scripts.

Innovation Solution

A method and system where validation software on a client computer system analyzes URLs for scripting code, inhibiting access if scripting code is detected, using techniques such as keyword analysis, URI escape sequence detection, and scripting language element identification, and providing user options to override blocked access.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the server processes and returns URLs without filtering, then the server response time is fast and the system is simple, but the system becomes vulnerable to XSS attacks and user data security is compromised

Engineering Contradiction:
ImprovesecurityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by analyzing and validating URLs before they are processed by the server. The client-side validation software checks URLs for malicious scripting code before submission, preventing harmful content from reaching the server in the first place. This proactive approach secures the system without requiring complex server-side filtering mechanisms.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary validation layer between the user and the server. This intermediate software component analyzes URLs for malicious content, escaping or blocking harmful scripting code while allowing legitimate URLs to pass through. This mediator protects both client and server without requiring fundamental changes to either system's architecture.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the server filters all URLs for malicious scripts, then security is improved, but the processing time increases and system complexity increases

Engineering Contradiction:
ImprovesecurityVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent shifts the filtering action to occur before URL submission to the server. Client-side validation software performs the security check locally, eliminating the need for time-consuming server-side scanning of every URL. This preliminary validation maintains security while preserving fast server response times for legitimate requests.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent extracts the security validation function from the server and places it on the client side. By removing the filtering burden from the server, the system achieves both security and performance - the client handles the time-consuming analysis locally, while the server focuses only on processing legitimate requests efficiently.

Inventive Principle:
Principle #2Taking out (Extraction)

3Adaptability or versatility

If the client application executes scripts from URLs, then the client can interact with legitimate web content, but the client becomes vulnerable to running malicious scripts

Engineering Contradiction:
Improveclient functionalityVSAvoidmalicious script execution
Core Design Contradiction:
Adaptability or versatilityVSObject-affected harmful factors

Solution Approach 1:

The patent converts the potentially harmful ability to execute scripts into a benefit by using the same script execution capability for both legitimate and malicious purposes. The validation software analyzes URLs for malicious content and either blocks or escapes harmful scripts, while still allowing legitimate scripts to execute. This approach maintains client functionality while neutralizing the security threat.

Inventive Principle:
Principle #22Blessing in disguise (Convert harm into benefit)

Solution Approach 2:

The patent introduces an intermediary validation layer that sits between the client and the URL content. This intermediate software analyzes URLs, identifies malicious scripting code, and either blocks it or escapes special characters to prevent execution. Legitimate scripts pass through unchanged, maintaining full client functionality while preventing malicious code from reaching the client application.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS8112799B1Method, system, and computer program product for avoiding cross-site scripting attacks
Publication Date: 2012.02.07 GEN DIGITAL INC
  • US8112799B1 patent drawing
  • US8112799B1 patent drawing
  • US8112799B1 patent drawing

AI summary

A system and method for protecting a user against a cross-site scripting attack or other network attack that relies on scripting code embedded within a uniform resource locator (URL) are described. Validation software executing on a client computer system may intercept a URL in response to a user providing the URL to a web browser or other client application. The validation software may analyze the URL to determine whether the URL includes scripting code. If the URL includes scripting code then the validation software may block the client application from accessing the URL or may otherwise inhibit access to the URL.