Skip to content

Commit

Permalink
add security check on all relevant scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dweeves committed Nov 4, 2015
1 parent d170952 commit e59acdf
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions magmi/web/magmi_cancel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
header('Pragma: public'); // required
header('Expires: -1'); // no cache
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_chooseprofile.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
require_once("../inc/magmi_config.php");

$currentprofile = $_REQUEST["profile"];
Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_config_setup.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
require_once("magmi_config.php");
require_once("magmi_statemanager.php");
require_once("dbhelper.class.php");
Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_import_run.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
ini_set('gpc_magic_quotes', 0);
require_once("security.php");
$profile = isset($_REQUEST["profile"]) ? strip_tags($_REQUEST["profile"]) : 'default';
Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_profile_config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
require_once("magmi_config.php");
$conf = Magmi_Config::getInstance();
$conf->load();
Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_profile_panel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
if (isset($_REQUEST["profile"])) {
$profile = strip_tags($_REQUEST["profile"]);
} else {
Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_progress.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
require_once("../inc/magmi_statemanager.php");
require_once("progress_parser.php");

Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_saveconfig.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
require_once("../inc/magmi_config.php");
$conf = Magmi_Config::getInstance();
if ($conf->save($_POST)) {
Expand Down
1 change: 1 addition & 0 deletions magmi/web/magmi_saveprofile.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
$profile = $_REQUEST["profile"];
$dslist = $_REQUEST["PLUGINS_DATASOURCES:class"];
$genlist = $_REQUEST["PLUGINS_GENERAL:classes"];
Expand Down
1 change: 1 addition & 0 deletions magmi/web/progress_details.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
session_start();
$key = $_REQUEST["key"];
$data = $_SESSION["log_$key"];
Expand Down
1 change: 1 addition & 0 deletions magmi/web/trace_details.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
require_once("security.php");
require_once("../inc/magmi_statemanager.php");
$tid = $_REQUEST["traceid"];
$tracefile = Magmi_StateManager::getTraceFile();
Expand Down

0 comments on commit e59acdf

Please sign in to comment.