> For the complete documentation index, see [llms.txt](https://writeups.ayweth20.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://writeups.ayweth20.com/2025/404ctf-2025/securite-web/rainbow-rocket.md).

# Rainbow Rocket

**Catégorie:** Sécurité Web - **Difficulté:** Intro

{% file src="/files/1KVXeZ2QLo5e62TQIX1L" %}

**Description:**

<figure><img src="/files/VzQN4WMU0C2MbWpd3vVl" alt=""><figcaption></figcaption></figure>

Solution:

En arrivant sur la page, nous avons un joli message nous rappelant que nous n'avons pas les accès nécessaire :&#x20;

<figure><img src="/files/4x261NPMYuQQ6ahGOvWO" alt=""><figcaption></figcaption></figure>

Il va donc falloir bypasser ça et devenir "admin". Pour se faire nous allons commencer par créer un compte utilisateur normal (sans droits particuliers). Cela nous amène à une autre fenêtre, toujours avec le même message d'avertissement (mais sans les bouton "Connexion"/"Inscription").

Maintenant que nous sommes connectés, et donc à l'intérieur de l'application, essayons d'aller voir les infos intéressantes en arrière plan : les cookies.

<figure><img src="/files/HfJZag3cwnTTx5wripZE" alt=""><figcaption></figcaption></figure>

Nous avons donc un superbe JWT qui nous attends. Pas trop de réflexion, nous allons examiner son contenu :&#x20;

<figure><img src="/files/9S3aR7iV6E5AxSbQUGdN" alt=""><figcaption></figcaption></figure>

Nous voyons qu'il fait référence au nom d'utilisateur de la personne connectée. Nous allons donc remplacer cela par le nom d'utilisateur souhaité : admin

<figure><img src="/files/BdBQbxqrCcX8aXos7Qmr" alt=""><figcaption></figcaption></figure>

Nous l'injectons ensuite à la place de l'ancien cookie (avec une extension du style [Cookie-Editor](https://cookie-editor.com/)) et là en rafraichissant la page, nous avons notre flag :&#x20;

<figure><img src="/files/mpn6gF81dGct42NL3MXS" alt=""><figcaption></figcaption></figure>

<details>

<summary>🚩FLAG</summary>

`404CTF{decod3diSNOtVeRiFiED}`

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://writeups.ayweth20.com/2025/404ctf-2025/securite-web/rainbow-rocket.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
