My apologies if this is a ridiculous question. I was thinking today
about if/how it would be possible to attempt some kind of injection
attack on redis, e.g. if you study the protocol and know how to
construct calls, would it be possible to somehow send a "this is the
end of the current command" string, then send over your own command
(s). I suppose the closest thing would be a simple SQL injection, e.g.
"foo' OR 1=1"
-Kyle
Same as with SQL injection, this has nothing to do with database
server, it's application server who's sending malformed requests
(because it doesn't sanitize user requests).
For example, space in key breaks the command.
> -Kyle
>
> --
>
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>
>
On Dec 22, 11:08 am, Sergey Shepelev <temo...@gmail.com> wrote:
Hello,
If the client controls *the key* and is not using the new multi bulk
request protocol, yes, there is an attack.
If it's just a matter of values, no, injection is not possible.
In the future I could like to switch everything to the new protocol
that is better from more or less all the point of view, the first step
will be to implement a ping benchmark with the new protocol in
redis-benchmark to check if the performances are more or less the
same. If not try to optimize it as much as possible, and if the result
is good, switch to the new one.
Cheers,
Salvatore
--
Salvatore 'antirez' Sanfilippo
http://invece.org
"Once you have something that grows faster than education grows,
you’re always going to get a pop culture.", Alan Kay