Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

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 January 12th, 2001, 05:35 PM
maurits maurits is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 0 maurits User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

Hi,

We are about to sign a contract with an internet firm who's going to build our website. They have suggested to build the site in perl (using the fast cgi module on a dedicated apache webserver running mysql).

The security issue is very important because we are going to give away cash and product prices to our visitors.

I have been looking around the internet for articles and came across many articles suggesting that perl is less secure than php is.

I would very much appreciate any advice on either programming language or hints on how to make a solid decision on this matter.

Thank you very much in advance,

Maurits



Reply With Quote
  #2  
Old January 16th, 2001, 04:06 PM
Khaled Khaled is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 0 Khaled User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
its true that perl is less secure that php,BUT this is only true if the programmer knows nothing about security.

While it might be the opposite if the PERL programmer is aware of security issues.

You can choose what you want as long as the firm you are going to make a contract with is trusted.

Reply With Quote
  #3  
Old January 18th, 2001, 10:56 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
That depends whether you are talking about internal or external.
Internal is other users on the system, like a webhosting which hosts for different people.
External, of course, the visitors.

If you are running a stand-alone web server where no other users can have direct (physical) or indirect access to it, then I would say, for the security point of view, Perl and PHP are the same.

On the other hand, if you are on a shared server, PHP is extremely insecure since php script often run as a module of Apache instead of a stand-alone CGI, or your scripts need to be world readable. As for Perl, your web server can configure cgi wrap or suexec, this way, nobody accept root and yourself and read it.

To put it simple, Perl is more secure than PHP if you also worry about internal users. It's the fact the PHP often has holes or bugs found at least once a month. If you choose PHP, you need to keep your version up-to-date. You said you will be using fast cgi module, that is also world readable, though.

Reply With Quote
  #4  
Old January 18th, 2001, 11:37 PM
zebbx zebbx is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Houston, TX
Posts: 6 zebbx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
One problem with PHP


One thing I have notice is without the proper precautions using the PHP function show_source() is very insecure.

I had a fellow admin give me a regular user account on his server just to prove a point and I wrote this simple script.

<?php

if(!$QUERY_STRING) {
show_source("test.php");
} else {
show_source($QUERY_STRING);
}

?>

call /test.php?/path/to/file.conf


of course this simple example gives them only read access but there arew many more things you can do in PHP.

I'm not telling you to not use PHP. I really love PHP compared to perl. Just giving you a heads up on something to check for.

Zebbx

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > important security decision: perl or php


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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT