General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralGeneral Chat

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 Codewalkers Forums Sponsor:
  #1  
Old June 15th, 2005, 03:45 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
Security Issue?

Do you believe there is a security issue with letting someone see a phpinfo() page?

For instance, a hosting company wants potential clients to see how php is compiled. Is there a security risk with showing this?

Discuss.

Reply With Quote
  #2  
Old June 15th, 2005, 04:21 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Finland
Posts: 2,332 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 26229 Folding Title: Starter FolderFolding Points: 26229 Folding Title: Starter Folder
Time spent in forums: 6 Days 16 h 34 m 49 sec
Reputation Power: 5
RE: Security Issue?

I'd say that depends on the server. The biggest threat about phpinfo() is it reveals version numbers for many things, which lets a potential attacker know what known security holes might be active and worth trying. It also reveals all the php settings which might reveal potential weaknesses in php scripts themselves.

However, if the server is kept up-to-date very well as far as security patches are concerned, I see no problem with having a public phpinfo page. In fact, not revealing a potential customer what they will get makes me suspicious. Are they trying to hide something?

I don't remember who said it, but someone's point was that messages protected with a strong encryption mechanism must not be compromised just because the encryption mechanism becomes widely known. I think it can be applied to this.

Reply With Quote
  #3  
Old June 15th, 2005, 04:52 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 4
RE: Security Issue?

I basically agree with tkarkkainen. Thinking you are secure by hiding your system's details is simply "security through obscurity."

Reply With Quote
  #4  
Old June 15th, 2005, 05:39 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Finland
Posts: 2,332 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 26229 Folding Title: Starter FolderFolding Points: 26229 Folding Title: Starter Folder
Time spent in forums: 6 Days 16 h 34 m 49 sec
Reputation Power: 5
RE: Security Issue?

Thanks for the link, honcho. It was Kreckhoffs's law I was referring to.

A quote from that Wikipedia page (underline by me):
Quote:
Bruce Schneier ties it in with a belief that all security systems must be designed to fail as gracefully as possible: Kerckhoffs' principle applies beyond codes and ciphers to security systems in general: every secret creates a potential failure point. Secrecy, in other words, is a prime cause of brittleness — and therefore something likely to make a system prone to catastrophic collapse. Conversely, openness provides ductility.

Reply With Quote
  #5  
Old June 15th, 2005, 05:48 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to notepad
RE: Security Issue?

the output of phpinfo() can be customized by passing it optional constants, which is useful for not displaying information that might be considered vulnerable. that can benefit the hypothetical hosting companies.

further, php.net is open-source, but can you find the phpinfo() file for their site? because i can't. they don't give any potential warnings about it in the manual either. why not? search google for phpinfo.php and it brings up about 93,000 results. are these sites at risk? i don't hear about servers getting hacked "because" of PHP that often.

so i think we're given the impression that it's safe, but as every programmer knows ignorance is not bliss. it very well could be a risk. overall i don't think it's any different from the windows vs open-source argument.

is there a definitive answer? probably not.

Reply With Quote
  #6  
Old June 15th, 2005, 11:12 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Click here for more information.
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,775 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 13 h 47 m 18 sec
Reputation Power: 7
RE: Security Issue?

I personally keep my phpinfo hidden on my site. Why - there is no need for someone else to see it or how my site is configured. I _could_ have a hole somewhere and not realize it so why advertise it to the whole world.

A shared hosting company is a different animal though. Personally I beleive a shared hosting company should make available it's phpinfo to prospective customers if they request it (though most customers probably never will). Even if it is only available on a temporary page for a finite duration and password protected.

Reply With Quote
  #7  
Old June 16th, 2005, 05:09 AM
MAbans MAbans is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: San Diego CA USA
Posts: 217 MAbans User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to MAbans Send a message via Yahoo to MAbans
RE: Security Issue?

George Carlin says "You have to be realistic about Terrorism" and it all depends on what your site is offering. ie: NASA's website is alot more likely to be a source of attacks than let's say "Grandma's Old style recipe's" site.

Information is power so yes the phpinfo() page is ultimately a security risk. Researching your hosting provider is also key to make sure that your chances of being attacked are lower, because no system is invulnerable. I forone don't even have a phpinfo() page and if a client of mine would want to see that information for their own statisfaction I usually polite explain to them that I will show them by creating the file on the fly, then promptly deleting the page after for security reason and brief dicussiong why so not to alarm them.

Reply With Quote
  #8  
Old June 18th, 2005, 06:21 PM
jam wil's Avatar
jam wil jam wil is offline
James Williams
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Calgary // Kelowna
Posts: 377 jam wil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 15 m 7 sec
Reputation Power: 3
RE: Security Issue?

On my personal server, I would be quite reluctant to provide my phpinfo; simply because it has a whole lot of information about my computer itself, I'm not a hacker so I don't know what can be done with all that information but I'm sure it wouldn't be good.

Reply With Quote
  #9  
Old June 18th, 2005, 08:21 PM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to pickleman78
RE: Security Issue?

Ya, I think it could offer holes, mainly things like, register_globals, knowing that gives alot of hand written PHP scripts an easy way in. (or magic_quotes_gpc). Its not really a threat to well written scripts, but knowing a potential hole in a hand written script running on a smaller site, makes it much easier to get in.

And honestly, depending on what I was hacking it for, I would go for grandma's cookie site instead of nasa, mainly because you wouldn't be caught as easily, and you have a better chance of getting in, especially if your goal is to use it as a source for hacking elsewhere.

Overall, I think it should be provided to clients on request, or potential clients, if you're looking for a quick easy hack, then that would defer most from pursuing it farther to find holes (since you can find thousands on google anyway that may have the holes you're looking for)

Reply With Quote
  #10  
Old June 20th, 2005, 07:05 PM
aardvark aardvark is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 75 aardvark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 49 sec
Reputation Power: 3
RE: Security Issue?

For that matter, a shared hosting company could capture all the data from phpinfo() and put it into a text file or a spreadsheet, which could be made available to all who request it. Then you could delete the phpinfo() page forever and still make the data available to those who need to see it.

Reply With Quote
  #11  
Old June 21st, 2005, 10:17 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Click here for more information.
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,775 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 13 h 47 m 18 sec
Reputation Power: 7
RE: Security Issue?

related - anyone else see the yahoo phpinfo page that was sent out to the PHP mailing list? Pretty interesting.

Please note that the page was taken offline within minutes of the post.

Reply With Quote
  #12  
Old July 28th, 2005, 07:10 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Security Issue?

It will not be a threat if you know that your server is secure.
Most of webservers can be hacked even without seeing their phpinfo() anyways....

Reply With Quote
  #13  
Old July 28th, 2005, 07:58 AM
moon moon is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 358 moon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 40 m 8 sec
Reputation Power: 3
Send a message via Yahoo to moon
RE: Security Issue?


Quote:
It will not be a threat if you know that your server is secure.
Most of webservers can be hacked even without seeing their phpinfo() anyways....


Hackers/programmers know the threat or the wholes of each version of s/w you are providing them. So, It will facilitate
them and give it a try to hack easily rather than trying here and there.

I believe nothing is secure 100% but, the level of seurity of your site depends widely on how smart is the sys/security admin + The way your site is programmed +...etc.

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > Security Issue?


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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek