Cross-site Request Forgery Protection via Time-sensitive Key Validation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for preventing cross-site request forgeries (CSRF) in web applications often result in false positives, disrupting user experience and require manual, operation-by-operation protection, which is slow and error-prone, especially when updating legacy systems.

Innovation Solution

A digital data processing system that generates a time-sensitive CSRF key and checks it with each request, allowing for automatic validation and reducing the need for developers to manually code protection for each operation, by integrating the key validation within the server's application layer and using it to determine the validity of requests before processing.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a web server generates and checks a time-sensitive CSRF key with each request, then CSRF protection reliability is improved, but false positives increase and user experience deteriorates

Engineering Contradiction:
ImproveCSRF protection reliabilityVSAvoiduser experience
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent applies local quality by differentiating CSRF protection requirements across different types of operations. Read-only operations are excluded from CSRF key validation, while only state-changing operations require validation. This selective approach maintains security for critical operations while eliminating false positives that disrupt user experience during normal browsing activities.

Inventive Principle:
Principle #3Local quality

2Manufacturing precision

If developers manually code CSRF protection for each operation in legacy web server applications, then CSRF protection precision is improved, but development time and error rate increase

Engineering Contradiction:
ImproveCSRF protection precisionVSAvoiddevelopment efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent implements self-service by enabling the web server to automatically identify and apply CSRF protection to appropriate operations without requiring manual developer intervention. The server autonomously determines which operations require CSRF validation and applies the protection consistently, eliminating the slow and error-prone manual coding process while maintaining precise security coverage.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11949714B2Cross-site request forgery protection
Publication Date: 2024.04.02 SALESFORCE INC
  • US11949714B2 patent drawing
  • US11949714B2 patent drawing

AI summary

Digital data processing systems of the type in which a server digital data device (“server”) is coupled to a client digital data device (“client”) over a network, e.g., the Internet, include web server software executing within an application layer on the server that responds to a request from the client by (i) validating a key received from the client with that request, (ii) generating a result code indicative of a success of that validation, (iii) initiating processing of the request, including invoking server resource software executing outside the application layer. The server resource software, which checks the result code upon invocation and before performing a protected operation required for processing the request, responds to a result code indicating that the result did not validate by exiting before executing the protected operation.