> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/fr/web/access-control/insecure-direct-references-to-objects.md).

# Références directes non sécurisées à des objets

### Références directes à des objets non sécurisées

**Objectif du laboratoire :** Les journaux de chat des utilisateurs sont stockés directement sur le système de fichiers du serveur et récupérés via des URL statiques. L’objectif est de trouver le mot de passe de l’utilisateur **carlos** puis se connecter à son compte.

<figure><img src="/files/9585cb06659ec8abfc89dddf1915872229c06e4c" alt="" width="563"><figcaption></figcaption></figure>

Une fonctionnalité de messagerie est observée avec une option permettant de télécharger la transcription du chat via une **GET** requête.

<figure><img src="/files/07d66f4813fe9e83d3800155f82e4615c74cd976" alt=""><figcaption></figcaption></figure>

L’URL est la suivante :

```
/download-transcript/1.txt
```

En modifiant simplement l’identifiant du fichier dans l’URL, il est possible d’accéder aux transcriptions d’autres utilisateurs sans aucune protection. Par exemple :

<figure><img src="/files/0638f0257302179e0e6a0e0284a8f9eb1fc5e840" alt=""><figcaption></figcaption></figure>

Ce fichier affiche le contenu d’une conversation contenant **le mot de passe de Carlos**.


---

# 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://hacking-notes.jord4n.pro/fr/web/access-control/insecure-direct-references-to-objects.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.
