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

# Брутфорс пароля через функциональность смены пароля

### Подбор пароля методом перебора через смену пароля

В этой лабораторной работе представлена уязвимость в функциональности **смены пароля**, что позволяет атаковать с помощью **брутфорсом**. / Цель — определить пароль **Карлоса**, а затем получить доступ к его странице \*\*

**Предоставленные учетные данные:**

* Пользователь: `wiener`
* Пароль: `peter`

**Целевой пользователь:**

* `carlos`

Раздел позволяет изменить пароль после аутентификации. / Когда неверный **текущего пароля** значение введено, приложение возвращает определённое сообщение об ошибке.

<figure><img src="/files/275b4daa6e9713101c7bc8b5134c9ac93c6a92cc" alt=""><figcaption></figcaption></figure>

Пример запроса, отправляемого приложением:

{% code overflow="wrap" %}

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

{% endcode %}

Если `current-password` поле недействительно, отображаемая ошибка указывает на то, что текущий пароль неверен.

<figure><img src="/files/3321a06e64febd3da8a9e45419ca19ffc8531ea8" alt=""><figcaption></figcaption></figure>

При замене `wiener` на `carlos` в запросе, **сообщение об ошибке остаётся прежним**, пока проверяемый пароль не является правильным. Настроить атаку Burp Intruder

<figure><img src="/files/0d7f0a57e4d5753edb1e61614a579102b9a88567" alt=""><figcaption></figcaption></figure>

Однако для **правильного пароля**, сообщение об ошибке изменяется:/ вместо неверного пароля приложение указывает, что **учётные данные не совпадают**.

Это различие в ответе позволяет нам **отличить правильный пароль от неверного**.

<figure><img src="/files/0fbfd27fb220bd653d9a697b3a1c2cc113c7ba97" 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/ru/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.
