Pages: [1]   Go Down
  Print  
Author Topic: Security Fix: fbannerclick.php  (Read 745 times)
757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« on: October 09, 2010, 06:29:50 PM »

With the cooperation of Scott Klarr (http://diffusionstudios.com/) we are pleased to release this security update:

This will prevent people from uploading free credits into your featured banners, also please use the security fix for the wizards/fbanners.php file.

EDIT: Link for wizards/fbanners.php fix:
http://auroraadmintraining.info/index.php/topic,1002.0.html

You will want to cut and paste this entire code into your file:

Code:
<?
$id=$_GET['id'];
include("config.php");
include("includes/mysql.php");
$Db1 = new DB_sql;
$Db1->connect($DBHost, $DBDatabase, $DBUser, $DBPassword);

$id = mysql_real_escape_string($_REQUEST['id']);

$sql2=$Db1->query("SELECT * FROM fbanners WHERE id='$id'");
$banner=$Db1->fetch_array($sql2);
$sql=$Db1->query("UPDATE fbanners SET clicks=clicks+1 WHERE id='$id'");

$Db1->sql_close();
header("Location: $banner[target]");

?>
« Last Edit: November 03, 2010, 10:48:55 PM by 757jterrell » Logged

Upgrade to an SDR 3
Addons
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #1 on: October 13, 2010, 05:37:24 PM »

fixed...  Grin

Have u forgot it ? or it will must removed ?

$id=$_GET['id'];
« Last Edit: October 13, 2010, 05:43:09 PM by Addons » Logged

757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« Reply #2 on: October 14, 2010, 10:22:06 PM »

yeap I forgot, I fixed the op
Logged

bwbrown
Newbie
*
Offline Offline

Posts: 19


View Profile
« Reply #3 on: November 02, 2010, 05:05:00 PM »

what code do you use for fbanner.php file?

Could you make a new postings showing exactly what needs to be in the following files?

fbannerclick.php

fadclick.php

fbanner.php

« Last Edit: November 02, 2010, 05:49:11 PM by bwbrown » Logged
757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« Reply #4 on: November 03, 2010, 10:49:11 PM »

OP updated per your request.
Logged

Get a SDR 3 NOW at http://ptcfactory.info

The best and most up to date Aurora script in the market!!
Pages: [1]   Go Up
  Print  
 
Jump to: