Answer the question
In order to leave comments, you need to log in
Filtering in address bar on zf2?
Correctly I understand that if I have a vulnerability here
site.com/site/page?to_email=%00"><script>alert(109)</script>
$toEmail = $this->getRequest()->getParam('to_email');
Answer the question
In order to leave comments, you need to log in
First you need to understand what the vulnerability is, and then see how to do it under Zend.
It is necessary to read in general about the security of development, there was a good article under the rails, under php it is necessary to collect pieces everywhere.
There is only code that you receive data from the user and that's it. You can of course put a check that the value passed must be email. mail, but what's next? exit? 500 error? And so it's all sorted out? and if this is a message from a user who talks about script alert? Read about XSS, SQL injection, etc. for security
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question