Are their any security issues regarding the use of class names and/or parameters in the url?
I have created a simple PHP page router that routes paths, for example:
www.mysite.com/classname/methodname/param1/param2/etc/etc
Are there any dangers in revealing the names of my classes and methods? Or should there be sufficient filtering in the classes methods to make it not a concern?
Also, my AJAX calls would be routed the same way. To ensure a legitimate AJAX call, could I somehow generate a session token that changes each time the call is made. For example, a random number gets generated in the PHP script that is being accessed by AJAX, which is also sent by the call. If they match then its an authorised request. The only problem is how would I get them to match?