> 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/authentication/password-brute-force-via-password-change.md).

# Força Bruta de Senha via Funcionalidade de Alteração de Senha

### Ataque de força bruta de senha por meio da alteração de senha

Este laboratório apresenta uma vulnerabilidade na funcionalidade de **alteração de senha**, permitindo um ataque por **força bruta**. / O objetivo é identificar a senha de **Carlos**, e então acessar sua página \*\*

**Credenciais fornecidas:**

* Usuário: `wiener`
* Senha: `peter`

**Usuário-alvo:**

* `carlos`

Uma seção permite alterar a senha após a autenticação. / Quando um valor incorreto **senha atual** é fornecido, a aplicação retorna uma mensagem de erro específica.

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

Exemplo de uma requisição enviada pela aplicação:

{% code overflow="wrap" %}

```bash
username=wiener&current-password=test&new-password-1=test1234&new-password-2=test123
```

{% endcode %}

Se o `current-password` o campo é inválido, o erro exibido indica que a senha atual está incorreta.

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

Ao substituir `wiener` por `carlos` na consulta, **a mensagem de erro permanece a mesma**, contanto que a senha testada não seja a correta.configure um ataque Burp Intruder

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

No entanto, para **a senha correta**, a mensagem de erro muda:/ em vez da senha incorreta, a aplicação indica que **as informações de identificação não correspondem**.

Essa diferença na resposta nos permite **distinguir uma senha válida de uma inválida**.

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


---

# 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/authentication/password-brute-force-via-password-change.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.
