Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by js4ever on Thursday June 24, 2021 @12:24AM
(#27613970)
Redis can be exploited to run executables ???
[ Parent
| on HN ]
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by bigiain on Thursday June 24, 2021 @02:48AM
(#27614643)
From antirez the guy who wrote redis's blog:
'The Redis security model is: “it’s totally insecure to let untrusted clients access the system, please protect it from the outside world yourself”.' -- http://antirez.com/news/96
That blog post also helpfully shows how to write you own key into .ssh/authorized_keys to you can log in as the redis user over ssh. From there use your favourite lunar priv escalation bug to p0wn the box completely. (Or just run your cryptominer as the redis user...)
Note: that's about 5 years old now...
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by js4ever on Thursday June 24, 2021 @12:50PM
(#27620285)
Holy shit! thanks for the details
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by dawnerd on Thursday June 24, 2021 @12:40AM
(#27614044)
Yeah - kinda crazy theres no auth by default AND eval is allowed. Pretty trivial for someone to have it download a script and run it pretty much with free reign.
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by slavak on Thursday June 24, 2021 @01:15AM
(#27614193)
Redis doesn't accept unauthenticated external connections by default for a while now, specifically to try and eliminate this footgun.
https://github.com/redis/redis/commit/edd4d555df57dc84265fdf...
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by SilverRed on Thursday June 24, 2021 @01:20AM
(#27614221)
I had an issue where I used the redis docker image and didn't understand docker networking properly so I set the network mode as host so my other container could connect. Not knowing this had exposed redis to the world unauthenticated (in about 2018).
Eventually a kind script set a password on redis which caused me to notice and fix this issue.
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by dawnerd on Thursday June 24, 2021 @01:19AM
(#27614214)
Interesting, this definitely happened with a more recent version... Wonder if theres some other exploit at play too (could also be the containerized version?)
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by qbasic_forever on Thursday June 24, 2021 @12:38AM
(#27614038)
It can execute Lua, I'm sure there's plenty of fun for hackers to have with this: https://redis.io/commands/eval