mitre / caldera

Automated Adversary Emulation Platform
https://caldera.mitre.org
Apache License 2.0
5.59k stars 1.07k forks source link

localhost:8888 is ok but not from a remote pc #3069

Open tklauw opened 2 weeks ago

tklauw commented 2 weeks ago

Hi, I may have missed something but installation was completed without error and I could access and use CALDERA from localhost without any problem. However, when trying from a remote PC, I could see the login screen but could not even login. It just keeps on showing the Login screen in a loop. CALDERA 5.0, using the "default.yml" config file on Ubuntu 22.04LTS. Anyone has any idea? Thanks!

rcegan commented 2 weeks ago

Ack on this issue, seeing the same thing when installing from docker.

zrquan commented 2 weeks ago

You might need to tweak the VITE_CALDERA_URL environment variable in the magma plugin. If your remote PC's IP is 172.18.0.2, you'll need to create file plugins/magma/.env:

VITE_CALDERA_URL=http://172.18.0.2:8888

Then run server.py with --build.

rcegan commented 2 weeks ago

Added the above to /plugins/magma/.env and built with Docker, however I end up running into the same issue where the login page is simply stuck.

tklauw commented 1 week ago

You might need to tweak the VITE_CALDERA_URL environment variable in the magma plugin. If your remote PC's IP is 172.18.0.2, you'll need to create file plugins/magma/.env:

VITE_CALDERA_URL=http://172.18.0.2:8888

Then run server.py with --build.

Doesn't work for me. Still the same issue. Any other idea guys? Thanks!

rachelcamurphy commented 1 day ago

First, kill the server or else these changes will not take effect.

Ensure that within local.yml you have changed these lines to the IP address of the machine that the caldera server is deployed on. You will not use the IP address of the remote machine for any of the Caldera server configurations.

app.contact.http: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
app.contact.ftp.host: http://<YOUR-CALDERA-SERVER-IP>
app.frontend.api_base_url: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
host: http://<YOUR-CALDERA-SERVER-IP>

This should automatically configure the magma .env variables for you as well.

Once this file is saved, boot up Caldera with the following command: python3 server.py -E local --build