Critical wordpress update: HTML sanitization

Bug #695646 reported by Robie Basak
270
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wordpress (Ubuntu)
Fix Released
High
Unassigned
Lucid
Fix Released
High
Unassigned
Maverick
Fix Released
High
Unassigned
Natty
Fix Released
High
Unassigned

Bug Description

Binary package hint: wordpress

See http://wordpress.org/news/2010/12/3-0-4-update/

It isn't stated if this vulnerability applies to version 2.9.2. However, the patch applies almost cleanly (just one hunk failed) so it appears to me that it does.

Revision history for this message
Robie Basak (racb) wrote :

I've made this public as the upstream announcement is public.

visibility: private → public
Revision history for this message
Robie Basak (racb) wrote :

Here's the equivalent patch that applies cleanly to 2.9.2. However, although it looks OK to me at a cursory glance, I haven't checked for any unintended side-effects, so it needs review.

tags: added: patch
Revision history for this message
Jamie Flournoy (jamie-pervasivecode) wrote :

The code in the patch looks sane to me, and applied cleanly against my installation of wordpress 2.9.2-1ubuntu1 (Lucid).

The patched WP's blog seems to work properly afterward; I restarted Apache and logged in as admin, created a new post and 2 comments and that worked fine.

Revision history for this message
Robie Basak (racb) wrote :

What I'm worried about is that I don't know the innards of Wordpress or its internal APIs, and I don't know that the 3.0.4 API has changed subtly since 2.9.2 or not.

As upstream hasn't published an exploit, there's nothing to test against.

Changed in wordpress (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in wordpress (Ubuntu Maverick):
importance: Undecided → High
Changed in wordpress (Ubuntu Lucid):
importance: Undecided → High
Changed in wordpress (Ubuntu Maverick):
status: New → Triaged
Changed in wordpress (Ubuntu Lucid):
status: New → Triaged
Revision history for this message
Artur Rona (ari-tczew) wrote :

I can prepare a full debdiff for lucid and maverick, but I prefer to use bzr which is broken on Ubuntu natty. If someone else want to fix it in lucid and maverick, feel free.

Changed in wordpress (Ubuntu Natty):
assignee: nobody → Artur Rona (ari-tczew)
status: Triaged → In Progress
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

ACK patch for Lucid.

Changed in wordpress (Ubuntu Lucid):
status: Triaged → Confirmed
tags: added: security-verification
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Uploaded fix to the ubuntu-security-proposed PPA.

Changed in wordpress (Ubuntu Lucid):
status: Confirmed → In Progress
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Uploaded fix for maverick to the ubuntu-security-proposed PPA using the upstream patch, which applied cleanly.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Artur, I've already prepared the patch for natty.

Changed in wordpress (Ubuntu Natty):
assignee: Artur Rona (ari-tczew) → nobody
Changed in wordpress (Ubuntu Maverick):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wordpress - 3.0.3-1ubuntu2

---------------
wordpress (3.0.3-1ubuntu2) natty; urgency=low

  * SECURITY UPDATE: this can be dropped in 3.0.4
    - debian/patches/kses-security.patch: fix several issues in the KSES HTML
      sanitization library
    - LP: #695646
    - CVE-XXXX-XXXX
 -- Jamie Strandboge <email address hidden> Fri, 31 Dec 2010 10:44:07 -0600

Changed in wordpress (Ubuntu Natty):
status: In Progress → Fix Released
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Pocket copied wordpress to proposed for lucid and maverick. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
removed: security-verification
Changed in wordpress (Ubuntu Lucid):
status: In Progress → Fix Committed
Changed in wordpress (Ubuntu Maverick):
status: In Progress → Fix Committed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

To ubuntu-sru: if this passes the verification process, please also pocket copy to security. Thanks!

Revision history for this message
Artur Rona (ari-tczew) wrote :

@Jamie: I wanted to fix issue by merge from Debian unstable.

Revision history for this message
Robie Basak (racb) wrote :

Lucid -proposed works for me with no known issues. However, I'm actually still running Hardy but with Lucid's wordpress package, and of course I can't test the actual exploit as upstream hasn't published one.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to lucid-security as well. Setting back to v-needed for the maverick update, which still needs to be tested.

tags: added: verification-needed
removed: verification-done
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

wordpress (2.9.2-1ubuntu1.1) lucid-security; urgency=low

  * SECURITY UPDATE: fix several issues in the KSES HTML sanitization library
    - debian/patches/011kses.patch: patch based on upstream provided by
      Robie Basak
    - CVE-XXXX-XXXX

Changed in wordpress (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wordpress - 3.0.1-1ubuntu1.1

---------------
wordpress (3.0.1-1ubuntu1.1) maverick-security; urgency=low

  * SECURITY UPDATE:
    - debian/patches/011kses.patch: fix several issues in the KSES HTML
      sanitization library
    - LP: #695646
    - CVE-XXXX-XXXX
 -- Jamie Strandboge <email address hidden> Fri, 31 Dec 2010 10:48:01 -0600

Changed in wordpress (Ubuntu Maverick):
status: Fix Committed → Fix Released
tags: added: verification-done
removed: verification-needed
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.