Skip to content

Instantly share code, notes, and snippets.

@enferas
Last active January 9, 2023 10:19
Show Gist options
  • Save enferas/8fdb0d394ae073f135eac7e2367bc846 to your computer and use it in GitHub Desktop.
Save enferas/8fdb0d394ae073f135eac7e2367bc846 to your computer and use it in GitHub Desktop.
old CVE CVE-2018-19917

Link: https://www.invicti.com/web-applications-advisories/ns-18-038-reflected-cross-site-scripting-in-microweber/

In file userfiles\modules\content\controllers\Manager.php

function index($params){
//...
$post_toolbar_view = $this->views_dir . 'toolbar.php';

$toolbar = new View($post_toolbar_view);
//...
$toolbar->assign('params', $params);
//...
$view->assign('toolbar', $toolbar);
//...
return $view->display();
//...
}

In file userfiles\modules\content\views\toolbar.php

value="<?php if (isset($params['keyword']) and $params['keyword'] != false): ?><?php print $params['keyword'] ?><?php endif; ?>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment