orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

orientdb 3.0 vulnerability exploit

Open spanyukov opened this issue 8 years ago • 6 comments

OrientDB Version:

3.0RC1

Java Version:

openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

OS:

debian 9

the plot

somehow somebody gets access to my system through oriendb user even if I block all external IPs
<listener protocol="binary" socket="default" port-range="2424-2430" ip-address="127.0.0.1"/>
  <listener protocol="http" socket="default" port-range="2480-2490" ip-address="127.0.0.1">

After accessing to my system trespasser inserts crypto-mining malware. As soon as I deleted orientdb user everything goes to normal. But every time I add a new user the story repeats. http://joxi.ru/Dr8RBYBCk8E702

Im using these tutorials to configure orinetdb https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-orientdb-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-secure-your-orientdb-database-on-ubuntu-16-04

spanyukov avatar Feb 26 '18 14:02 spanyukov

Hi @futureglorydev

Do you mean server users (Eg. root) or database users (eg. admin)?

Thanks

Luigi

luigidellaquila avatar Feb 26 '18 15:02 luigidellaquila

@luigidellaquila I mean server users. Actually root is locked on my Debian but through orientdb system user trespasser(its actually script I suppose) can execute code in my OS. First, according to logs orientdb user is replaced by another user with the same name and then that user is granted with super rights.

spanyukov avatar Feb 26 '18 15:02 spanyukov

Hi @futureglorydev and did you effectively reload after changing the config? sudo systemctl restart orientdb

sblommers avatar Feb 26 '18 15:02 sblommers

@sblommers I did, I checked either web studio was working or not in my web browser and got connection refused error. At the same time I saw how malware was spreading. It was strange. I`ll try to repeat it again to be sure.

spanyukov avatar Feb 26 '18 16:02 spanyukov

I've tried to reproduce this issue with ip localhost restrictions and nginx ips restrictions. The behavior has not been committed . It works fine now

spanyukov avatar Mar 15 '18 11:03 spanyukov

Excellent, thank you for the feedback @futureglorydev

luigidellaquila avatar Mar 15 '18 14:03 luigidellaquila