While performing SQL injection tests, I encountered a situation where the target parameter wasn’t in the URL query string, but instead in the Cookie header. By default, SQLMap doesn’t recognize parameters in the Cookie header, so I needed to find a way to target it.
To target these specific parameters, simply replace the value with * - SQLMap will recognize this as the target location.
For example, here’s a case where the target parameter is in the Cookie header: