captcha icon indicating copy to clipboard operation
captcha copied to clipboard

security issue with captcha_api rule

Open m3di opened this issue 1 year ago • 1 comments

in the stateless mode validation rule as it provided in the documentation:

$rules = ['captcha' => 'required|captcha_api:'. request('key') . ',math'];
$validator = validator()->make(request()->all(), $rules);

it is not completely safe to put unvalidated request('key') to the rule list, someone may manipulate it and send some relevant rules and invoke some unwanted functions,

m3di avatar May 21 '23 15:05 m3di

will you accept PRs?

m3di avatar May 21 '23 15:05 m3di