WordPress 3.6.1 Released – Includes Security Fixes
The WordPress team just pushed out a new version of WordPress. WordPress 3.6.1 is a maintenance release that includes some security bug fixes. Straight from their release post, these are the security changes:
- Block unsafe PHP unserialization that could occur in limited situations and setups, which can lead to remote code execution. Reported by Tom Van Goethem.
- Prevent a user with an Author role, using a specially crafted request, from being able to create a post “written by” another user. Reported by Anakorn Kyavatanakij.
- Fix insufficient input validation that could result in redirecting or leading a user to another website. Reported by Dave Cummo, a Northrup Grumman subcontractor for the U.S. Centers for Disease Control and Prevention.
We asked WordPress Lead Developer, Andrew Nacin for a bit of clarity around the author role issue that was fixed, here’s what Andrew said:
A user can reassign the authorship of a post to another user, even when they are not allowed to do so. (For example, the user is an Author and not an Editor.) The user must already be allowed to edit content — and specifically edit that post. They also then lose the ability to edit that post, but this “forging” could still cause a compromised account or malicious user to post as another user.
In closing the conversation with Andrew, he remarked that WordPress is not vulnerable to the remote code execution issue by default:
I’ll emphasize that WordPress is *NOT* exploitable to the RCE out of the box, despite it being a doozy. It requires a vulnerable object (which core does not have), as well as a vulnerable character set. It is a “perfect storm” vulnerability.
The following note was also added to the official release post and it talks to some adjustments made around file uploads that restrict potential XSS issues:
Additionally, we’ve adjusted security restrictions around file uploads to mitigate the potential for cross-site scripting.
One of those restrictions included the removal of some upload types, to include .swf, and .exe. Also removed was the ability to upload .html and .htm files if the user doesn’t have the ability to post unfiltered HTML. This makes sense really, and seems a little silly to allow Authors the ability to upload an .html file, but not allow them to use for example.
Quick Diff List
There weren’t a significant amount of changes for this maintenance release. Below is a quick reference of files changed, and a list of the actual changes from the branch logs.
readme.html wp-admin/about.php wp-admin/nav-menus.php wp-admin/includes/post.php wp-admin/includes/update-core.php wp-admin/includes/template.php wp-admin/network/upgrade.php wp-admin/js/common.js wp-includes/pluggable.php wp-includes/comment-template.php wp-includes/post-template.php wp-includes/version.php wp-includes/theme.php wp-includes/functions.php wp-includes/ms-functions.php wp-includes/link-template.php wp-includes/class-http.php wp-includes/js/jquery/jquery.js wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js wp-includes/js/tinymce/wp-tinymce.js.gz
@25345 Avoid error in ms-files.php after  (merged as ). Merges … @25341 Avoid string offset notices in  (merged as ). Merges  … @25339 Improve clarity and speed of  (merged as ). Merges  … @25336 Update TinyMCE for . see #25131. @25326 3.6.1-RC1 @25325 Loose validation for is_serialized() in maybe_serialize(). Merges  … @25324 Better protocol validation in set_url_scheme(). Merges  to 3.6. @25323 Validate referrers to prevent off-domain redirects. Merges  to 3.6. @25322 Tighten allowed upload file types. Merges  to 3.6. @25321 Ignore user ID post data. Merges  to 3.6. @25247 3.6.1-beta1. @25236 Fix 'html5' theme support. * Merge, rather than replace, on second add. … @25233 Remove display of 'Previously restored by' in the revisions meta box as it … @25232 Nav menus: Allow assigning a new menu to an existing location when no … @25198 Case sensitivity for is_email_address_unsafe(). Merges  to the 3.6 … @25192 Hide 'Database Upgrade Required' on admin/network/upgrade.php when you are … @25187 TinyMCE: fix editor focus issues after ontouchstart event on the parent … @25185 Fix menu folding on new installs. fixes #24921 for 3.6. @25184 Revert  so new users in multisite are not automatically subscribers … @25152 Make sure $args is an array before treating it as such. fixes #25151 for … @25118 Avoid displaying multiple instances of the same feature pointers on a … @25074 The 3.6 branch is 3.6.1-alpha. @25073 Remove sourceMappingURL from jquery.min.js. Merges  to the 3.6 … @25052 WP_HTTP: Curl: When using Stream-to-file on servers using … @25014 Remove zero-byte files that were meant to be deleted in . see …
Please make sure to update as soon as you can, it’s not super awesome to be running around with old and insecure versions of any software