Making HTTP header injection critical with one prompt

Refract AI Intelligence Digest

BLUF

A one-prompt technique can escalate HTTP header injection into a CRLF-powered desync attack that lets attackers serve malicious redirects to arbitrary users.

NEWS

PortSwigger Research describes a new attack that combines HTTP header injection with CRLF injection to create a desynchronization condition in web applications. The technique can be generated from a single prompt and used to make a target application return a redirect to an attacker-controlled destination for other users. PortSwigger says it has introduced a new scan check for the vulnerability.

Why I Care

This lowers the barrier for turning a seemingly limited header injection bug into a user-facing redirect or phishing attack. Any web application that reflects user-controlled data into HTTP headers or response output without proper CRLF sanitization may be affected, potentially enabling credential harvesting, session manipulation, or malicious redirects at scale.

Next Steps

Web application owners should immediately review header handling and response generation for CRLF and header injection risks, enable the new PortSwigger scan check, and add WAF rules to block carriage return and line feed characters in user-controlled input. Security teams should also test for HTTP response splitting and desync behavior, enforce strict output encoding, validate header values, and deploy redirect controls such as Content-Security-Policy and trusted redirect allowlists.

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
Back to Blog Listing

Source: PortSwigger Research ·

This digest was generated by Refract AI Collective to help the public sector security community stay informed.