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

Can anybody communicate with the operating system without the phpserver?

Fro
Hi,

I have a php-script which writes uploaded files into a directory. My
php-script gives a specific names to the saved files. I found in the
directory a file which has a name which could not be given by the php-
script. Could it be that somebody (which is not a user of the
operating system) communicate with the operating system (creates
files) without the usage of my php-script? Or it is impossible and I
have to search for a mistake in my script?

Thank you!
Feb 28 '08 #1
15 1388

"Fro" <sh************@gmail.comwrote in message
news:c0**********************************@u69g2000 hse.googlegroups.com...
Hi,

I have a php-script which writes uploaded files into a directory. My
php-script gives a specific names to the saved files. I found in the
directory a file which has a name which could not be given by the php-
script. Could it be that somebody (which is not a user of the
operating system) communicate with the operating system (creates
files) without the usage of my php-script? Or it is impossible and I
have to search for a mistake in my script?

Thank you!
Sure, they could hack your server, either just your personal account data or
else the entire server. But it's 100 or 1000 times more likely that they
breached security through a file upload, if you use a reputable third-party
host.

Feb 28 '08 #2
Fro
>
Sure, they could hack your server, either just your personal account data or
else the entire server.
You say that they can hack:
1. My server.
2. My personal account data.
3. The entire server.
What do you understand under "personal account data"? The operating
system?

To remove "ambiguity" I should say that I do not have "my personal
server". I use a hosting which gives a php-server which has many
users.
But it's 100 or 1000 times more likely that they
breached security through a file upload, if you use a reputable third-party
host.
It is 100 or 1000 times more likely than what?
Feb 28 '08 #3
Fro wrote:
>Sure, they could hack your server, either just your personal account data or
else the entire server.
You say that they can hack:
1. My server.
2. My personal account data.
3. The entire server.
What do you understand under "personal account data"? The operating
system?

To remove "ambiguity" I should say that I do not have "my personal
server". I use a hosting which gives a php-server which has many
users.
>But it's 100 or 1000 times more likely that they
breached security through a file upload, if you use a reputable third-party
host.
It is 100 or 1000 times more likely than what?
I agree with Mason - it's much more likely your upload script has holes
in it than someone hacked your server.

Since you're using a shared host, it's remotely possible that they came
in through another site on the same host. But that's unlikely, unless
your hosting company has no idea what they're doing and other sites on
the host are either hacker sites or don't know what they're doing. But
any reputable host will prevent that from happening.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 29 '08 #4
Fro
Why do you continue to believe that "there is a 99% chance the problem
is in my code"? I put some argumentation against this believe. Why do
you just ignore it? Is their a mistake in my reasoning? If yes, just
show me it.

Because that's a fact.
:) I can prove my fact and you cannot prove your fact (which seems to
be a matter of believe). My prove is that php-script writs to the
directory as "nobody" (no matter whose script is that, mine or not).
Since I made the directory writable for "nobody", any script can write
to my directory (even if it is not mine). So, what is your
argumentation?
Mar 4 '08 #5
Fro
I guess so.
>
I think he needs to find a new line of work. Web development certainly
is not for him!
I have proved that you are wrong! Could you find a mistake in my
prove? Gould you give me at least ONE counterargument (I ask for that
already the third time!!!). Or the only think you can do is to offend
an opponent and refer to your irrational belief?
Mar 4 '08 #6
Fro
So, Jerry, do you have something to answer on that?

I have already told that "on my site" (on our server) there
are many scripts which does not belong to me (because we have many
users). I do not say that script is executed on the client machine.
The is executed on the server (where my scripts are also executed).
but the script is not written by me and it does not belong to me.
Mar 4 '08 #7
Fro
>
If your host has any security at all, other websites will not be able to
write into your directory. Only the files YOU upload will be able to
write there.
Did you read carefully my previous post before you start to offend
me??? In my previous post I gave you and answer from the host-support
in which they prove that they have this problem!!! Why did you ignore
this post? Or you thing I misinterpreted the answer from the host-
support??? If it is the case can you show me where I misunderstood the
answer?
Mar 4 '08 #8
Fro wrote:
>If your host has any security at all, other websites will not be able to
write into your directory. Only the files YOU upload will be able to
write there.
Did you read carefully my previous post before you start to offend
me??? In my previous post I gave you and answer from the host-support
in which they prove that they have this problem!!! Why did you ignore
this post? Or you thing I misinterpreted the answer from the host-
support??? If it is the case can you show me where I misunderstood the
answer?
No, your host's answer does not say that at all.

Do everyone a favor. Find another line of work.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Mar 4 '08 #9
Fro
>
No, your host's answer does not say that at all.

Do everyone a favor. Find another line of work.
You continue to discuss in your stupid way: no arguments, no logical
reasoning, just postulates and attempts to offend your opponents. What
is your IQ?
Mar 4 '08 #10
Fro wrote:
>No, your host's answer does not say that at all.

Do everyone a favor. Find another line of work.
You continue to discuss in your stupid way: no arguments, no logical
reasoning, just postulates and attempts to offend your opponents. What
is your IQ?
A hell of a lot higher than yours. I also have a hell of a lot more
programming experience than you do - and a hell of a lot more experience
with security issues than you do.

You asked your question. You got your answer. I can't help it if you're
too stupid to understand you are the most probably culprit here!

I'm through with you.

<plonk>

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Mar 4 '08 #11
Fro
I just put in the google "Jerry Stuckle php" and click on the first
link :)
http://www.thescripts.com/forum/thread757088.html

Mar 4 '08 #12
Fro
You continue to discuss in your stupid way: no arguments, no logical
reasoning, just postulates and attempts to offend your opponents. What
is your IQ?

A hell of a lot higher than yours. I also have a hell of a lot more
programming experience than you do - and a hell of a lot more experience
with security issues than you do.
It is even worser for you. In spite on the fact that you have 10s
years of the programming experience you cannot understand simple
things. But you making a progress. You finally understood that not
only my scripts can write to my directory! :)
Mar 4 '08 #13
I can't believe this discussion is still going on, even though the right
answers have been given right from the start.

Check out what Fro wrote:

<ae**********************************@u72g2000hsf. googlegroups.com>
I made a directory to be writable for "nobody" (i.e.
for those who communicate with the operating system via the php-server
that I use).
<2c**********************************@u69g2000hse. googlegroups.com>
The answer I got:
----------------------------------------------------
Yes, on servers where PHP runs as an Apache module
and .php scripts run under the Apache user nobody
this is possible. This is why setting 777 permissions
is always a concern from a security standpoint.
And the right answer was given by Tim:

<pm********************************@4ax.com>
It's certainly possible, but how would they have found your directory?

@Fro:

Setting 777 permissions is the same as leaving your door unlocked and
putting up a sign saying: "Invitation to everyone: Make yourself at
home! The door is unlocked and the alarm code is 12345." And when you
return home and find that someone has taken up your offer you go: "Who
ate from my plate? Who sat in my chair? Who slept in my bed?" and
complain to the person who built your house.

The real answer is: Don't set 777 permissions. Never ever. Because if
you do you allow your directory to be writable for everyone.

Bye!
Mar 5 '08 #14
Fro
>
The real answer is: Don't set 777 permissions. Never ever. Because if
you do you allow your directory to be writable for everyone.
What than should I do? It is the only way I know to allow visitors of
my site to upload files. Do you know another way to reach the goal?
Mar 5 '08 #15
Fro
>
And the right answer was given by Tim:
It's certainly possible, but how would they have found your directory?
This is cannot be a right answer because it is not answer (it is a
question). An the answer on that question is:
There are at least two way to find my directory.
1. They could use "ls" command.
2. They see the directory names in the address line of the browser (if
they watching my page).
Mar 5 '08 #16

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

Similar topics

32
by: David Brown | last post by:
Hello. I recently came across a free operating system called Unununium (or something like that) and it was developed in Python and Assembly. Now, I have been looking for a way to make an...
27
by: Kevin A | last post by:
Hi, Is there a way to determine the name and version of the operating system in a portable way? (for Solaris/Linux) Thanks, Kevin
2
by: seash | last post by:
H iam developing my windows form application(ide:visual studio.net 2003, visual c#) on windows 2000 professional operating system , but when i run the exe on Xp operating system, the screen ...
3
by: BrianDH | last post by:
Hi I have a VB.Net windows application that for some reason when running will not allow the user to shut-down/reboot the Operating System without first closing my application. Has anyone had the...
0
by: Rob R. Ainscough | last post by:
I'm having a bizarre problem with a web application that used to work fine (about 2 days ago) -- from within VS 2005 if I select Build from Debug configuration, it would start to compile and go...
9
by: polkid | last post by:
I need some guidance here please! I need to write code to talk from a PC to a DAQ type of thing, and have there be a stream of data back and forth between them. I don't want to use TCP because I...
9
by: tsung-yu | last post by:
Hello any expert, I has a vb.net program. For user requirement, I need to run and communicate an old DOS execution file. But, how to run and communicate a DOS program in a VB.NET program?...
6
by: Mike9900 | last post by:
How can I connect my .NET app which use remoting to communicate over internet, 2 instance of the same app? My app is already done using .NET Remoting. I am wondering if to change them to WCF or...
4
by: Hero Doug | last post by:
A friennd and I were talking about OS development last night and a few questions were raised that need some clarification. I did the usual search and it turned up the usual garbage, so I'm hoping...
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
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
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
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
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,...

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.