# Account theft

## Apresentação

Nesse exemplo vamos dar fingir ser um outro usuário modificando o arquivo que a aplicação utiliza para verificar a conta

## Vuln time

Para localizarmos o local do **userdetails.plist**

```
# Pegue as informações sobre o gadget rodando
env

# Acesse o DocumentDirectory
```

Primeiro vamos fazer download do arquivo utilizando

```
file download userdetails.plist
```

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

Agora vamos visualizar o arquivo original e depois de modificado

> O AUTH\_TOKEN é uma hash em md5 do nome do usuário, como por exemplo md5("attacker")

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

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

Agora vamos fazer o upload desse arquivo utilizando objection com o comando

```
file put userdetails.plist
```

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

## Conclusão

Esse foi apenas um exemplo de vulnerabilidade no client side, com isso conseguirmos fingir ser alguem que não somos para a aplicação.


---

# Agent Instructions: 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:

```
GET https://vida03.gitbook.io/redteam/mobile/ios-pentest/client-side-vulnerabilities/account-theft.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
