Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 97461
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Thierry Carrez (RETIRED) <koon@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
phpwebsite.patch phpwebsite.patch patch Thierry Carrez (RETIRED) 2005-07-04 13:31 0000 1.16 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 97461 depends on: Show dependency tree
Bug 97461 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: 2005-06-30 01:55 0000
phpwebsite includes an affected XMLRPC PHP library and should be patched.

------- Comment #1 From Thierry Carrez (RETIRED) 2005-06-30 02:06:19 0000 -------
Ccing stuart. Feel free to open this bug as soon as you think it's public
enough.

------- Comment #2 From Thierry Carrez (RETIRED) 2005-07-01 10:19:41 0000 -------
Sent an email upstream to make sure they know about it.

------- Comment #3 From Thierry Carrez (RETIRED) 2005-07-04 13:31:26 0000 -------
Created an attachment (id=62617) [details]
phpwebsite.patch

Backported patch from PEAR lib fix

------- Comment #4 From Thierry Carrez (RETIRED) 2005-07-04 13:49:09 0000 -------
web-apps: please bump with patch... and test a little (I didn't)

------- Comment #5 From Thierry Carrez (RETIRED) 2005-07-06 01:22:12 0000 -------
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 From Thierry Carrez (RETIRED) 2005-07-06 01:28:22 0000 -------
*** Bug 98040 has been marked as a duplicate of this bug. ***

------- Comment #7 From Aaron Walker (RETIRED) 2005-07-06 03:40:38 0000 -------
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 From Renat Lumpau 2005-07-06 04:28:40 0000 -------
I can do one better - version bump to 0.10.1, with both patches

------- Comment #9 From Thierry Carrez (RETIRED) 2005-07-06 05:47:55 0000 -------
Arches please mark stable whatever is more appropriate to you. In doubt, do
0.10.1. 

------- Comment #10 From Michael Hanselmann (hansmi) (RETIRED) 2005-07-06 13:05:13 0000 -------
Stable on ppc.

------- Comment #11 From Jason Wever (RETIRED) 2005-07-06 18:55:42 0000 -------
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 From Renat Lumpau 2005-07-06 19:02:16 0000 -------
My apologies. Fixed in CVS

------- Comment #13 From Thierry Carrez (RETIRED) 2005-07-07 09:47:47 0000 -------
Arches: please mark stable so that the GLSA on this exploited vuln can go out.

------- Comment #14 From Wendall Cada 2005-07-07 11:34:06 0000 -------
There was a bug in Security.php, please wait for a fix.

Wendall

------- Comment #15 From Wendall Cada 2005-07-07 11:38:56 0000 -------
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 From Wendall Cada 2005-07-07 12:12:37 0000 -------
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 From Thierry Carrez (RETIRED) 2005-07-07 13:54:48 0000 -------
back to ebuild status

------- Comment #18 From Thierry Carrez (RETIRED) 2005-07-08 01:55:59 0000 -------
Updated July 7!: The patch has been updated, please download the new file.
Please update ebuild accordingly.

------- Comment #19 From Wendall Cada 2005-07-08 02:07:41 0000 -------
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 From Thierry Carrez (RETIRED) 2005-07-08 03:03:50 0000 -------
Yes, it was repeated (to the ebuild maintainer) for clarity. You said "will be
posting"...

------- Comment #21 From Renat Lumpau 2005-07-08 05:39:20 0000 -------
updated patch URL and rev-bumped to 0.10.1-r1

Wendall - the second URL on the announcement page is broken.

------- Comment #22 From Stefan Cornelius (RETIRED) 2005-07-08 09:22:34 0000 -------
Arches, you know the deal - please test and mark 0.10.1-r1 stable. Thanks!

------- Comment #23 From Renat Lumpau 2005-07-08 09:29:47 0000 -------
stable on x86

------- Comment #24 From Jason Wever (RETIRED) 2005-07-08 18:09:30 0000 -------
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 From Bryan Østergaard (RETIRED) 2005-07-09 15:38:57 0000 -------
Stable on alpha.

------- Comment #26 From Stefan Cornelius (RETIRED) 2005-07-09 15:50:41 0000 -------
Ready for GLSA

------- Comment #27 From Matthias Geerdsen 2005-07-10 04:27:15 0000 -------
GLSA 200507-07

thanks everyone

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug