In CakePHP there are passed arguments, named parameters, and querystring parameters.
Passed arguments look like .../index/arg
are accessed with $this->request->pass[0]
, where '0' is the array index. Named parameters look like .../index/key:value
and are accessed with $this->request->named['key']
. Querystring parameters look like ̀.../index?key=valueand are accessed with
$this->request->query['key']`.
Your URL uses named parameters so it should look like this (without the question mark):
http://127.0.0.1/categories/index/page:1/sort:id/direction:asc
Edit:
Since CakePHP uses mod_rewrite, you have to specify the parameters as explained in the sqlmap wiki.