Browser Extension CSRF Defense via Local Authorization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing defenses against cross-site request forgery (CSRF) suffer from token leakage, compatibility issues with web frameworks, and varying accuracy in client-side heuristics, leading to false positives and negatives.

Innovation Solution

A computer security method that involves detecting requests before transmission and enforcing Authorization Acceptance Criteria (AAC) configured by the web server, which includes security requirements such as cookie management, request source validation, and CSRF security elements to ensure only authorized requests are processed.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If server-side security tokens are embedded in web pages, then CSRF protection is provided, but token leakage and compatibility issues with web frameworks occur

Engineering Contradiction:
ImproveCSRF protectionVSAvoidtoken management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

A browser extension acts as an intermediary between the user's browser and web servers. The extension intercepts outgoing requests, validates security tokens locally, and determines whether to allow or block requests based on predefined security policies, eliminating the need for complex server-side token management while maintaining strong CSRF protection

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system enables self-service security validation by storing security tokens locally in the browser and using browser-based heuristics to automatically determine request safety. This shifts the security validation burden from the server to the client, simplifying server-side implementation while maintaining protection

Inventive Principle:
Principle #25Self-service

2Reliability

If client-side browser plugins with heuristics are used, then CSRF detection is improved, but false positives and false negatives increase

Engineering Contradiction:
ImproveCSRF detection accuracyVSAvoidrequest safety determination accuracy
Core Design Contradiction:
ReliabilityVSMeasurement precision

Solution Approach 1:

Security tokens and authorization acceptance criteria are pre-configured and stored in the browser before any requests are made. The browser extension uses these pre-stored security parameters to validate requests, improving detection accuracy by having security information ready in advance rather than determining safety dynamically without context

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms where the browser extension learns from user decisions about blocked or allowed requests. User corrections to false positives or negatives feed back into the security policy configuration, continuously improving the accuracy of request safety determination over time

Inventive Principle:
Principle #23Feedback

3Reliability

If traditional server-side token validation is implemented, then security is improved, but ease of operation and compatibility across web frameworks deteriorate

Engineering Contradiction:
ImprovesecurityVSAvoidconfiguration ease
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The browser extension automatically manages security tokens, stores authorization acceptance criteria locally, and performs validation without requiring server-side configuration changes. This self-service approach maintains strong security while eliminating the operational burden of configuring and maintaining security tokens across different web frameworks and pages

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11363070B2Preventing cross-site request forgery
Publication Date: 2022.06.14 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11363070B2 patent drawing
  • US11363070B2 patent drawing
  • US11363070B2 patent drawing

AI summary

A computer security method including detecting a request, made by a computer software application, prior to transmission of the request to a recipient, accessing a predefined security requirement associated with the recipient, determining whether the predefined security requirement is met, and preventing at least a portion of the request from being transmitted to the recipient if the predefined security requirement is not met.