Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 5th, 2002, 03:18 PM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 13
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
New php issue

[27-Feb-2002] Due to a security issue found in all versions of PHP (including 3.x and 4.x), a new version of PHP has been released. Details about the security issue are available here. All users of PHP are strongly encouraged to either upgrade to PHP 4.1.2, or install the patch (available for PHP 3.0.18, 4.0.6 and 4.1.0/4.1.1).

My question is how do I install the patch? It's a gz file. Not sure how those work. Can anyone give me a hand on this?

Reply With Quote
  #2  
Old March 5th, 2002, 03:40 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
you are 4 days late. get onto some mailing list if you are really interested in security.

.gz says it is zip-packed (.zip in win*** world). do "gunzip filename.gz" to get the unzipped version. and read the docs how to apply it...

is it a source code patch or a binary one?

you probably better get the complete patched version (4.1.2)..... and install it over your old one.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old March 5th, 2002, 05:20 PM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 13
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
Quote:
Originally posted by M.Hirsch
you probably better get the complete patched version (4.1.2)..... and install it over your old one.


How would I go about that?

Reply With Quote
  #4  
Old March 7th, 2002, 12:11 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
http://www.php.net/downloads.php

but is is only available as source as far as i could see...
if you are on linux, compiling is easy on win**** - didnīt ever even try...

Reply With Quote
  #5  
Old March 7th, 2002, 12:57 PM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 13
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
Can anyone give me a hand here with an answer?

Reply With Quote
  #6  
Old March 7th, 2002, 01:09 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
ok, step-by-step:

download the .tar.gz file.
login as root, copy it to your /root directory.
type "tar xvzf <filename>"
cd to the new dir that was created
type "./configure" (read the README for the parameters to supply if you want apache-module and how to compile in mySQL and other stuff you might need)
if you get no errors, type "make".
if this gives you no errors either, you should end up with a "mod_php.so" or similar in one of the dirs.
copy this to /usr/lib/apache (or the location your old mod_php.so is at)

this should do the job. it is probably not as easy as it seems, but since there is no binary available yet, itīs the only way around disabling PHP completely......

i did not test this since i donīt have linux around at home. if you have further questions, ask again. i am sure there is ppl on this board that did this step already and can supply the exact way...

see ya,
M.Hirsch

Reply With Quote
  #7  
Old March 7th, 2002, 01:11 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Central Florida, USA
Posts: 2,306 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 6 h 42 m 51 sec
Reputation Power: 60
See this thread in another forum: http://www.tek-tips.com/gviewthread.../434/qid/221223

Also, this security breach deals with PHP's file upload functionality. If you don't need file uploads, you can just disable that feature in php.ini, and you will be safe again. That's the quickest fix for now, until you are ready to deal with an upgrade.

Just change:

file_uploads = On

to

file_uploads = Off
__________________
The real n-tier system:

FreeBSD -> PostgreSQL -> [any_language] -> Apache -> Mozilla/XUL

Amazon wishlist -- rycamor (at) gmail.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > New php issue

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap