CWE-293: Using Referer Field for Authentication

VariantDraftExploit Likelihood: High

The referer field in HTTP requests can be easily modified and, as such, is not a valid means of message integrity checking.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-293: Using Referer Field for Authentication?+

CWE-293: Using Referer Field for Authentication is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The referer field in HTTP requests can be easily modified and, as such, is not a valid means of message integrity checking.

What are the security consequences of Using Referer Field for Authentication?+

If exploited, CWE-293 (Using Referer Field for Authentication) it can compromise Access Control, leading to outcomes such as Gain Privileges or Assume Identity.

How do you prevent or mitigate Using Referer Field for Authentication?+

Recommended mitigations for CWE-293 include: In order to usefully check if a given action is authorized, some means of strong authentication and method protection must be used. Use other means of authorization that cannot be simply spoofed. Possibilities include a username/password or certificate.

Which programming languages are affected by Using Referer Field for Authentication?+

CWE-293 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-293 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More