Author Topic: A hole in global.php 1.7.6 ??????  (Read 4113 times)

0 Members and 1 Guest are viewing this topic.

Offline 4dabdura

  • Pre-Newbie
  • Posts: 6
    • View Profile
A hole in global.php 1.7.6 ??????
« on: April 02, 2009, 12:37:58 AM »
hello everybody it's my first post here, great script thanks to coders, ok to the subject now
not sure if i'm posting in right section....
I understand neither PHP nor Chinese but here's what i found:

http://bbs.wolvez.org/topic/56/
http://www.sebug.net/vulndb/4766/

what these supposed to mean? is there a hole in 1.7.6 global.php

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: A hole in global.php 1.7.6 ??????
« Reply #1 on: April 02, 2009, 11:04:09 AM »
Please use this fix:

In global.php find:

if ($requested_l != $config['language_dir'] && file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {

Replace with:

if (!preg_match('#\.\.[\\\/]#'$requested_l) && $requested_l != $config['language_dir'] && file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
« Last Edit: April 02, 2009, 12:48:42 PM by kai »
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline 4dabdura

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: A hole in global.php 1.7.6 ??????
« Reply #2 on: April 02, 2009, 11:32:13 AM »
thanks for great support  :thumbup: