First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 174451
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Pierre-Yves Rofes <py@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 174451 depends on: Show dependency tree
Bug 174451 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-04-13 13:05 0000
A vulnerability has been discovered in PhpWiki, which can be exploited by
malicious people to compromise a vulnerable system.

The "UpLoad" wiki page (index.php/UpLoad) fails to properly validate the
extension of an uploaded file. The blacklist of disallowed file extensions does
not include for example ".php3" and ".phtml". This can be exploited to upload
files with such extensions and execute arbitrary PHP code on the server.

Successful exploitation requires being logged in and that the webserver is
configured to execute PHP scripts with such extensions. In the default
configuration of PhpWiki, no registration or validation is necessary to log in.

NOTE: The vulnerability is currently being actively exploited.

The vulnerability is confirmed in version 1.3.12p3. Other versions may also be
affected.

Solution:
Disable the UpLoad functionality by giving the file "lib/plugin/UpLoad.php" the
permissions 000 or by moving the file outside of the web tree.

------- Comment #1 From Pierre-Yves Rofes 2007-04-13 13:06:26 0000 -------
setting status. web-apps, please advise.

------- Comment #2 From Pierre-Yves Rofes 2007-04-13 13:21:03 0000 -------
Hmm no, I was right at first, it's a B1 since ppc had a stable version. sorry
for the noise.

------- Comment #3 From Gunnar Wrobel 2007-05-10 13:03:17 0000 -------
There is currently no fixed version available from UPSTREAM. I did proceed as
suggested by the advisory and automatically remove the UpLoad.php file during
the installation.

Now there is an updated ebuild phpwiki-1.3.10-r3 that contains this fix. It is
still marked unstable for ppc. Please test and mark stable on ppc as soon as
possible.

I removed two older ebuilds phpwiki-1.3.1{1,2} and added phpwiki-1.3.13_rc1
which will also remove UpLoad.php automatically during install.

Please advise people with a phpwiki installation to immeadiately remove their
UpLoad.php file.

------- Comment #4 From Pierre-Yves Rofes 2007-05-10 13:19:43 0000 -------
ppc, please test and mark www-apps/phpwiki-1.3.10-r3 stable.

------- Comment #5 From Tobias Scherbaum 2007-05-14 18:35:52 0000 -------
ppc stable

------- Comment #6 From Pierre-Yves Rofes 2007-05-14 18:47:44 0000 -------
thanks. ready for glsa.

------- Comment #7 From Raphael Marichez 2007-05-17 13:31:18 0000 -------
GLSA 200705-16, thanks everybody

First Last Prev Next    No search results available      Search page      Enter new bug