# HTTP - Headers

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FF1SxbB0rTfG0aqIBuwK7%2F1.png?alt=media&#x26;token=d67e3fa5-5557-461d-b1af-946524e85620" alt=""><figcaption></figcaption></figure>

Maybe the clue lie in the response headers.

In order to check the response headers we have to intercept the request using Burpsuite.&#x20;

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2F3T7L4hD9r2Zh4hK3acsv%2F2.png?alt=media&#x26;token=800c20ec-b102-49c4-babe-af650dc12476" alt=""><figcaption></figcaption></figure>

Let's forward the request to the `Repeater`.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2Fzo5iJ7cWCpduocVBsGso%2F3.png?alt=media&#x26;token=430a4987-3dba-4333-82c5-042be07fd626" alt=""><figcaption></figcaption></figure>

The response has a header called `Header-RootMe-Admin`. We can include this header in our next request.

## HTTP Request

```
GET /web-serveur/ch5/ HTTP/1.1
Host: challenge01.root-me.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Header-RootMe-Admin: none
DNT: 1
Connection: close
Cookie: _ga_SRYSKX09J7=GS1.1.1697389021.11.1.1697389201.0.0.0; _ga=GA1.1.1863804672.1697290591
Upgrade-Insecure-Requests: 1
Sec-GPC: 1
```

Finally, we have to send this request to the server.

<figure><img src="https://1586847736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSZ40gLWhBDTzPEgHsVB%2Fuploads%2FJ6NbHMZfHEofNLTXiDSz%2F4.png?alt=media&#x26;token=1b111057-cc94-4dfc-9530-2161490f7fdc" alt=""><figcaption></figcaption></figure>

## Flag

```
HeadersMayBeUseful
```
