The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-7070

CVE-2020-7070: PHP Cookie Authentication Bypass Flaw

CVE-2020-7070 is an authentication bypass vulnerability in PHP that allows attackers to forge secure cookies through URL-decoding manipulation. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-7070 Overview

CVE-2020-7070 is a cookie prefix confusion vulnerability in PHP that affects how HTTP cookie values are processed. When PHP receives incoming HTTP cookie values, cookie names undergo URL-decoding, which can lead to security cookie prefix confusion. This enables attackers to forge cookies that are supposed to be secure by exploiting the decoding behavior, potentially bypassing security mechanisms designed to protect cookies with special prefixes like __Host and __Secure.

Critical Impact

Attackers can forge supposedly secure cookies by exploiting URL-decoding behavior, potentially bypassing cookie security mechanisms and impersonating legitimate secure cookie prefixes.

Affected Products

  • PHP versions 7.2.x below 7.2.34
  • PHP versions 7.3.x below 7.3.23
  • PHP versions 7.4.x below 7.4.11
  • Fedora 31, 32, 33
  • Debian Linux 9.0, 10.0
  • openSUSE Leap 15.1, 15.2
  • Ubuntu Linux 12.04, 14.04 ESM, 16.04 LTS, 18.04 LTS, 20.04 LTS
  • NetApp Clustered Data ONTAP
  • Tenable Tenable.sc

Discovery Timeline

  • 2020-10-02 - CVE-2020-7070 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-7070

Vulnerability Analysis

This vulnerability stems from PHP's handling of HTTP cookie names during request processing. Cookie prefixes such as __Host- and __Secure- are security mechanisms defined in RFC 6265bis that provide enhanced cookie security guarantees. The __Host- prefix requires that cookies be sent only over HTTPS, cannot include a Domain attribute, and must have Path set to /. The __Secure- prefix requires HTTPS transmission.

The flaw occurs because PHP URL-decodes cookie names before processing them. An attacker can craft a cookie with an encoded name (e.g., %5F%5FHost- which decodes to __Host-) that bypasses frontend security checks but gets decoded by PHP to match the protected prefix pattern. This creates a mismatch between how different layers of the web stack interpret cookie names, enabling cookie forgery attacks.

This vulnerability is related to CVE-2020-8184, which addresses a similar issue in the Rack framework for Ruby applications, indicating this is a cross-platform concern in web application security.

Root Cause

The root cause lies in improper input validation (CWE-20) and reliance on cookies without validation and integrity checking (CWE-565). PHP performs URL-decoding on cookie names as part of its request parsing logic, but security checks for cookie prefixes may occur before this decoding step in upstream components like web servers or reverse proxies. This inconsistent decoding sequence allows attackers to bypass cookie prefix security mechanisms by submitting URL-encoded cookie names that decode to protected prefixes after passing through initial security checks.

Attack Vector

The attack is network-based and requires no privileges or user interaction. An attacker can exploit this vulnerability by sending malicious HTTP requests containing cookies with URL-encoded names that decode to security-sensitive prefixes. For example:

  1. The attacker crafts a cookie with a URL-encoded name like %5F%5FHost-session (which decodes to __Host-session)
  2. Upstream security components (load balancers, WAFs) may not recognize this as a protected cookie name
  3. PHP decodes the cookie name during request processing
  4. The application treats the cookie as if it has the __Host- security prefix
  5. This allows the attacker to forge cookies that should only be settable under strict security conditions

The attack enables an adversary to potentially bypass authentication mechanisms, session management controls, or other security features that rely on cookie prefix protections.

Detection Methods for CVE-2020-7070

Indicators of Compromise

  • Presence of URL-encoded cookie names in HTTP request logs (e.g., %5F%5F patterns that decode to underscores)
  • Unexpected cookie values for __Host- or __Secure- prefixed cookies
  • Session anomalies or authentication bypasses without corresponding legitimate user activity
  • HTTP requests containing cookies with encoded special characters in cookie names

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block cookies with URL-encoded prefixes that could decode to __Host- or __Secure-
  • Monitor PHP application logs for unusual session behavior or authentication anomalies
  • Deploy network intrusion detection signatures to identify HTTP requests with suspiciously encoded cookie names
  • Perform regular security scanning to identify vulnerable PHP versions in your infrastructure

Monitoring Recommendations

  • Enable detailed HTTP request logging including full cookie headers to capture potential exploitation attempts
  • Configure alerting for authentication or session-related errors that may indicate cookie forgery attempts
  • Monitor for PHP version information in your asset inventory to ensure vulnerable installations are identified
  • Review web server access logs for patterns of encoded cookie names in incoming requests

How to Mitigate CVE-2020-7070

Immediate Actions Required

  • Upgrade PHP to version 7.2.34 or later, 7.3.23 or later, or 7.4.11 or later immediately
  • Review and apply security patches from your Linux distribution vendor (Debian, Ubuntu, Fedora, openSUSE)
  • Audit applications for reliance on cookie prefix security mechanisms and implement additional validation
  • Deploy WAF rules to block requests with URL-encoded cookie name prefixes as a defense-in-depth measure

Patch Information

PHP has released patched versions that address this cookie prefix confusion vulnerability. Organizations should upgrade to the following minimum versions:

  • PHP 7.2.34 or later for the 7.2.x branch
  • PHP 7.3.23 or later for the 7.3.x branch
  • PHP 7.4.11 or later for the 7.4.x branch

For additional details, refer to the PHP Bug Report #79699 and the original HackerOne Report #895727.

Distribution-specific patches are available from:

  • Debian LTS Security Announcement
  • Ubuntu USN-4583-1
  • Gentoo GLSA 202012-16
  • NetApp Security Advisory

Workarounds

  • Implement application-level validation of cookie names before processing, rejecting any cookies with URL-encoded characters in names
  • Configure web servers or reverse proxies to normalize cookie names before passing requests to PHP
  • Deploy WAF rules that decode and inspect cookie names for protected prefixes before allowing requests through
  • Consider implementing additional session validation mechanisms that do not rely solely on cookie prefix security
bash
# Example: Apache mod_rewrite rule to block URL-encoded cookie prefixes
# Add to your Apache configuration or .htaccess file
RewriteEngine On
RewriteCond %{HTTP_COOKIE} %5F%5F(Host|Secure)- [NC]
RewriteRule .* - [F,L]

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPhp

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability15.85%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-20

  • CWE-565
  • Technical References
  • CIRCL CVE-2020-8184 Details

  • openSUSE Security Announcement

  • openSUSE Security Announcement

  • HackerOne Report #895727

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202012-16

  • NetApp Security Advisory NTAP-20201016-0001

  • Ubuntu USN-4583-1

  • Debian DSA-4856 Security Advisory

  • Oracle CPU October 2021 Alerts

  • Tenable Security Advisory TNS-2021-14
  • Vendor Resources
  • PHP Bug Report #79699
  • Related CVEs
  • CVE-2024-3096: PHP Authentication Bypass Vulnerability

  • CVE-2023-0567: PHP Authentication Bypass Vulnerability

  • CVE-2026-22427: GoTravel Path Traversal Vulnerability

  • CVE-2025-69409: PJ Coaching Theme Path Traversal Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English