what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

coolforum081.txt

coolforum081.txt
Posted Mar 22, 2005
Authored by HaCkZaTaN | Site neosecurityteam.net

CoolForum versions 0.8.1 Beta and below may be susceptible to SQL injection attacks.

tags | advisory, sql injection
SHA-256 | c639cf90e16e7b79ccaca1f474d4530cae0f2308e97844097dc253846f520ef4

coolforum081.txt

Change Mirror Download


/*
--------------------------------------------------------
[N]eo [S]ecurity [T]eam [NST]® - Advisory #11 - 20/03/05
--------------------------------------------------------
Program: CoolForum
Homepage: http://coolforum.net/
Vulnerable Versions: CoolForum v.0.8.1 beta & Lowers
Risk: Low!!
Impact: Path Disclosure & Possible SQL Injection

-==CoolForum Path Disclosure & Possible SQL Injection==-
---------------------------------------------------------

- Description
---------------------------------------------------------
CoolForum est un forum de discussion semi-professionnel
que vous pouvez télécharger et installer sur votre site
web afin d'améliorer les relations entre vos visiteurs et
pouvoir avoir un contact plus poussé avec eux.

- Tested
---------------------------------------------------------
CoolForum's & LocalHost
I've done minimal testing on this there could be more bugs.

- Explotation
---------------------------------------------------------

If you access directly to : http://host/forum/alert.php
likewise it'll happen the samething here http://host/forum/viewip.php
You will get an error like this one:

You have an error in your SQL syntax near ' topicid= WHERE sessionID='1bbd8746b185f6d539461fc40141577a'' at line 1
UPDATE CF_session SET username='', userid=0, userstatus=1, time=1111291757, typelieu='TOP', forumid=, topicid= WHERE sessionID='1bbd8746b185f6d539461fc40141577a'


Warning: Cannot modify header information - headers already sent by (output started at /home/coolcoyote/coolforum/forum/admin/functions.php:51) in /home/coolcoyote/coolforum/forum/admin/functions.php on line 284

Warning: Cannot modify header information - headers already sent by (output started at /home/coolcoyote/coolforum/forum/admin/functions.php:51) in /home/coolcoyote/coolforum/forum/admin/functions.php on line 284

Solution

admin/functions.php: 42 - 55
-==code==-
function query($query)
{
global $NBRequest;

$msql=mysql_query($query);
if($msql)
$NBRequest++;
else
{
echo(mysql_error()."<br>");
echo($query."<p>");
}
return($msql);
}
-==/code==-

admin/functions.php: 277 - 284

-==code==-
function sendcookie($name,$value,$expire)
{
global $_FORUMCFG;

if($expire==-1)
$expire=mktime(0,0,0,1,1,2010);

if(empty($_FORUMCFG['cookiedomain'])) setcookie($name,$value,$expire,$_FORUMCFG['cookierep']);
else setcookie($name,$value,$expire,$_FORUMCFG['cookierep'],".".$_FORUMCFG['cookiedomain']);
}
-==/code==-


[:: ============================================ ::]
Other Bug

http://host/forum/entete.php

Its making a call to an undefined function.

Fatal error: Call to undefined function: getuserid() in /home/coolcoyote/coolforum/forum/entete.php on line 50

entete.php on line 50
-==code==-
$_USER = getuserid();
-==/code==-

[:: ============================================ ::]
Other Bug

http://host/forum/profile_accueil.php

Making a member function on a non-object


Fatal error: Call to a member function on a non-object in /home/coolcoyote/coolforum/forum/profile_accueil.php on line 31

profile_accueil.php on line 31
-==code==-
$tpl->treenavs=$tpl->gettemplate("treenav","treeprofil");
-==/code==-

[:: ============================================ ::]
Other Bug

http://host/forum/profile_mdp.php

Calling an undefined function

Fatal error: Call to undefined function: getlangage() in /home/coolcoyote/coolforum/forum/profile_mdp.php on line 30

profile_mdp.php on line 30
-==code==-
getlangage("profile_mdp");
-==/code==-

[:: ============================================ ::]
Other Bug

http://host/forum/profile_notify.php

Same as the one up there

Calling an undefined function

Fatal error: Call to undefined function: getlangage() in /home/coolcoyote/coolforum/forum/profile_notify.php on line 33

profile_notify.php on line 33
-==code==-
getlangage("profile_notify");
-==/code==-

[:: ============================================ ::]
Other Bug

http://host/forum/profile_options.php

Same as the one up there

Calling an undefined function


Fatal error: Call to undefined function: getlangage() in /home/coolcoyote/coolforum/forum/profile_options.php on line 30

profile_options.php on line 30
-==code==-
getlangage("profile_options");
-==/code==-


[:: ============================================ ::]
Other Bug

http://host/forum/profile_perso.php

Same as the one up there

Calling an undefined function

Fatal error: Call to undefined function: getlangage() in /home/coolcoyote/coolforum/forum/profile_perso.php on line 30

profile_perso.php on line 30
-==code==-
getlangage("profile_perso");
-==/code==-

[:: ============================================ ::]
Other Bug

http://coolforum.net/forum/profile_pm.php

Same as the one up there

Calling an undefined function

Fatal error: Call to undefined function: getlangage() in /home/coolcoyote/coolforum/forum/profile_pm.php on line 30

profile_pm.php on line 30
-==code==-
getlangage("profile_pm");
-==/code==-

[:: ============================================ ::]
Other Bug

http://host/forum/readannonce.php

OK this file has lots of bugs minors but you could improve them.

1. There is no such file templates//tpl_error.html
2. Implode functions has bad arguments
3. There is no such file templates//tpl_baspage.htm

Warning: file(templates//tpl_error.html): failed to open stream: No such file or directory in /home/coolcoyote/coolforum/forum/admin/functions.php on line 157

Warning: implode(): Bad arguments. in /home/coolcoyote/coolforum/forum/admin/functions.php on line 157

Warning: file(templates//tpl_baspage.html): failed to open stream: No such file or directory in /home/coolcoyote/coolforum/forum/admin/functions.php on line 157

Warning: implode(): Bad arguments. in /home/coolcoyote/coolforum/forum/admin/functions.php on line 157

admin/functions.php: 150 - 160
-==code==-
function loadfile($file)
{
global $_SKIN,$_SERVER;

if(ereg("admin/",$_SERVER['REQUEST_URI'])) $prefix="../";
else $prefix="";

$temp = implode("",file($prefix."templates/".$_SKIN['reptpl']."/tpl_".$file.".html"));
$this->forme($temp);
$this->isloaded[$file] = true;
}
-==/code==-

[:: ============================================ ::]
Other Bug

You cannot access directly to this file:

http://host/forum/admin/functions.php

Fatal error: Class sqlconnect: Cannot inherit from undefined class my_sql in /home/coolcoyote/coolforum/forum/admin/functions.php on line 34

admin/functions.php:34 - 40
-==code==-
class SQLConnect extends My_SQL
{
function SQLConnect()
{
@mysql_connect($this->host,$this->user,$this->pass) or die("Impossible de se connecter à la base de données");
@mysql_select_db("$this->bdd") or die("Impossible de se connecter à la base de données");
}
-==/code==-

- References
--------------------------------------------------------
http://neosecurityteam.net/Advisories/Advisory-11.txt

- Credits
-------------------------------------------------
Discovered by HaCkZaTaN <hck_zatan@hotmail.com>

[N]eo [S]ecurity [T]eam [NST]® - http://neosecurityteam.net/

Got Questions? http://neosecurityteam.net/

Irc.InfoGroup.cl #neosecurityteam

- Greets
--------------------------------------------------------
Paisterist
T0wn3r
LINUX
Heap
Nitrous
CrashCool
eL_mEsIaS
Makoki
KingMetal

And my Colombian people

@@@@'''@@@@'@@@@@@@@@'@@@@@@@@@@@
'@@@@@''@@'@@@''''''''@@''@@@''@@
'@@'@@@@@@''@@@@@@@@@'''''@@@
'@@'''@@@@'''''''''@@@''''@@@
@@@@''''@@'@@@@@@@@@@''''@@@@@
*/
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close