473,386 Members | 1,715 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,386 software developers and data experts.

security question

Hi all,

I've been reading as much as I can on this matter but I still am not
totally clear on what I need to do, so here goes... sorry if the
question isn't totally PHP related, but my entire project is coded in
PHP so I figured this would be as good a place as any to ask.

If I have two PHP scripts, both protected by SSL, and the second script
sends an email containing sensitive data using mail() with info provided
in the first script, is this enough for security or do I also need to
implement something like PGP mail? Basically, is the email secure when
sent out because it is sent over a secure SSL connection, or is this not
the case? Thanks in advance for any feedback.

Marcus

Jul 16 '05 #1
1 2202
>I've been reading as much as I can on this matter but I still am not
totally clear on what I need to do, so here goes... sorry if the
question isn't totally PHP related, but my entire project is coded in
PHP so I figured this would be as good a place as any to ask.

If I have two PHP scripts, both protected by SSL, and the second script
Scripts are not protected by SSL. Communication between a web
browser and the server may be protected by SSL. SSL is a way to
communicate your credit card number to the scam artist operating
the web site without anyone ELSE being able to see it until the
scam artist sells it to the world. It does not in any way protect
your credit card number from being stuck by a stupid web designer
into a file where anyone in the world can fetch it with the web
browser. (See also: EGGHEAD, although I don't know the exact details
of their security breach that released thousands of credit card
numbers.)
sends an email containing sensitive data using mail() with info provided
in the first script, is this enough for security or do I also need to
implement something like PGP mail?
SSL used by a web server does not in any way protect email sent
by a CGI or PHP page. For that matter, it doesn't protect SQL
queries to a database either unless the database connection is
encrypted.

Where is the email going? If the email is going out over the
Internet, it's vulnerable to snooping in transit. If the email is
going to a mailbox on the same host as the webserver, it may never
show up on a sniffable net cable, so only the admins of the box
could see it. If the email is going someplace else on a LAN, it
may be very difficult for anyone not an employee of your company
or the hosting company to sniff it. This says nothing about what
happens after the email goes into the mailbox. That could be hacked,
or it could be downloaded into a Windows machine with a virus/worm
that sends it all over the Internet.
Basically, is the email secure when
sent out because it is sent over a secure SSL connection,
NO! Sending *MAIL* over SSL is independent of the web browser using
SSL. Even if mail is sent encrypted over one hop, don't assume it
will be sent encrypted over all hops. Many (I suspect: nearly all)
mail servers simply don't do encryption of mail messages sending
server-to-server. If you want it encrypted, send it encrypted (e.g.
use PGP).

Oh, yes, just because you use SSL for the web server and PGP for
the email doesn't mean there aren't lots of credit card numbers in
the web server logs.
or is this not
the case? Thanks in advance for any feedback.


Gordon L. Burditt
Jul 16 '05 #2

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

Similar topics

116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
32
by: Mike MacSween | last post by:
Further to 'Security - more complex than I thought' Has anybody ever seen any studies? Or anecdotal evidence? Done any studies themselves? Done any lab testing - you know - 10 users asked to get...
5
by: Greg Strong | last post by:
Hello All, What are the best ways to implement security for Access databases (i.e. ..MDB files)? I ask the question from a general perspective. Why? Well I had written a prototype database...
1
by: Jeremy S. | last post by:
..NET's code Access Security enables administrators to restrict the types of things that a .NET application can do on a local computer. For example, a ..NET Windows Forms application can be...
15
by: himilecyclist | last post by:
My State government organization has written a PHP/MySQL application which has been in production for about 6 months and has been highly successful. We are now embarking on a similar database...
0
by: jobs | last post by:
Using the delivered login controls, I see there is something for passwordrecovery. But I can't seem to find how to set properties so it does not ask me for my security question. Is there any way...
18
by: Earl Anderson | last post by:
First, I feel somewhat embarrassed and apologetic that this post is lengthy, but in an effort to furnish sufficient information (as opposed to too little information) to you, I wanted to supply all...
4
by: vincent90152900 | last post by:
How to remove Security Question and Security Answer from membership provider? Following is my codes. Please tell me how to remove Question and Answer from membership provider. Thank you for...
1
by: =?Utf-8?B?aGVyYmVydA==?= | last post by:
Question 1: How do I turn off WCF security to get my apps out the door quickly? Question 2: Where can I find a step by step article/flowchart how to configure WCF security (the WCF books miss this...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.