Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97461 - www-apps/phpwebsite: Multiple vulnerabilities
Summary: www-apps/phpwebsite: Multiple vulnerabilities
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Other
: High major (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B1? [glsa]
Keywords:
: 98040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-30 01:55 UTC by Thierry Carrez (RETIRED)
Modified: 2005-07-10 04:27 UTC (History)
3 users (show)

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


Attachments
phpwebsite.patch (phpwebsite.patch,1.16 KB, patch)
2005-07-04 13:31 UTC, Thierry Carrez (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Carrez (RETIRED) gentoo-dev 2005-06-30 01:55:17 UTC
phpwebsite includes an affected XMLRPC PHP library and should be patched.
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-06-30 02:06:19 UTC
Ccing stuart. Feel free to open this bug as soon as you think it's public enough.
Comment 2 Thierry Carrez (RETIRED) gentoo-dev 2005-07-01 10:19:41 UTC
Sent an email upstream to make sure they know about it.
Comment 3 Thierry Carrez (RETIRED) gentoo-dev 2005-07-04 13:31:26 UTC
Created attachment 62617 [details, diff]
phpwebsite.patch

Backported patch from PEAR lib fix
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2005-07-04 13:49:09 UTC
web-apps: please bump with patch... and test a little (I didn't)
Comment 5 Thierry Carrez (RETIRED) gentoo-dev 2005-07-06 01:22:12 UTC
Also from :
http://phpwebsite.appstate.edu/index.php?module=announce&ANN_user_op=view&ANN_id=989

Diabolic Crab, an independent security researcher at Hackers Center has revealed
some security weaknesses in phpWebSite. Mr. Crab was kind enough to contact us
before these holes become public knowledge.

Please download the security patch and untar it in your phpWebSite version
0.10.1 installation directory.


http://phpwebsite.appstate.edu/downloads/security/phpwebsite_security_patch_20050705.2.tgz
md5sum : 7e22916bbac8c27677a65eb31b71ebe3

Posted on phpwebsite.appstate.edu. More details about the exploit will be
released soon.
___________________________________________________________

Note: they didn't patch the XML-RPC thing in that patch ?!?
So we have to apply both patches to fix them...
Comment 6 Thierry Carrez (RETIRED) gentoo-dev 2005-07-06 01:28:22 UTC
*** Bug 98040 has been marked as a duplicate of this bug. ***
Comment 7 Aaron Walker (RETIRED) gentoo-dev 2005-07-06 03:40:38 UTC
It's in CVS, with tarball and patch.  I'm unable to test it so I won't be
marking x86 stable.  CC'd archs please stable.
Comment 8 Renat Lumpau (RETIRED) gentoo-dev 2005-07-06 04:28:40 UTC
I can do one better - version bump to 0.10.1, with both patches
Comment 9 Thierry Carrez (RETIRED) gentoo-dev 2005-07-06 05:47:55 UTC
Arches please mark stable whatever is more appropriate to you. In doubt, do 0.10.1. 
Comment 10 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-07-06 13:05:13 UTC
Stable on ppc.
Comment 11 Jason Wever (RETIRED) gentoo-dev 2005-07-06 18:55:42 UTC
The 0.10.1 ebuild is broken because it tries to call epatch on a file that
doesn't exit;

>>> Unpacking source...
>>> Unpacking phpwebsite-0.10.1-full.tar.gz to
/var/tmp/portage/phpwebsite-0.10.1/work
>>> Unpacking phpwebsite_security_patch_20050705.2.tgz to
/var/tmp/portage/phpwebsite-0.10.1/work/phpwebsite-0.10.1-full

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/gentoo-x86/www-apps/phpwebsite/files/phpwebsite-0.10.1-xml-rpc.diff
 *   ( phpwebsite-0.10.1-xml-rpc.diff )


!!! ERROR: www-apps/phpwebsite-0.10.1 failed.
!!! Function epatch, Line 219, Exitcode 0
!!! Cannot find $EPATCH_SOURCE!
!!! If you need support, post the topmost build error, NOT this status message.
Comment 12 Renat Lumpau (RETIRED) gentoo-dev 2005-07-06 19:02:16 UTC
My apologies. Fixed in CVS
Comment 13 Thierry Carrez (RETIRED) gentoo-dev 2005-07-07 09:47:47 UTC
Arches: please mark stable so that the GLSA on this exploited vuln can go out.
Comment 14 Wendall Cada 2005-07-07 11:34:06 UTC
There was a bug in Security.php, please wait for a fix.

Wendall
Comment 15 Wendall Cada 2005-07-07 11:38:56 UTC
Ok, it is a one liner fix. The regex was removing spaces from valid url
characters by mistake. Line 113 in Security.php should read:
preg_match('/%(0|1)(\d|[a-f])/i', $_SERVER['REQUEST_URI'])) {

Matt McNaney from ASU will be posting the updated patch on
http://phpwebsite.appstate.edu shortly.

Wendall
Comment 16 Wendall Cada 2005-07-07 12:12:37 UTC
xmlrpc libs are updated with phpwebsite project. It can be noted that none of
the xml_rpc functions are currently in use with phpWebSite.

Wendall
Comment 17 Thierry Carrez (RETIRED) gentoo-dev 2005-07-07 13:54:48 UTC
back to ebuild status
Comment 18 Thierry Carrez (RETIRED) gentoo-dev 2005-07-08 01:55:59 UTC
Updated July 7!: The patch has been updated, please download the new file.
Please update ebuild accordingly.
Comment 19 Wendall Cada 2005-07-08 02:07:41 UTC
I will try to be more specific when I make comments. I am a phpWebSite
developer. I thought I was clear that there was a change in the patch on 7/7.
Was this not clear, or is it just being repeated for clarity for someone else?

Wendall
Comment 20 Thierry Carrez (RETIRED) gentoo-dev 2005-07-08 03:03:50 UTC
Yes, it was repeated (to the ebuild maintainer) for clarity. You said "will be
posting"...
Comment 21 Renat Lumpau (RETIRED) gentoo-dev 2005-07-08 05:39:20 UTC
updated patch URL and rev-bumped to 0.10.1-r1

Wendall - the second URL on the announcement page is broken.
Comment 22 Stefan Cornelius (RETIRED) gentoo-dev 2005-07-08 09:22:34 UTC
Arches, you know the deal - please test and mark 0.10.1-r1 stable. Thanks!
Comment 23 Renat Lumpau (RETIRED) gentoo-dev 2005-07-08 09:29:47 UTC
stable on x86
Comment 24 Jason Wever (RETIRED) gentoo-dev 2005-07-08 18:09:30 UTC
Stable on SPARC.

Please note that the postinstall instructions lack anything to do with upgrades,
and that info needs to be read out of the upstream provided upgrade file.
Comment 25 Bryan Østergaard (RETIRED) gentoo-dev 2005-07-09 15:38:57 UTC
Stable on alpha.
Comment 26 Stefan Cornelius (RETIRED) gentoo-dev 2005-07-09 15:50:41 UTC
Ready for GLSA
Comment 27 Matthias Geerdsen (RETIRED) gentoo-dev 2005-07-10 04:27:15 UTC
GLSA 200507-07

thanks everyone