Ok, so today I had very good experience in my built systems. Some guy โhackedโ everything and said that it was an ajax problem. Here is what he told me:
you rely on ajax
when I have access to a user browser I have access to all the AJAX functions that you wrote to him so I can do everything that is written in your javascript pretending to be that user
and this is completely unstable - how can I access user scripts through ajax? I also use node on the server, but cannot figure out where the problem is. Ajax example:
var transfer_data = { id: jQuery(this).data('spin-id') }; jQuery.ajax({ url: init_s.forms.provably.callback, type: 'POST', dataType: 'JSON', data: transfer_data, success: function (data) { console.log(data); if (data.type == 'failed') { jQuery('#check_modal').modal('toggle'); } else {
and an example of running a node script:
socket.on('new_spin_entry', function (data) { ... }); socket.emit('new_spin_entry', { entry_id: data.user_spin_data.id });
so what is it? how is this possible?
PS I forgot to mention that he inserted an alert into my script, which was uploaded to the page. Not server scripts, but scripts that were downloaded to the user
PPS: this is what I see in the console. ATM system does not work: 
source share