php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8123 PHP script extension Problem
Submitted: 2000-12-05 11:35 UTC Modified: 2000-12-07 19:30 UTC
From: younggon at hotmail dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.3pl1 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: younggon at hotmail dot com
New email:
PHP Version: OS:

 

 [2000-12-05 11:35 UTC] younggon at hotmail dot com
PHP script extension Problem

Vulnerable : Under PHP 4.0.3pl1


httpd.conf 
=======================================================
AddType application/x-httpd-php .php
=======================================================

=======================================================
cat > "phpbug1.php" << __EOF__
<?   phpinfo(); ?>
__EOF__
=======================================================

Generally, Apache refers to httpd.conf and recognizes 
the extension of "phpbug1.php" as an extension of PHP 
script.

=======================================================
cat > "phpbug2.php " << __EOF__
<? phpinfo(); ?>
__EOF__
=======================================================

In case of "phpbug2.php " script, it is treated as text
strings since it is recognized as "phpbug2.php%20".


*** Problem
=======================================================
cat > "phpbug3.php." << __EOF__
<? phpinfo(); ?>
__EOF__
=======================================================
cat > "phpbug4.php......." << __EOF__
<? phpinfo(); ?>
__EOF__
=======================================================

"phpbug3.php." has to be treated as normal text strings
since it's got no extension.

However, PHP engine recognizes "phpbug3.php." as a PHP 
script and excutes it. PHP engine executes 
"phpbug4.php......." as a php script too.


=========================================================
By: Young Gon Kim <younggon@hotmail.com> 12/5/2000
http://www.khdp.org/
http://drill.hackerslab.org/~piranha/
=========================================================

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-07 19:30 UTC] jason@php.net
This is a webserver issue, not a php issue

-Jason
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC