Headline
CVE-2014-125096: Fixed: XSS issue in the options page, Improved: Options page slug is … · wp-plugins/fancy-gallery@fdf1f9e
A vulnerability was found in Fancy Gallery Plugin 1.5.12. It has been declared as problematic. Affected by this vulnerability is an unknown functionality of the file class.options.php of the component Options Page. The manipulation leads to cross site scripting. The attack can be launched remotely. Upgrading to version 1.5.13 is able to address this issue. The name of the patch is fdf1f9e5a1ec738900f962e69c6fa4ec6055ed8d. It is recommended to upgrade the affected component. The identifier VDB-225349 was assigned to this vulnerability.
@@ -4,10 +4,12 @@
class Options {
private
$arr_option_box, # Meta boxes for the option page
$options_page_slug, # Slug for the options page
$core; # Pointer to the core object
public function __construct($core){
$this->core = $core;
$this->options_page_slug = Sanitize_Title(Str_Replace(Array('\\’, '/’, ‘_’), '-', __CLASS__));
# Option boxes
$this->arr_option_box = Array(
@@ -27,7 +29,7 @@ public function Add_Options_Page(){
$this->t(‘Fancy Gallery Options’),
$this->t(‘Fancy Gallery’),
'manage_options’,
__CLASS__,
$this->options_page_slug,
Array($this, ‘Print_Options_Page’)
);
@@ -45,7 +47,7 @@ public function Add_Options_Page(){
}
private function Get_Options_Page_Url($parameters = Array()){
$url = Add_Query_Arg(Array(‘page’ => __CLASS__), Admin_Url(‘options-general.php’));
$url = Add_Query_Arg(Array(‘page’ => $this->options_page_slug), Admin_Url(‘options-general.php’));
If (Is_Array($parameters) && !Empty($parameters)) $url = Add_Query_Arg($parameters, $url);
return $url;
}
@@ -57,7 +59,7 @@ public function Load_Options_Page(){
WP_Redirect( $this->Get_Options_Page_Url(Array(‘template_deleted’ => ‘true’)) );
}
ElseIf (IsSet($_GET[‘delete’])){
WP_Die($this->t('Error while deleting: ' . $_GET[‘delete’]));
WP_Die($this->t('Error while deleting: ' . HTMLSpecialChars($_GET[‘delete’])));
}
# If the Request was redirected from a “Save Options”-Post