redis-node-client icon indicating copy to clipboard operation
redis-node-client copied to clipboard

Are command arguments sanitized?

Open TrevorBurnham opened this issue 13 years ago • 1 comments

If I do the following:

input = getStringFromUser();
client = require('lib/redis-client').createClient();
client.get(input);

will the person giving me the input be able to do something nasty, i.e. execute commands other than GET? It would be nice if the documentation said something definitive on this point.

TrevorBurnham avatar Aug 29 '10 21:08 TrevorBurnham

If at all, then inside of multi/exec which is only available in forks. However i doubt even that, because redis does not accept multiple commands in one buffered request. (multi/exec are actually a bunch of requests for each part, including multi and exec)

maritz avatar Aug 30 '10 11:08 maritz