Application Firewall JSON Response Parsing for CSRF Protection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current data communication networks are vulnerable to attacks such as cross-site request forgery (CSRF) and cross-site scripting (XSS), which can lead to unauthorized access to sensitive information, posing risks of identity theft and malicious system use.

Innovation Solution

Implementing an application firewall on an intermediary device that parses responses for JSON content to identify and block malicious transmissions, using a content-specific parser to determine valid JSON and prevent unauthorized data transmission to clients.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If an application firewall parses all response content to detect JSON attacks, then security reliability is improved, but processing time and computational resources increase

Engineering Contradiction:
Improvesecurity reliabilityVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The response content is segmented into different parts based on content type. The firewall applies full parsing only to JSON content types, while other content types receive different processing treatment. This segmentation allows focused security inspection where needed without unnecessarily processing all content, thus improving security reliability while reducing overall processing time.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The firewall performs partial parsing action by detecting JSON content type and applying parsing only to those specific responses. This partial action approach avoids the excessive processing of all responses, maintaining high security for JSON content while reducing computational overhead and processing time for non-JSON content.

Inventive Principle:
Principle #16Partial or excessive action

2Measurement precision

If an application firewall implements content-specific parsing for JSON detection, then measurement precision of malicious content is improved, but device complexity increases

Engineering Contradiction:
Improvedetection precisionVSAvoidfirewall complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The firewall introduces an intermediary content type detection mechanism that identifies JSON content before applying parsing. This intermediary step acts as a mediator that filters responses and directs only JSON content to the parsing engine, improving detection precision while avoiding the complexity of implementing parsing logic for all content types.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The firewall applies different processing qualities to different content types. JSON content receives high-quality parsing inspection, while other content types receive different processing treatment. This local quality approach ensures precise detection where needed without uniformly increasing complexity across all processing paths.

Inventive Principle:
Principle #3Local quality

3Object-affected harmful factors

If an application firewall blocks all JSON responses, then security protection is improved, but information loss increases

Engineering Contradiction:
Improveattack protectionVSAvoidlegitimate data loss
Core Design Contradiction:
Object-affected harmful factorsVSLoss of information

Solution Approach 1:

The firewall converts the potential harm of blocking all JSON responses by implementing selective blocking. It uses content-specific parsing to identify malicious JSON content while allowing legitimate JSON responses to pass through. This approach transforms the harmful effect of over-blocking into a beneficial selective protection mechanism that maintains security while preserving legitimate information flow.

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

Data Source

PatentUS9094435B2Systems and methods for prevention of JSON attacks
Publication Date: 2015.07.28 CITRIX SYSTEMS INC
  • US9094435B2 patent drawing
  • US9094435B2 patent drawing
  • US9094435B2 patent drawing

AI summary

Described herein is a method and system for prevention of personal computing attacks, such as JavaScript Objection Notation (JSON) attacks. An intermediary device is deployed between a plurality of clients and servers. A firewall executes on the intermediary device. A client sends a request to the server and the server sends a response to the request. The intermediary device intercepts the response and identifies that the response may contain possibly harmful content. The application firewall parses the content of the response and determines whether it contains any harmful content. If it does, the application firewall blocks the response from being sent to its destination. Additionally, the method and system can provide other security checks, such as content hijacking protection and data validation.