Thanks to WordPress user anoncobard, a cross-site scripting vulnerability in prior Sandbox versions has been fixed. I ask all Sandbox users to download Sandbox 1.6.1 and upgrade.
In the Sandbox functions.php, the pagination variable in the sandbox_body_class() passed an unsanitized variable that could be exploited using XSS.
See line 128 in the file:
if ( ( ( $page = $wp_query->get('paged') ) || ( $page = $wp_query->get('page') ) ) && $page > 1 ) {
The variable $page is never validated before it is passed to the function and then to the page. By simply adding $page = intval($page); (thanks to Andy), we make sure what is passed is only a number (see the diff of the changes).
This has also been fixed for the Sandbox theme for WordPress.com accounts. Please note that there have been no reports the Sandbox theme being exploited, so we are glad that we were able to correct this weakness before it was announced.
Now get back to playing in your Sandbox.
6 Comments
Would like to upgrade to Compatible WordPress 2.8, Thanks!
I too would welcome a new Sandbox, primed for 2.8. By the way, keep up the awesome work– I’ve been using Sandbox for years. Thanks!
Just curious if you are planning to start actively developing Sandbox again. I’ve been considering taking the current code base and extending it, but I’d prefer to just contribute instead of starting another project. Guess I’d just need to know where you are planning to go with it. I know the domain was supposed to be getting sold, etc at one point but I haven’t heard anything about it in quite awhile.
Either way, thanks for the update.
If possible, can you confirm whether this is the only difference between 1.6 and 1.6.1?
Many thanks for a great framework,
Dave
Yep, Dave, the only change is the one indicated in the diff above.
Beautiful, thanks!
2 Trackbacks
[...] So I went back and took a look at the PlainTxt blog and what do you know? A post! A minor security update was added to the Sandbox theme back in July. Was development active again? Poking around it appears that no, not [...]
[...] theme?). So I went back and took a look at the PlainTxt blog and what do you know? A post! A minor security update was added to the Sandbox theme back in July. Was development active again? Poking around it appears that no, not really. [...]