> 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/pt-br/web/access-control/insecure-direct-references-to-objects.md).

# Referências Diretas Inseguras a Objetos

### Referências Diretas a Objetos Inseguras

**Objetivo do laboratório:** Os registros de chat do usuário são armazenados diretamente no sistema de arquivos do servidor e recuperados por meio de URLs estáticas. O objetivo é encontrar a senha do usuário **carlos** e então fazer login na conta dele.

<figure><img src="/files/7452d5e36eb199cbe9c422083aae650b3786f2c8" alt="" width="563"><figcaption></figcaption></figure>

É observada uma funcionalidade de e-mail com a opção de baixar a transcrição do chat por meio de uma **GET** requisição.

<figure><img src="/files/39c74792b64bc765f70f693df4193f2353ff4458" alt=""><figcaption></figcaption></figure>

A URL é a seguinte:

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

Bastando alterar o identificador do arquivo na URL, é possível acessar transcrições de outros usuários sem qualquer proteção. Por exemplo:

<figure><img src="/files/8428f09d3ad99a35c6d71b9dd8352bb3c78c14fe" alt=""><figcaption></figcaption></figure>

Este arquivo exibe o conteúdo de uma conversa contendo **a senha do 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/pt-br/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.
