Jump to content

supplier


ballot

Recommended Posts

<?php

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/init.php');

//will be initialized bellow...
if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1)
   $rewrited_url = null;

if (!isset($objectType))
   $objectType = 'supplier';



as u see $objectType is not defined if someone go to supplier.php?objectType=manufacturer or anything he can success dont know if it may cause a security bug or not taking $objectType from get/post/cookie

Link to comment
Share on other sites

I can't see any problem. PrestaShop seems to ignore the query string. I tried to go to supplier.php?objectType=manufacturer, but it loaded suppliers as usual.

If you are still concerned, you can post this issue on the bug tracker to get an official response from the PrestaShop team.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...