Connecting Tech Pros Worldwide Help | Site Map

security question

  #1  
Old January 29th, 2006, 09:45 PM
windandwaves
Guest
 
Posts: n/a
Hi Folk

If I have a file in the public html directory (e.g. mypage.php) then can
anyone read this file (i.e. read its actual content rather then the
interpreted contents it returns when someone opens
www.myurl.com/mypage.php)?

If so, how do they do that?

TIA

- Nicolaas




  #2  
Old January 29th, 2006, 09:55 PM
Chris
Guest
 
Posts: n/a

re: security question


Hi,

Unless they have a login to your server, then no they can't. They see
exactly what you see through a browser.

(If they have access to the server however they can see the code).

windandwaves wrote:[color=blue]
> Hi Folk
>
> If I have a file in the public html directory (e.g. mypage.php) then can
> anyone read this file (i.e. read its actual content rather then the
> interpreted contents it returns when someone opens
> www.myurl.com/mypage.php)?
>
> If so, how do they do that?
>
> TIA
>
> - Nicolaas
>
>
>
>[/color]
  #3  
Old January 29th, 2006, 10:45 PM
Sadara
Guest
 
Posts: n/a

re: security question


windandwaves wrote:[color=blue]
> Hi Folk
>
> If I have a file in the public html directory (e.g. mypage.php) then can
> anyone read this file (i.e. read its actual content rather then the
> interpreted contents it returns when someone opens
> www.myurl.com/mypage.php)?
>
> If so, how do they do that?[/color]
if your webserver is not configured to interpret files with the file
extension php by passing them to PHP, then it will most likely display
/mypage.php as plain text when it is requested.

s
  #4  
Old January 29th, 2006, 10:45 PM
xclarky@gmail.com
Guest
 
Posts: n/a

re: security question


If PHP is misconfigured or otherwise fails to run then the file will
not be processed by the engine resulting in the contents of the file
being exposed in plain text format. If everything is configured
correctly and the PHP files are parsed only the output will be received
through the HTTP server.

  #5  
Old January 29th, 2006, 11:15 PM
Iván Sánchez Ortega
Guest
 
Posts: n/a

re: security question


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

windandwaves wrote:
[color=blue]
> If I have a file in the public html directory (e.g. mypage.php) then can
> anyone read this file (i.e. read its actual content rather then the
> interpreted contents it returns when someone opens
> www.myurl.com/mypage.php)?[/color]

Not in most cases. As it has been already said, .php files are interpreted
and run, not read, if the webserver configuration is right.
[color=blue]
> If so, how do they do that?[/color]

A way to circumvent this is to make use of some unsecure script that is able
to read files from the server and output it to the client with no or little
checks, something like:

www.myurl.com/download.php?file=../../mypage.php
http://www.myurl.com/download.php?fi.../../etc/passwd

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD3UGQ3jcQ2mg3Pc8RAi40AJ9lvrg5A/oW6MPGkQq7SM7DCeSyIgCffGTw
r182OPuOJZtW21YG9g59g3g=
=ut0r
-----END PGP SIGNATURE-----
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
A simple security question Oriane answers 5 September 8th, 2008 07:35 AM
Adding security question/answer check to ASP.NET *ChangePassword* control Ken Fine answers 2 August 25th, 2008 02:25 AM
How to remove Security Question and Security Answer from membership provider? vincent90152900 answers 4 October 29th, 2007 01:49 AM
asp.net 2.0 membership secuirty password recovery without security question? jobs answers 0 June 5th, 2007 04:05 PM
<asp:PasswordRecovery -- remove security question David R. answers 4 January 9th, 2006 05:05 PM