Skip to content
Smuggling / CRLF Disclosed report Advanced

HTTP request smuggling with Origin Rules using newlines in the host_header action parameter

The host_header action parameter in Cloudflare's Origin Rules API did not properly validate input, allowing CRLF characters. An attacker could inject arbitrary headers and smuggle HTTP requests, bypassing security products such as Cloudflare Access and viewing internal origin server content.

Albert Pedersen Follow

Originally disclosed on HackerOne

Bounty$3,100incl. $100 bonus Critical View original
  • Triaged in 17 hours
  • Fixed in 6 days
  • Paid in 6 days
  • Disclosed after 39 days

Summary by the program

The host_header action parameter available to rulesets in the Origin Rules API lacked sufficient input validation i.e., allowing CRLF characters. Because of this, it was possible to inject arbitrary headers and, as a consequence, smuggle HTTP requests. This vulnerability enabled bypassing security products such as Cloudflare Access and viewing the content of internal origin servers. The issue was fixed by Cloudflare engineers and an Internal investigation proved that no Cloudflare customers were affected by exploitation of this vulnerability. As a recommendation, we advise Cloudflare Access customers to always verify the Authorization JWT token before processing requests from the Cloudflare edge which prevents similar attempts.

The original report as published on HackerOne, by albertspedersen. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The host_header action parameter lacked sufficient input validation, allowing CRLF characters to be injected into the Host header.

Impact

This could bypass security products such as Cloudflare Access and allow viewing the content of internal origin servers; Cloudflare states no customers were affected by exploitation.

What the attacker needed

Ability to set Origin Rules host_header

The fix

The issue was fixed by Cloudflare engineers, and customers are advised to verify the Authorization JWT token before processing requests from the Cloudflare edge.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a web server or API takes input from a user and puts it into an HTTP header without checking it, an attacker can sneak in extra line breaks. Those line breaks let the attacker add their own headers or even a second hidden request. Here, a Cloudflare feature that sets the Host header for origin servers accepted these line breaks, so an attacker could slip past Cloudflare's access controls and reach internal servers.

What is Smuggling / CRLF?

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.

More by Albert Pedersen

View all

6 more disclosed reports, best first.

More from Cloudflare Public Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.