I was running Odoo v16 on AWS EC2 Ubuntu 22 Server. Someone hacked into Odoo and has changed the Database name to ''kYaZsHyN" and has deleted all the tables from the Database(I tried to check using psql command, got 'Did not find any relations')
The perpetrator has executed alot of GET,HEAD requests for sensitive paths, some of the log lines below:
2024-05-27 03:51:23,236 3253 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:23] "GET /webmaster/.git/config HTTP/1.0" 404 - 3 0.002 0.006
2024-05-27 03:51:23,484 3250 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:23] "GET /us/.git/config HTTP/1.0" 404 - 3 0.002 0.006
2024-05-27 03:51:24,100 3251 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:24] "GET /ecommerce/.git/config HTTP/1.0" 404 - 3 0.002 0.006
2024-05-27 03:51:24,442 3251 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:24] "GET /usa/.git/config HTTP/1.0" 404 - 3 0.002 0.006
They have also executed a lot of sql queries. Unfortunately I did not close the database/manager path. Did they exploit the database manager?
How did the perpetrator get access? I would love to hear tips to prevent this in the future.