F
F
Fragman2019-08-05 22:17:41
Node.js
Fragman, 2019-08-05 22:17:41

Is injection of node.js code realistic?

Is it possible to inject malicious code into a socket.io send?
There is such a code on the node.js side that receives an event

socket.on('make_turn', function(data) { //выполнение хода
    var gid = data.gid,
    acts = data.acts;
      	makeTurn(gid, acts);
  });

Is it possible to somehow tweak data and execute malicious code?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question