Bypassing WAFs with the phantom $Version cookie

Dec 4, 2024

HTTP cookies often control critical website features, but their long and convoluted history exposes them to parser discrepancy vulnerabilities. In this post, I'll explore some dangerous, lesser-known

Keep reading

Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.

More from PortSwigger Research

The bug bounty website that tried to hack me

They say there's a first time for everything - I've been hacking websites under bug bounty programs since 2008 and I believe today is the first time one tried to hack me back! While reviewing discover

Achieving the impossible: XSS in innerHTML without equals

Introduction I'm delighted to introduce Masato Kinugawa as a guest web security researcher on the PortSwigger research channel. Masato is a well known web security expert who has found countless high

Blind trust: stealing credentials through CSP

Content Security Policy is supposed to be the safety net that stops an HTML injection from turning into XSS. Usually it works. But sometimes it doesn't, because the policy allows-lists a domain that h

Making HTTP header injection critical with one prompt

You can now escalate HTTP header injection to a CRLF-Powered Desync and exploit it to serve random users a redirect to your collaborator, in a single prompt. We’ve just introduced a new scan check for

Scalable Vector Grief

I tested eight popular SVG sanitizers and bypassed six of them. In this post, I'll show you how a response header can run JavaScript in Firefox even when the response body is completely harmless XML.