473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

is PHP less secure than Perl, Python, or Ruby?

I honestly don't know. But, I have seen articles and posts about how
PHP is terribly insecure. I don't usually see comparisons to other
common web languages.

I think the big vulnerablity is supposed to be code injections.

Another security issue would be having code stolen, but I think that
PHP can be protected from that.

Obviously, I don't know a lot about it.

Feb 27 '07 #1
5 3666
walterbyrd schrieb:
I honestly don't know. But, I have seen articles and posts about how
PHP is terribly insecure. I don't usually see comparisons to other
common web languages.

I think the big vulnerablity is supposed to be code injections.

Another security issue would be having code stolen, but I think that
PHP can be protected from that.

Obviously, I don't know a lot about it.
Well, it is pretty easy to write insecure php applications. And other
way round it is possible to write good and secure code in php. So you
can't say php is insecure in general, but you need some experience to
recocgnize all the possible vulnerabilities.
Feb 27 '07 #2
On Tue, 27 Feb 2007 07:30:18 -0800, walterbyrd wrote:
I honestly don't know. But, I have seen articles and posts about how PHP
is terribly insecure. I don't usually see comparisons to other common
web languages.
Everything is only as secure as you make it.
I think the big vulnerablity is supposed to be code injections.
I'm not sure how you would go about injecting code into a server-side
language.
Another security issue would be having code stolen, but I think that PHP
can be protected from that.
None of the PHP code is ever sent to the browser... only the result of the
code running.
Feb 27 '07 #3
walterbyrd wrote:
I honestly don't know. But, I have seen articles and posts about how
PHP is terribly insecure. I don't usually see comparisons to other
common web languages.

I think the big vulnerablity is supposed to be code injections.

Another security issue would be having code stolen, but I think that
PHP can be protected from that.

Obviously, I don't know a lot about it.
Walter,

As Mike says, it's only as secure as you write it. To elaborate a
little more:

Security is not really a language issue - any language can be insecure,
even a compiled one such as C/C++. And any language can be secure.

All scripting languages tend to be less secure only because the source
code is there to see. Anyone with physical access to the server
physically or through non-web routes such as telnet/ssh or ftp can get
that source code (this includes hosting companies). Sure, they can get
a compiled code also - but that takes a lot more work to figure out
what's going on.

The only "secret" to security is the same in all languages. Understand
the language. Understand the vulnerabilities (such as SQL injection - a
potential problem in ANY language when you're using a SQL database).
And understand how to secure your code against those vulnerabilities.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 27 '07 #4
..oO(walterbyrd)
>I honestly don't know. But, I have seen articles and posts about how
PHP is terribly insecure. I don't usually see comparisons to other
common web languages.
You can write insecure and vulnerable code in every language.
A tool is just as good as the one who uses it.
>I think the big vulnerablity is supposed to be code injections.
There are many different kinds of injections (code, SQL, mail headers,
XSS ...). Some languages may have their own ways to handle some of them
(tainted variables, prepared statements ...), in others you have to make
your hands more dirty, but you always have to take them into account in
every language used for server-side programming.
>Another security issue would be having code stolen, but I think that
PHP can be protected from that.
PHP is executed on the server. If someone is able to get the code then
you have another _real_ problem.

Micha
Feb 27 '07 #5
walterbyrd wrote:
I honestly don't know. But, I have seen articles and posts about how
PHP is terribly insecure.
PHP is not inherently insecure, but because it's very easy to write PHP,
it has become rather a popular language amongst people with little, if
any, formal training on how to program. Because of this, there are an
awful lot of badly written PHP scripts out there; installing them may well
open up your server to abuse.

Most security issues (in *any* language) arise from a failure to properly
check user input. Programmers make assumptions that a particular bit of
submitted input doesn't, say, contain an apostrophe and then they feed it
into a database. If a user accidentally enters an apostrophe where they
shouldn't, this may cause an error trying to insert the data into the
database. If the user *deliberately* enters an apostrophe, and then some
other specially crafted input, then they may be able to do malicious
things.

Most security issues arise from programmers making assumptions when they
shouldn't. If you always check and double-check every variable before
doing anything critical with it, then you've solved 9% of security issues
right there. (90% of security issues are caused by users who choose easy
passwords, or write their passwords on their forehead so that they can
remember it. The other 1% are "miscellaneous".)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Feb 27 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sarah Tanembaum | last post by:
I was wondering if it is possible to create a secure database system using RDBMS(MySQL, Oracle, SQL*Server, PostgreSQL etc) and web scripting/programming language(Perl, PHP, Ruby, Java, ASP, etc)...
7
by: Chris | last post by:
Hi I am posting this on both the perl and python groups My intention is not to start a war or anything else, I would just like some pragmatic advice. My apologies to the python group I am...
13
by: Wayne Folta | last post by:
I've been a long-time Perl programmer, though I've not used a boatload of packages nor much of the tacky OO. A couple of years ago, I decided to look into Python and Ruby. Python looked OK, but...
77
by: Hunn E. Balsiche | last post by:
in term of its OO features, syntax consistencies, ease of use, and their development progress. I have not use python but heard about it quite often; and ruby, is it mature enough to be use for...
12
by: Gary Nutbeam | last post by:
I've noticed that the Perl camp has a very nice web/database environment called Maypole. Ruby has the Rails environment which on the surface seems similar to Maypole. I can't find anything in...
2
by: calfdog | last post by:
Hello, I was wondering if anyone could tell me why fireEvent works in every language but Python with the latest Internet Explorer? I tried this page that has two listboxes if you select ...
16
by: English Teacher | last post by:
Which would be a more useful language to learn, Smalltalk or Pearl? Learning curves any different? Thanks!
0
by: UrsusMaximus | last post by:
One measurement by which Python is more popular than Ruby, Java, Perl, PHP and .NET is in the world of Podcasts. At Podcastalley, podcasts are ranked by popularity in each of several genre's. In...
3
by: CharlesA | last post by:
knowing only how to do C# web apps and nothing about the other standards out there.... anyone care to enlighten me about how CGI works? are (Perl and CGI the same thing) is it just a language that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.