StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-10-2010, 11:29 PM
clementsm clementsm is offline
Registered User
Pro Plus Member
 
Join Date: Aug 2009
Posts: 5
Default XSS Vulnerability in Allure

I was checking the site I was implementing using the Allure them for the search XSS vulnerability, and it appears to be vulnerable...

You can verify this as follows:

Code:
 http://mydomain.com/?s="</title><script language="javscript" type="text/javascript">alert('This Should Not Happen!!!!');</script>"
I have tested against the Default theme to eliminate a wordpress bug (2.9.2) and after checking out the Studiopress code it seems that the function sp_breadcrumb defined in breadcrumbs.php does not use html_entities to sanitize the value of $output (ok, I looked at it really briefly, so that may not be the root cause)

Ok, and a follow up: Simple to fix:

The issue is in breadcrumbs.php, which is in the tools folder (Joost's plugin)

Just add the following line:

Code:
$output = htmlentities($output, ENT_QUOTES, get_bloginfo('charset'));
at the end of the file just prior to the following section:

Code:
if ($display) {
                echo $prefix.$output.$suffix;
        } else {
                return $prefix.$output.$suffix;
        }
}

?>
And that fixes it. Given that the error is in this file, I would guess that some of the other Studiopress themes are vulnerable to this same thing, but I did not check all the themes.

Last edited by clementsm; 03-11-2010 at 12:09 AM. Reason: More informaton...
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allure amythall General Discussion 3 08-12-2010 12:00 PM
Cross Site Scripting (XSS) Vulnerability safinc General Discussion 25 04-17-2010 11:27 PM
In Allure where is this please Lynnhawks General Discussion 3 02-03-2010 03:09 PM
Allure Mod Debra General Discussion 2 05-11-2009 07:10 PM


All times are GMT -5. The time now is 01:27 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.