orientdb 3.0 vulnerability exploit
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
<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
Hi @futureglorydev
Do you mean server users (Eg. root) or database users (eg. admin)?
Thanks
Luigi
@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.
Hi @futureglorydev
and did you effectively reload after changing the config?
sudo systemctl restart orientdb
@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.
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
Excellent, thank you for the feedback @futureglorydev