Skip to content

Commit

Permalink
Fix ACP Themes persistent XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
dvz committed Nov 4, 2023
1 parent 6dcaf0b commit 468900d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/modules/style/themes.php
Expand Up @@ -1447,7 +1447,7 @@ function checkAction(id)
$sep = " {$lang->and} ";
}

$inherited .= $sep.$file;
$inherited .= $sep.htmlspecialchars_uni($file);
$sep = $lang->comma;

++$count;
Expand Down Expand Up @@ -1558,7 +1558,7 @@ function checkAction(id)
$popup->add_item($lang->delete_revert, "index.php?module=style-themes&action=delete_stylesheet&file=".htmlspecialchars_uni($filename)."&tid={$theme['tid']}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_stylesheet_deletion}')");
}

$table->construct_cell("<strong><a href=\"index.php?module=style-themes&amp;action=edit_stylesheet&amp;file=".htmlspecialchars_uni($filename)."&amp;tid={$theme['tid']}\">{$filename}</a></strong>{$inherited}<br />{$attached_to}");
$table->construct_cell("<strong><a href=\"index.php?module=style-themes&amp;action=edit_stylesheet&amp;file=".htmlspecialchars_uni($filename)."&amp;tid={$theme['tid']}\">".htmlspecialchars_uni($filename)."</a></strong>{$inherited}<br />{$attached_to}");
$table->construct_cell($form->generate_numeric_field("disporder[{$theme_stylesheets[$filename]['sid']}]", $properties['disporder'][$filename], array('style' => 'width: 80%; text-align: center;', 'min' => 0)), array("class" => "align_center"));
$table->construct_cell($popup->fetch(), array("class" => "align_center"));
$table->construct_row();
Expand Down

0 comments on commit 468900d

Please sign in to comment.