
1 réponse
As you are not performing any DML operation I think the issue is less severe. Please make sure you are assigning the value "ApexPages.currentPage().getParameters().get('id');" to a variable of type Id before using it. Please don't use any get parameter directly into any SOQL. First assign and then use the variable. Also if the parameter is ID assign it to a variable of type Id. If it is String you may consider escaping the single-quotes. String class has some nice utility methods.Second thing you should take care is marking the class with sharing. As you are using a get parameter to generate the output, the controller in without sharing mode will be a weak point in terms of security.If possible make this request a POST instead of GET. Here are some reference for you, Referenceshttp://www.owasp.org/index.php/Cross-Site_Request_Forgeryhttp://www.cgisecurity.com/articles/csrf-faq.shtmlhttp://shiflett.org/articles/cross-site-request-forgeries--Akram