May 24, 2013, 09:00:28 AM *
   Home   Help Login Register  
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]   Go Down
Print
Author Topic: [IMPORTANT] URGENT - PROTECTION FIX  (Read 9270 times)
0 Members and 1 Guest are viewing this topic.
Lupin
Administrator
Hero Member
*****
Offline Offline

Gender: Male
Btit Version: xbtit v.2
Posts: 10,738



View Profile WWW
« on: August 26, 2008, 11:39:33 AM »

a vulnerability (sql injection which can give the admins nick + passhash) has been discover in all btit 1.4.x/xbtit <= rev 544 version (http://www.milw0rm.com/exploits/6296), please apply urgently the patch

quick fix:
open scrape.php
below
Code:
require("$BASEPATH/include/config.php");
require("$BASEPATH/include/common.php");
add
Code:
require_once $BASEPATH.'/include/crk_protection.php';

or download attached, upload to your tracker's root and rename to scrape.php
Logged

Please don't PM me about question already asked in forum!

Help or support requested using PM will be billed 50 euros/hour, minimum 1 hour; support on forum is free.
monosgeri
Hero Member
*****
Offline Offline

Gender: Male
Btit Version: BtiTracker 1.4x
Posts: 682



View Profile
« Reply #1 on: August 26, 2008, 12:02:42 PM »

I have getscrape.php and my file is 9kB and the attached is 4. Should I replace the whole file, or just insert that extra line? My tracker v. is 1.47
Logged

if(!$drunk)
$beer
++;

(http://dvd-plaza.org)
ssmet
Guest
« Reply #2 on: August 26, 2008, 01:18:36 PM »

I have getscrape.php and my file is 9kB and the attached is 4. Should I replace the whole file, or just insert that extra line? My tracker v. is 1.47

Hi!

You must have "srape.php" if your engine is v.1.47.
Logged
Lupin
Administrator
Hero Member
*****
Offline Offline

Gender: Male
Btit Version: xbtit v.2
Posts: 10,738



View Profile WWW
« Reply #3 on: August 26, 2008, 03:01:33 PM »

yes, the file is scrape, not getscrape Wink
Logged

Please don't PM me about question already asked in forum!

Help or support requested using PM will be billed 50 euros/hour, minimum 1 hour; support on forum is free.
Soshen
Guest
« Reply #4 on: August 26, 2008, 03:34:31 PM »

is it needed for 1.3.x too ?

Logged
eutobias
Guest
« Reply #5 on: August 26, 2008, 04:39:49 PM »

i have btit 1.4.1 and in my include directory i don´t find crk_protection.php, where i get this file?

i am dowloanding a new version of btit to search for this file.

sorry my bad english xD
Logged
Lupin
Administrator
Hero Member
*****
Offline Offline

Gender: Male
Btit Version: xbtit v.2
Posts: 10,738



View Profile WWW
« Reply #6 on: August 26, 2008, 04:52:03 PM »

all btit 1.4.x and below are vulnerable, attached you find crk_protection.php for whom which don't have it
Logged

Please don't PM me about question already asked in forum!

Help or support requested using PM will be billed 50 euros/hour, minimum 1 hour; support on forum is free.
eutobias
Guest
« Reply #7 on: August 26, 2008, 05:31:55 PM »

i already find crk_protection downloading last version of xbit but now i am searching for the file that contains the function sqlesc()

i get this msg error when running my tests:
Fatal error: Call to undefined function sqlesc() in C:\work\workspace\Futuratec\trunk\deploy\include\crk_protection.php on line 51

now i am searching in the included files...

thx
xD

EDIT:
the function sqlesc() are in line 963 of functions.php (last xbtit version)

is as small function


Code:
function sqlesc($x) {
   return "'".mysql_escape_string($x)."'";
}

and now i am seeing that some functions need other functions and etc etc etc, maybe this are happening why i costumize somethings in btit but if u cant test this in a older version of btit maybe you get some errors too

i am editing crk_proctection for this works without other files, i post this here soon.

sorry bad english again.
« Last Edit: August 26, 2008, 05:52:39 PM by eutobias » Logged
ehm9000
Guest
« Reply #8 on: August 26, 2008, 11:32:35 PM »

So for BtitTracker (1.3.2) by Btiteam / XBTT Mod by KiD

I need the new scrape.php and also crk_protection.php

Am I correct, any other edits, etc.?
Logged
fatepower
Guest
« Reply #9 on: August 27, 2008, 12:32:17 AM »

Well eutobias that is because the function is in the funcitons.php and not in the crk_proteciton.php.
If u add the funciton into crk_protection.php it will be declared twice when crk_proteciton is included from functions.php. The scrape.php has not the funcitons.php included so. . . There it will be error. All other pages will see function allready declared but not from the torrent client when running the scrape.

So for getting this to work we need to find another way. Like add the function to the scrape.php, then add all the content in crk_protection.php into scrape.php, after the include url for config example.

Cheers
« Last Edit: August 27, 2008, 12:37:56 AM by fatepower » Logged
Pages: [1]   Go Up
Print
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
xBtit_Default by: TreetopClimber © 2006,2007 | Back To Top
Valid XHTML 1.0! Valid CSS!

Recommended: Wholesale Computers - dresses - Auto Diagnostic Tool
Online shopping at tmart.com and Worldwide Free Shipping - Get great dresses deals at dressale.com
your link here, contact lupin @ btiteam.org for more info

MKPortal ©2003-2006 mkportal.it