A number of AJAX-related endpoints exist and should be migrated to use the Moodle Web Service infrastructure. These include, but are not limited to:
High. All interactions with the browser must be via teh Web Service infrastructure.
Migrate away from these scripts.
For endpoints which are for integration with the remote server, these should be clearly documented as such.