Menu

  • Alerts
  • Incidents
  • News
  • APTs
  • Cyber Decoded
  • Cyber Hygiene
  • Cyber Review
  • Cyber Tips
  • Definitions
  • Malware
  • Threat Actors
  • Tutorials

Useful Tools

  • Password generator
  • Report an incident
  • Report to authorities
No Result
View All Result
CTF Hack Havoc
CyberMaterial
  • Education
    • Cyber Decoded
    • Definitions
  • Information
    • Alerts
    • Incidents
    • News
  • Insights
    • Cyber Hygiene
    • Cyber Review
    • Tips
    • Tutorials
  • Support
    • Contact Us
    • Report an incident
  • About
    • About Us
    • Advertise with us
Get Help
Hall of Hacks
  • Education
    • Cyber Decoded
    • Definitions
  • Information
    • Alerts
    • Incidents
    • News
  • Insights
    • Cyber Hygiene
    • Cyber Review
    • Tips
    • Tutorials
  • Support
    • Contact Us
    • Report an incident
  • About
    • About Us
    • Advertise with us
Get Help
No Result
View All Result
Hall of Hacks
CyberMaterial
No Result
View All Result
Home Alerts

New Cookie Sandwich Attack Steals Data

January 23, 2025
Reading Time: 2 mins read
in Alerts
Triplestrength Exploits Cloud Systems

A new cybersecurity threat has emerged, dubbed the “cookie sandwich” attack, which exploits vulnerabilities in web server cookie parsing to potentially expose sensitive data and hijack user sessions. This technique bypasses the HttpOnly flag, a security measure designed to prevent client-side scripts from accessing sensitive cookies, raising concerns among cybersecurity professionals. The attack hinges on exploiting legacy cookie parsing mechanisms and manipulating the structure of the

Cookie header to trick servers into revealing protected information.

The “cookie sandwich” attack leverages the fact that some browsers and servers still support older cookie specifications, allowing attackers to craft cookie values with special characters and quotes. By strategically placing these manipulated cookies within the Cookie header, attackers can create overlapping cookie boundaries. This causes vulnerable servers to misinterpret the cookie structure, treating the enclosed cookies as part of a single value. When the server reflects these manipulated cookies in its response, sensitive information like session IDs can be exposed to attackers.

Real-world examples demonstrate the potential impact of this vulnerability.

In one instance, a tracking domain with a reflected session parameter was successfully exploited using the “cookie sandwich” technique. By leveraging legacy cookie parsing in Apache Tomcat, the attacker was able to expose an HttpOnly protected PHPSESSID cookie. This vulnerability highlights the importance of robust cookie handling, response sanitization, and adherence to modern security practices.

To mitigate the risk of “cookie sandwich” attacks, organizations should prioritize several key measures. These include using modern parsing standards like RFC6265, disabling support for legacy cookie parsing, enabling HttpOnly and Secure flags on sensitive cookies, sanitizing user input and server responses, implementing Content Security Policies (CSP), and using the SameSite attribute to restrict cross-site cookie transmission. By adopting these strategies, organizations can strengthen their defenses and protect against this evolving threat.

Reference:
  • Critical Cookie Sandwich Attack Exploits HttpOnly Vulnerability to Steal Data
Tags: Cyber AlertsCyber Alerts 2025CyberattackCybersecurityJanuary 2025
ADVERTISEMENT

Related Posts

New Godfather Trojan Hijacks Banking Apps

Winos 4.0 Malware Hits Taiwan Via Tax Phish

June 20, 2025
New Godfather Trojan Hijacks Banking Apps

New Godfather Trojan Hijacks Banking Apps

June 20, 2025
New Godfather Trojan Hijacks Banking Apps

New Amatera Stealer Delivered By ClearFake

June 20, 2025
Fake Invoices Deliver Sorillus RAT In Europe

Fake Minecraft Mods On GitHub Spread Malware

June 19, 2025
Russian Phishing Scam Bypasses Google 2FA

Russian Phishing Scam Bypasses Google 2FA

June 19, 2025
Fake Invoices Deliver Sorillus RAT In Europe

Fake Invoices Deliver Sorillus RAT In Europe

June 19, 2025

Latest Alerts

Winos 4.0 Malware Hits Taiwan Via Tax Phish

New Amatera Stealer Delivered By ClearFake

New Godfather Trojan Hijacks Banking Apps

Fake Minecraft Mods On GitHub Spread Malware

Fake Invoices Deliver Sorillus RAT In Europe

Russian Phishing Scam Bypasses Google 2FA

Subscribe to our newsletter

    Latest Incidents

    Massive Leak Exposes 16 Billion Credentials

    Tonga Health System Down After Ransomware

    Chinese Spies Target Satellite Giant Viasat

    German Dealer Leymann Hacked Closes Stores

    Hacker Mints $27M From Meta Pool Gets 132K

    UBS and Pictet Hit By Vendor Data Breach

    CyberMaterial Logo
    • About Us
    • Contact Us
    • Jobs
    • Legal and Privacy Policy
    • Site Map

    © 2025 | CyberMaterial | All rights reserved

    Welcome Back!

    Login to your account below

    Forgotten Password?

    Retrieve your password

    Please enter your username or email address to reset your password.

    Log In

    Add New Playlist

    No Result
    View All Result
    • Alerts
    • Incidents
    • News
    • Cyber Decoded
    • Cyber Hygiene
    • Cyber Review
    • Definitions
    • Malware
    • Cyber Tips
    • Tutorials
    • Advanced Persistent Threats
    • Threat Actors
    • Report an incident
    • Password Generator
    • About Us
    • Contact Us
    • Advertise with us

    Copyright © 2025 CyberMaterial