Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: About the new security release  (Read 5768 times)

0 Members and 1 Guest are viewing this topic.

fotografi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
[Solved]: About the new security release
« on: August 06, 2008, 01:01:04 pm »

First I want to thank the team for the great job.
The problem for me is that I can not for the moment upgrade the whole functions.inc.php file because I did a lot of changes there.
Is possible to have only the lines of code to change in this file? I mean something step by step, like replace this with these.

Regards.
« Last Edit: August 06, 2008, 02:39:04 pm by Nibbler »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: About the new security release
« Reply #1 on: August 06, 2008, 01:29:40 pm »

In functions.inc.php [function user_get_profile]

Replace

Code: [Select]
        if (isset($_COOKIE[$CONFIG['cookie_name'].'_data'])) {
                $USER = @unserialize(@base64_decode($_COOKIE[$CONFIG['cookie_name'].'_data']));
        }

with

Code: [Select]
        if (isset($_COOKIE[$CONFIG['cookie_name'].'_data'])) {
                $USER = @unserialize(@base64_decode($_COOKIE[$CONFIG['cookie_name'].'_data']));
                $USER['lang'] = strtr($USER['lang'], '$/\\:*?"\'<>|`', '____________');
        }

That is the only security related change in that file.
Logged
Chief Geek at Ranium Systems

fotografi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: About the new security release
« Reply #2 on: August 06, 2008, 02:38:42 pm »

Thank you Sir.

Regards
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: About the new security release
« Reply #3 on: August 06, 2008, 07:57:02 pm »

For reference: the subject "About the new security release" is a bit vague. It should read "About the security release cpg1.4.19".

You could have used a diff viewer like WinMerge to figure out the changes
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 21 queries.