Skip to content
Smuggling / CRLF Write-up Advanced

Today How to get $500 Bounty on HackerOne — P3

The site was vulnerable to HTTP request smuggling (CL.TE and TE.CL), allowing an attacker to desynchronise requests. By combining this with host header injection, the attacker could turn an on-site redirect into an open redirect to an arbitrary domain.

medium.com

Published on medium.com

In this article, I’m going to talk about a How to Find P3 Bug on HackerOne Private program and get Reward $500 Bounty today.

bugbounty_learners, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the front-end and back-end servers disagreed on how to parse the request body due to conflicting Content-Length and Transfer-Encoding headers, and the application trusted the Host header for redirects.

Impact

An attacker could redirect users to a malicious site via an open redirect, potentially leading to phishing or other attacks.

What the attacker needed

Victim clicks a crafted link; attacker can send crafted requests

How it was found

  1. Intercept a GET request to the site and send it to Burp Repeater.
  2. Modify the request to include both Content-Length and Transfer-Encoding: chunked headers, with a smuggled request in the body.
  3. Observe that the server responds with a 404 followed by a 200, indicating request smuggling.
  4. Craft a smuggled request with a Host header pointing to an attacker-controlled domain.
  5. Send the request and observe a 302 redirect to the attacker's domain.

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 write-up has not been written yet. The Original tab links to the source.

HTTP request smuggling is a trick where an attacker sends a request that two servers interpret differently, causing confusion. Here, the attacker could make the site redirect users to a malicious site by sneaking in a fake host header.

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.

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.