Author Topic: Security Fix : Members/account_pay.php  (Read 3819 times)

0 Members and 1 Guest are viewing this topic.

  • Developer
  • Hero Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 933
  • Karma: +58/-2
  • Referrals: 81
    • Cashons Network
    • Email
Security Fix : Members/account_pay.php
« on: July 26, 2012, 07:26:31 AM »
- Reason For The Fix :
> Will help in preventing purchases of lots of credits with zero account funds

- Fix Steps :

> Open This File In Your Cpanel : Members/account_pay.php .

> Find This Line :

Code: [Select]
$sql=$Db1->query("SELECT * FROM orders WHERE order_id='$order_id'");

> Add Before It :
Code: [Select]
$order_id = mysql_real_escape_string($_REQUEST['order_id']);

> So Final Code Should Be Like This :

Code: [Select]
$order_id = mysql_real_escape_string($_REQUEST['order_id']);
$order=$Db1->query_first("SELECT * FROM orders WHERE order_id='{$order_id}'");


( You Are Not Allowed To Copy This Fix Without Mentioning TalkPTC As Your Source )



  • Newbie
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
  • Karma: +0/-0
  • Referrals: 0
    • Email
Re: Security Fix : Members/account_pay.php
« Reply #1 on: January 03, 2013, 01:36:13 AM »
Thanks Admin, this fix.  :-bd

  • Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
  • Karma: +0/-0
  • Referrals: 0
Re: Security Fix : Members/account_pay.php
« Reply #2 on: March 21, 2014, 11:05:56 AM »
This is fine for MRV script?

However thanks admin!! :D
« Last Edit: March 21, 2014, 11:18:07 AM by YED »

  • Developer
  • Hero Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 933
  • Karma: +58/-2
  • Referrals: 81
    • Cashons Network
    • Email
Re: Security Fix : Members/account_pay.php
« Reply #3 on: April 01, 2014, 12:35:01 AM »
This is fine for MRV script?

However thanks admin!! :D

It will depend on your mrv version

Versions prior to 5.8 aren't encrypted so it's possible to add this fix to it , But 5.8 and after are encrypted so wont be possible to do that in it

 

advertise here